Repository navigation
CMake Error: #70
Description
I am running the following command
cmake -DBOOST_ROOT:PATH=.. ..
I am getting the following error :
-- Detected architecture 'x86_64'
-- Using Python3
CMake Error at /usr/share/cmake-3.2/Modules/FindBoost.cmake:1202 (message):
Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
CMakeLists.txt:50 (find_package)
-- Boost Paths:
-- Include : Boost_INCLUDE_DIR-NOTFOUND
-- Libraries:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_INCLUDE_DIR (ADVANCED)
used as include directory in directory /home/nitin/git/Boost.NumPy/libs/numpy/src
used as include directory in directory /home/nitin/git/Boost.NumPy/libs/numpy/example
used as include directory in directory /home/nitin/git/Boost.NumPy/libs/numpy/example
used as include directory in directory /home/nitin/git/Boost.NumPy/libs/numpy/example
used as include directory in directory /home/nitin/git/Boost.NumPy/libs/numpy/example
used as include directory in directory /home/nitin/git/Boost.NumPy/libs/numpy/example
used as include directory in directory /home/nitin/git/Boost.NumPy/libs/numpy/example
used as include directory in directory /home/nitin/git/Boost.NumPy/libs/numpy/example
used as include directory in directory /home/nitin/git/Boost.NumPy/libs/numpy/test
used as include directory in directory /home/nitin/git/Boost.NumPy/libs/numpy/test
used as include directory in directory /home/nitin/git/Boost.NumPy/libs/numpy/test
used as include directory in directory /home/nitin/git/Boost.NumPy/libs/numpy/test
used as include directory in directory /home/nitin/git/Boost.NumPy/libs/numpy/test
used as include directory in directory /home/nitin/git/Boost.NumPy/libs/numpy/test
used as include directory in directory /home/nitin/git/Boost.NumPy/libs/numpy/test
used as include directory in directory /home/nitin/git/Boost.NumPy/libs/numpy/test
used as include directory in directory /home/nitin/git/Boost.NumPy/libs/numpy/test
used as include directory in directory /home/nitin/git/Boost.NumPy/libs/numpy/test
used as include directory in directory /home/nitin/git/Boost.NumPy/libs/numpy/test
used as include directory in directory /home/nitin/git/Boost.NumPy/libs/numpy/test
-- Configuring incomplete, errors occurred!
See also "/home/nitin/git/Boost.NumPy/CMakeFiles/CMakeOutput.log".
Activity
TallJimbo commentedon Nov 30, 2016
Could you try just
cmake -DBOOST_ROOT=/absolute/path/to/boost?I'm not sure if relative directories are supported there, and I'm also not familiar with the
:PATHpart of your argument. I'm far from a CMake expert, so it's possible I'm not supporting most CMake users would expect to work, but the above is how I've used this option in the past.agarnitin86 commentedon Dec 1, 2016
I tried running : cmake -DBOOST_ROOT=/home/nitin/git/Boost.NumPy/boost
But still got the same error. I guess it also wants me to set BOOST_INCLUDEDIR variable
termoshtt commentedon Dec 1, 2016
BOOST_ROOTmeans the root of Boost library not the root of Boost.NumPy.I guess that you did not install system boost library by e.g.
apt-get install libboost-dev.This project dose not contains Boost itself.
This flag is for compiling Boost.NumPy against Boost lib which you manually compiled.
agarnitin86 commentedon Dec 1, 2016
Hi Termoshtt, I installed libboost-dev and now i running the following the command :
cmake -DBOOST_ROOT=/usr/include/boost ..
I get a different error now
CMake Error at /usr/share/cmake-3.2/Modules/FindBoost.cmake:1202 (message):
Unable to find the requested Boost libraries.
Boost version: 1.54.0
Boost include path: /usr/include
Could not find the following Boost libraries:
No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.
Call Stack (most recent call first):
CMakeLists.txt:50 (find_package)
-- Boost Paths:
-- Include : /usr/include
-- Libraries:
-- Configuring incomplete, errors occurred!
termoshtt commentedon Dec 1, 2016
Please confirm
libboost-python-devis also installed.I guess you only install
boost_python(for Python2.7), and you could compile with it.agarnitin86 commentedon Dec 1, 2016
I installed libboost-dev and libboost-python-dev as u suggested. But still getting the same error. Also i dont know about find_package (where and how to run it.)
termoshtt commentedon Dec 1, 2016
Sorry, I misunderstood what you are doing. Please forget the above comment :<
I reproduce same error when I install libboost-dev, and it is recovered when libboost-python-dev is installed. I guess
-DBOOST_ROOT=/usr/include/boostmight cause this error.agarnitin86 commentedon Dec 1, 2016
From both the commands
cmake -DBOOST_ROOT=/usr/include/boost ..
cmake ..
i get the same error :
Could not find the following Boost libraries:
No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.
Call Stack (most recent call first):
CMakeLists.txt:50 (find_package)
termoshtt commentedon Dec 1, 2016
Could you confirm
libboost_python3.soorlibboost_python-py34.soexits. Its name is different by distributions.agarnitin86 commentedon Dec 1, 2016
I have following softlink files in directory :/usr/lib/x86_64-linux-gnu/
libboost_python.so
libboost_python-py27.so
libboost_python-py34.so
agarnitin86 commentedon Dec 1, 2016
Hey, thanks for continuously helping me. I did the following and it worked
cd /usr/lib/x86_64-linux-gnu/
sudo ln -s libboost_python-py34.so libboost_python3.so
cmake -DBOOST_ROOT=/usr/include/boost ..
Followed the link : belltailjp/selective_search_py#6
termoshtt commentedon Dec 1, 2016
Good 👍
I think this issue has been resolved by #56, but it seems not complete :<
Could you let me know your environment?
agarnitin86 commentedon Dec 1, 2016
I installed anaconda
I m using ubuntu 14.0.4
termoshtt commentedon Dec 1, 2016
Thanks, I will test on such env.