Build a subset of accelerator libraries

I am trying to create only a subset of boost libraries. For example, I have this code:

test.cpp:

#include <boost/thread.hpp> int main (){ return 0; } 

Then i do

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

Thus, dependency files are copied to ~/dev/boost_compact/boost .

Then, following this answer , I copy all the files to the root of the regular promotion, as well as the tools directory and run

 ./bootstrap ./bjam ./bjam install 

This copies all headers to the target directory, but does not create / does not copy libraries. The same set of actions really works in full. What am I doing wrong?

+6
source share
2 answers

Solved a problem. The reason the libraries were not copied was because I used the wrong boost directory, i.e.

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

when should i use

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

If now you run

 ./bootstrap ./bjam ./bjam install 

Libraries will be built.

+1
source

Could there be a problem with permission?

or

Perhaps try explicitly installing libdir?

 bjam --libdir=path/to/lib install 
0
source

Source: https://habr.com/ru/post/894974/


All Articles