I am trying to install the OpenGM library. However, while using CMake, I get the following error:
CMake Error at /usr/local/share/cmake-3.6/Modules/FindBoost.cmake:1753 (message):
Unable to find the requested Boost libraries.
Boost version: 1.62.0
Boost include path: /usr/local/include
Could not find the following Boost libraries:
boost_thread
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.
However, when I do:
ls -l
in
/usr/local/include
I get the following line:
lrwxr-xr-x 1 Florian admin 36 13 oct 19:11 boost -> ../Cellar/boost/1.62.0/include/boost
which suggests that it looks in the right directory.
In:
/usr/local/lib
I have:
libboost_thread-mt.a
libboost_thread-mt.dylib
So, it seems that the boost_thread library does exist...
Regarding the CMake configuration related to Boost, I have:
Boost_DIR Boost_DIR-NOTFOUND
Boost_INCLUDE_DIR /usr/local/include
Boost_LIBRARY_DIR_DEBUG /usr/local/lib
Boost_LIBRARY_DIR_RELEASE /usr/local/lib
Boost_PYTHON_LIBRARY_DEBUG /usr/local/lib/libboost_python.dylib
Boost_PYTHON_LIBRARY_RELEASE /usr/local/lib/libboost_python.dylib
If it can help, I am under Mac OSX and Boost was installed through:
brew install boost --with-python
brew install boost-python
I have managed to handle this error by setting the Boost multithreading flag to ON n CMakeLists.txt.
Related
This is the error I get:
checking for boostlib >= 1.58.0 (105800)... configure:
We could not detect the boost libraries (version 1.58.0 or higher).
If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option.
If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.
configure: error: Boost is not available!
I am on the latest version of macOS big sur and I installed boost with homebrew. I believe boost should be installed in usr/local/include, but for me, it is installed in /opt/homebrew/opt/boost. Could this be the issue? I used a symlink to go from usr/local/include to /opt/homebrew/opt/boost but it didn't work when I cded into the bitcoin folder and then ran ./configure.
export BOOST_ROOT=/opt/homebrew/opt/boost
./configure --with-gui=no --without-bdb --with-boost=$BOOST_ROOT
Your options may differ
ERROR INF:
-- Could NOT find Boost (missing: python) (found version "1.71.0")
I've tried everything I found in here, and nothing works.
Here is what I've done:
Firstly, I've installed boost, boost_python and boost_python3 through brew install.
However, I noticed that in boost dir there are "include" and "lib" dirs, but there is only "lib" in boost_python and boost_python3, which I don't understand.
Run cmake as below:
CC=/usr/bin/gcc CXX=/usr/bin/g++ cmake
-DCMAKE_BUILD_TYPE="Release"
-DBUILD_QT5=1
-DCMAKE_PREFIX_PATH="/usr/local/Cellar/qt/5.13.1/lib/cmake"
-DFREECAD_USE_EXTERNAL_KDL=1
-DBUILD_FEM_NETGEN=1
-DFREECAD_CREATE_MAC_APP=1
-DCMAKE_INSTALL_PREFIX="./.."
-DPYTHON_LIBRARY=$ANACONDA_HOME/lib/libpython3.7.so
-DPYTHON_INCLUDE_DIR=$ANACONDA_HOME/include/python3.7
-DPYTHON_EXECUTABLE=$ANACONDA_HOME/bin/python3.7
-DBoost_NO_BOOST_CMAKE:BOOL=ON
-DBoost_NO_SYSTEM_PATHS=TRUE
-DBOOST_ROOT=/usr/local/Cellar/boost/1.71.0
-DBOOST_LIBRARY_DIRS=/usr/local/Cellar/boost/1.71.0/lib
-DBOOST_INCLUDE_DIR=/usr/local/Cellar/boost/1.71.0/include
../
But the log says:
Found Boost: /usr/local/Cellar/boost/1.71.0/include (found version "1.71.0")
Found PythonInterp: /bin/python3.7 (Required is at least version "3")
Found PythonLibs: /lib/libpython3.7.so (Required is at least version "3")
Detected Homebrew install at /usr/local
Found PythonInterp: /bin/python3.7
Found PythonLibs: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libpython.tbd
(found version "2.7.10")
Found Boost: /usr/local/Cellar/boost/1.71.0/include (found suitable version "1.71.0", minimum required is "1.48") found components:
filesystem program_options regex system thread chrono date_time atomic
- Could NOT find Boost (missing: python) (found version "1.71.0")
As you can see, there are some components in Boost except for python.
I've tried:
-DBOOST_ROOT=/usr/local/Cellar/boost_python3/1.71.0_1
-DBOOST_LIBRARY_DIRS=/usr/local/Cellar/boost_python3/1.71.0_1/lib
But due to there's no "include" dir in boost_python3, I don't know how to edit BOOST_INCLUDE_DIR. Therefore, the log says:
Could NOT find Boost (missing: Boost_INCLUDE_DIR)
PLEASE HELP!!!!!!! I intend to compile FreeCAD on my mac but I've been stuck for a few days!
I am trying to build some code using cmake. The code uses some Boost libraries. Because of that I try to find Boost in the cmakefile:
find_package(Boost 1.65.1 REQUIRED COMPONENTS unit_test_framework program_options )
I have installed boost version 1.58 via apt (I am using Linux Mint 18.3), so I obviously get the error message when trying to cmake the code:
CMake Error at /usr/share/cmake-3.5/Modules/FindBoost.cmake:1677 (message):
Unable to find the requested Boost libraries.
Boost version: 1.58.0
Boost include path: /usr/include
Detected version of Boost is too old. Requested version was 1.65.1 (or newer).
Call Stack (most recent call first):
CMakeLists.txt:14 (find_package)
-- Configuring incomplete, errors occurred!
So I went on and downloaded Boost 1.65.1 by source and built it the intended way and installed it with the prefix
sudo ./b2 install --prefix=/usr/include
When I try to build the code again, it still gives the exact same error message as before, stating that it didn't find the newer version. I have tried to uninstall version 1.58 and build, but then cmake doesn't find Boost at all.
How can I install Boost in a way, that cmake is able to find it?
Thanks in advance,
cheers!
When changing the version information of Boost in a find_package(Boost) call you need to clear the CMakeCache.txt file. Otherwise the cached information from the previous run is used.
I'm trying to compile a library requiring boost. I was able to make it work on ubuntu but I don't understand why the ./configure can't find boost_thread on Mac OS X. Boost .hpp are located in /usr/local/include/boost and .dylib and .a are located in /usr/local/lib
Here's the log file of configure : http://pastebin.com/KKqareyT
Do you have any idea ?
i try to compile a program with cmake, but I got stock with this error:
Unable to find the requested Boost libraries.
Boost version: 1.34.1
Boost include path: /usr/include
Detected version of Boost is too old. Requested version was 1.37 (or
newer).
The following Boost libraries could not be found:
boost_program_options
boost_filesystem
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.
I installed already the new boost package under /home/dev/boost_1_45_0.
But always when I try to run cmake again I get still the same error.
I also set
export BOOST_ROOT=/home/dev/boost_1_45_0
But when I execute cd ${BOOST_ROOT} I'm in the right folder.
Can anybody help me? Thanks!
Try to delete your build tree, and then run:
cmake -DBOOST_ROOT=/home/dev/boost_1_45_0 path/to/src path/to/build