Building a subset of boost libraries
Asked Answered
H

2

8

I'm trying to build only a subset of boost libraries. For example, I have this code:

test.cpp:

#include <boost/thread.hpp>

int main (){
    return 0;
}

I then do

./bcp --scan test.cpp ~/dev/boost_compact/

So the dependencies files are copied to ~/dev/boost_compact/boost.

Then, following this answer, I copy all files at the root of a regular boost and also the tools directory and run

./bootstrap
./bjam
./bjam install

This does copy all the headers to a destination directory, but it does not build/copy the libraries. This same set of actions does work in the full boost. What am I doing wrong?

Halfback answered 13/8, 2011 at 13:19 Comment(0)
H
2

Solved the problem. The reason the libraries were not being copied was that I was using the wrong boost directory, that is

./bcp --scan --boost=<path to boost build directory> test.cpp ~/dev/boost_compact/

when I should be using

./bcp --scan --boost=<path to boost source directory> test.cpp ~/dev/boost_compact/

If now you run

./bootstrap
./bjam
./bjam install

The libraries will be build.

Halfback answered 18/8, 2011 at 13:54 Comment(0)
S
0

Maybe a permission issue?

or

Perhaps try explicitly setting the libdir?

bjam --libdir=path/to/lib install
Sarcocarp answered 15/8, 2011 at 17:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.