boost icon indicating copy to clipboard operation
boost copied to clipboard

make install fails

Open quantitative-technologies opened this issue 7 years ago • 5 comments
trafficstars

After

cmake .
make

make install give an error that it cannot find boost/libs/beast/include.

You want to make a separate build directory, try:

mkdir build
cd build
cmake ..
make

pfultz2 avatar Apr 16 '18 18:04 pfultz2

That made no difference.

After cmake .. there is the message: Build files have been written to: /home/james/src/boost that the build files are in the parent directory. Then

cd ..
make 
make install

fails as before on make install.

After cmake .. there is the message: Build files have been written to: /home/james/src/boost that the build files are in the parent directory. Then

I am not sure why that didn't work, but the problem is that it is writing the build files into the source directory.

pfultz2 avatar Apr 16 '18 19:04 pfultz2

I had to delete CMakeCache first, so it would build in a separate directory. However, this still did not fix the problem: Exactly the same error is occurring on make install.

I was able to install by making the following change to CMakeLists.txt:

set(EXCLUDE_LIBS beast callable_traits mp11 poly_collection stacktrace)