Problem with Boost.Python
Hello guys,
When I try to compile Vera++ via Cmake on my Windows system, i get the following error code:
CMake Error at C:/Program Files/CMake/share/cmake-3.8/Modules/FindBoost.cmake:1842 (message):
Unable to find the requested Boost libraries.
Boost version: 1.64.0
Boost include path: C:/boost/boost_1_64_0
Could not find the following static Boost libraries:
boost_python
Some (but not all) of the required Boost libraries were found. You may
need to install these additional Boost libraries. Alternatively, set
BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
to the location of Boost.
Call Stack (most recent call first):
src/boost.cmake:25 (find_package)
src/CMakeLists.txt:16 (include)
I already installed boost.python seperatley with "bjam --with-python", so there should be no problem normally. Sadly I'm not really firm with Cmake or Boost. I think this might be really easy to solve problem, but I have absolutley no clue how to solve this issue.
Does anyone of you have an idea, how to fix that problem?
Comments (9)
-
-
In fact my appveyor setup doesn't install boost-python. It is provided by default by the appveyor VMs. So I don't know exactly how you should install this one.
For me you are doing quite the right thing with bjam. Maybe it's just some missing environment variable. You may want to try to setup the path manually into cmake like I am doing in : appveyorNightly.yml
BOOST_ROOT: C:\Libraries\boost_1_64_0 BOOST_LIBRARYDIR: C:\Libraries\boost_1_64_0\lib32-msvc-14.0
or if you are building in 64 bits:
BOOST_ROOT: C:\Libraries\boost_1_64_0 BOOST_LIBRARYDIR: C:\Libraries\boost_1_64_0\lib64-msvc-14.0
Best of luck!
-
reporter Thanks for your help. I just build it without the Python module and going to learn TCL for creating new rules.
But now I've got another Problem. I've build Vera++ with Cmake and then tried to build the INSTALL package in VS17. But whenever I try to build it, i get the following problem:
Any suggestions here? I really need help, it's really frustrating that I can't install it :/
-
That's weird. I have just checked the md5 of the file and the boost.cmake is correct.
Maybe you had some troubles while downloading the tar.bz2 file.
the md5 of the file https://sourceforge.net/projects/boost/files/boost/1.60.0/boost_1_60_0.tar.bz2 is 65a840e1a0b13a558ff19eeb2c4f0cbe
It should work.
Do you have an antivirus maybe?
Could you download the file and check the md5 by yourself please?
-
reporter Hello,
Sorry for the late response, I had holidays :)
I just manually downloaded the file and copied in the folder and it worked. Thanks. But now I got the next error. Hopefully you have an idea how to fix it:
Thank you very much.
-
This seems a bit odd since we are using 1.60.0. Maybe you have a mismatch with your boost versions?
-
reporter Hello Vincent,
Thanks for your reaply.
So I have to install the older version of boost? Currently I've version 1.64.0 installed
-
Oh ok you have boost installed. Maybe you may want to use the flag VERA_USE_SYSTEM_BOOST and set it to ON so vera++ will use your boost installation to build.
Hope that helps!
-
reporter So I just put it on, but now CMake somehow doesnt find boost. I already set the PREFIX/bin in PATH and it still doesnt work. Any idea why that could be? It can't detect boost.
Is there another way to work with the code and build it? I've stucked with the installation since three weeks :/
- Log in to comment
Hey there. I haven't compiled vera++ in a while on windows. I'll have a look at my VM and will check how I install boost python.
I get back as soon as I can.