Home › Forum › SOFA › Building SOFA › CMake can't find Boost Library
Tagged: 64_bits, boost library, cmake gui, SOFA_other, vs2015, Windows_10
- This topic has 1 reply, 2 voices, and was last updated 6 years, 4 months ago by Hugo.
-
AuthorPosts
-
23 June 2018 at 19:25 #11223DufreneBlocked
Hi!
I am trying to build SOFA from the master unstable version.I followed the guidelines for Windows. Please find the following information as my pre-requisites:
1. Visual Studio: VS2015
2. MS Build Tool 2015
3. CMake: 3.11.4
4. Qt: 5.11
5. Boost Library: 1.66.0, installed using boost_1_66_0-msvc-14.0-64.exe found here
6. Windows dependecy pack VS2015, unpacked into \sofa\src directory
7. compiler: NinjaI encountered problems when buuilding from CMake, which fails to find boost library. The error message is:
The C compiler identification is GNU 6.3.0 The CXX compiler identification is GNU 6.3.0 Check for working C compiler: C:/MinGW/bin/gcc.exe Check for working C compiler: C:/MinGW/bin/gcc.exe -- works Detecting C compiler ABI info Detecting C compiler ABI info - done Detecting C compile features Detecting C compile features - done Check for working CXX compiler: C:/MinGW/bin/c++.exe Check for working CXX compiler: C:/MinGW/bin/c++.exe -- works Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done Detecting CXX compile features Detecting CXX compile features - done CMake Deprecation Warning at CMakeLists.txt:19 (cmake_policy): The OLD behavior for policy CMP0015 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. CMake Deprecation Warning at CMakeLists.txt:21 (cmake_policy): The OLD behavior for policy CMP0039 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. CMake Deprecation Warning at CMakeLists.txt:22 (cmake_policy): The OLD behavior for policy CMP0043 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. CMake Deprecation Warning at CMakeLists.txt:25 (cmake_policy): The OLD behavior for policy CMP0054 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. Install prefix: C:/SOFTWARE/sofa/build/master/install Boost version: 1.66.0 Found PythonInterp: C:/Users/Dufrene Lee/AppData/Local/Programs/Python/Python36/python.exe (found version "3.6.4") Found OpenGL: opengl32 Could NOT find GLEW (missing: GLEW_INCLUDE_DIR GLEW_LIBRARY) OpenGL advanced functions (e.g shaders, FBO) are disabled. Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) Could NOT find ZLIB (missing: ZLIB_INCLUDE_DIR) Looking for pthread.h Looking for pthread.h - not found Found Threads: TRUE CMake Error at C:/SOFTWARE/cmake/share/cmake-3.11/Modules/FindBoost.cmake:2044 (message): Unable to find the requested Boost libraries. Boost version: 1.66.0 Boost include path: C:/SOFTWARE/boost/boost_1_66_0 Could not find the following Boost libraries: boost_system boost_filesystem boost_locale boost_program_options 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): SofaKernel/SofaFramework/CMakeLists.txt:128 (find_package) SofaSparseSolver: metis was not found, SparseLDLSolver won't be built SofaSparseSolver: csparse was found, SparseLUSolver and SparseCholeskySolver will be built QGLViewer: Using Qt5 SofaGUIQt: Using Qt5 Up-to-date: C:/SOFTWARE/sofa/build/master/SofaGui/SofaGuiQt/../../share/sofa/gui/qt/resources Up-to-date: C:/SOFTWARE/sofa/build/master/SofaGui/SofaGuiQt/../../share/sofa/gui/qt/resources/icons Up-to-date: C:/SOFTWARE/sofa/build/master/SofaGui/SofaGuiQt/../../share/sofa/gui/qt/resources/icons/back.png Up-to-date: C:/SOFTWARE/sofa/build/master/SofaGui/SofaGuiQt/../../share/sofa/gui/qt/resources/icons/back.xpm Up-to-date: C:/SOFTWARE/sofa/build/master/SofaGui/SofaGuiQt/../../share/sofa/gui/qt/resources/icons/graphicon.ico Up-to-date: C:/SOFTWARE/sofa/build/master/SofaGui/SofaGuiQt/../../share/sofa/gui/qt/resources/icons/home.png Up-to-date: C:/SOFTWARE/sofa/build/master/SofaGui/SofaGuiQt/../../share/sofa/gui/qt/resources/icons/home.xpm Up-to-date: C:/SOFTWARE/sofa/build/master/SofaGui/SofaGuiQt/../../share/sofa/gui/qt/resources/icons/icondata.xpm Up-to-date: C:/SOFTWARE/sofa/build/master/SofaGui/SofaGuiQt/../../share/sofa/gui/qt/resources/icons/iconerror.xpm Up-to-date: C:/SOFTWARE/sofa/build/master/SofaGui/SofaGuiQt/../../share/sofa/gui/qt/resources/icons/iconinfo.xpm Up-to-date: C:/SOFTWARE/sofa/build/master/SofaGui/SofaGuiQt/../../share/sofa/gui/qt/resources/icons/iconmultinode.xpm Up-to-date: C:/SOFTWARE/sofa/build/master/SofaGui/SofaGuiQt/../../share/sofa/gui/qt/resources/icons/iconnode.xpm Up-to-date: C:/SOFTWARE/sofa/build/master/SofaGui/SofaGuiQt/../../share/sofa/gui/qt/resources/icons/iconsleep.xpm Up-to-date: C:/SOFTWARE/sofa/build/master/SofaGui/SofaGuiQt/../../share/sofa/gui/qt/resources/icons/iconwarning.xpm Up-to-date: C:/SOFTWARE/sofa/build/master/SofaGui/SofaGuiQt/../../share/sofa/gui/qt/resources/icons/openFile.png SofaTest: optional dependency SofaPython NOT found, Python_test won't be built Adding Plugin CImgPlugin CImgPlugin: TIFF Image Format disabled CImgPlugin: JPEG Image Format disabled CImgPlugin: Did not find ZLIB library (required for PNG Image Format) Adding Plugin SofaMiscCollision SofaMiscModule: build all maintained sofa components. SofaMiscCollision: optional dependency SofaSphFluid not found de-activing: <SpatialGridPointModel> -- PSL is an experimental feature, use it at your own risk. Adding EXTERNAL subdirectory SofaHighOrder Checking for C:/SOFTWARE/sofa/build/master/externals/SofaHighOrder/ Pulling SofaHighOrder... -- Configuring done -- Generating done -- Build files have been written to: C:/SOFTWARE/sofa/build/master/externals/SofaHighOrder [1/6] Performing update step for 'SofaHighOrder' HEAD is up to date. [2/6] No configure step for 'SofaHighOrder ' [3/6] No build step for 'SofaHighOrder ' [4/6] No install step for 'SofaHighOrder ' [5/6] No test step for 'SofaHighOrder' [6/6] Completed 'SofaHighOrder ' ... Done Adding Plugin SofaAllCommonComponents Adding Application Modeler CMake Deprecation Warning at applications/projects/Modeler/CMakeLists.txt:1 (message): Modeler project is deprecated Modeler executable: Using Qt5 Modeler library: Using Qt5 Adding Application runSofa Write Plugin list at C:/SOFTWARE/sofa/build/master/lib/plugin_list.conf.default Up-to-date: C:/SOFTWARE/sofa/build/master/applications/projects/runSofa/../../../share/sofa/gui/runSofa/resources Up-to-date: C:/SOFTWARE/sofa/build/master/applications/projects/runSofa/../../../share/sofa/gui/runSofa/resources/docs Up-to-date: C:/SOFTWARE/sofa/build/master/applications/projects/runSofa/../../../share/sofa/gui/runSofa/resources/docs/runsofa.html CMake Deprecation Warning at CMakeLists.txt:345 (message): Deprecated components are activated (SOFA_WITH_DEPRECATED_COMPONENTS variable is ON) Configuring incomplete, errors occurred! See also "C:/SOFTWARE/sofa/build/master/CMakeFiles/CMakeOutput.log". See also "C:/SOFTWARE/sofa/build/master/CMakeFiles/CMakeError.log".
I checked in the CMakeCache.txt, where the following text is found:
BOOST_LIBRARYDIR:PATH=C:/SOFTWARE/boost/boost_1_66_0/lib64-msvc-14.0 BOOST_ROOT:PATH=C:/SOFTWARE/boost/boost_1_66_0 //Boost atomic library (debug) Boost_ATOMIC_LIBRARY_DEBUG:FILEPATH=Boost_ATOMIC_LIBRARY_DEBUG-NOTFOUND //Boost atomic library (release) Boost_ATOMIC_LIBRARY_RELEASE:FILEPATH=Boost_ATOMIC_LIBRARY_RELEASE-NOTFOUND //Boost chrono library (debug) Boost_CHRONO_LIBRARY_DEBUG:FILEPATH=Boost_CHRONO_LIBRARY_DEBUG-NOTFOUND //Boost chrono library (release) Boost_CHRONO_LIBRARY_RELEASE:FILEPATH=Boost_CHRONO_LIBRARY_RELEASE-NOTFOUND //Boost date_time library (debug) Boost_DATE_TIME_LIBRARY_DEBUG:FILEPATH=Boost_DATE_TIME_LIBRARY_DEBUG-NOTFOUND //Boost date_time library (release) Boost_DATE_TIME_LIBRARY_RELEASE:FILEPATH=Boost_DATE_TIME_LIBRARY_RELEASE-NOTFOUND //The directory containing a CMake configuration file for Boost. Boost_DIR:PATH=Boost_DIR-NOTFOUND //Boost filesystem library (debug) Boost_FILESYSTEM_LIBRARY_DEBUG:FILEPATH=Boost_FILESYSTEM_LIBRARY_DEBUG-NOTFOUND //Boost filesystem library (release) Boost_FILESYSTEM_LIBRARY_RELEASE:FILEPATH=Boost_FILESYSTEM_LIBRARY_RELEASE-NOTFOUND //Path to a file. Boost_INCLUDE_DIR:PATH=C:/SOFTWARE/boost/boost_1_66_0 //Boost locale library (debug) Boost_LOCALE_LIBRARY_DEBUG:FILEPATH=Boost_LOCALE_LIBRARY_DEBUG-NOTFOUND //Boost locale library (release) Boost_LOCALE_LIBRARY_RELEASE:FILEPATH=Boost_LOCALE_LIBRARY_RELEASE-NOTFOUND //Boost program_options library (debug) Boost_PROGRAM_OPTIONS_LIBRARY_DEBUG:FILEPATH=Boost_PROGRAM_OPTIONS_LIBRARY_DEBUG-NOTFOUND //Boost program_options library (release) Boost_PROGRAM_OPTIONS_LIBRARY_RELEASE:FILEPATH=Boost_PROGRAM_OPTIONS_LIBRARY_RELEASE-NOTFOUND //Boost system library (debug) Boost_SYSTEM_LIBRARY_DEBUG:FILEPATH=Boost_SYSTEM_LIBRARY_DEBUG-NOTFOUND //Boost system library (release) Boost_SYSTEM_LIBRARY_RELEASE:FILEPATH=Boost_SYSTEM_LIBRARY_RELEASE-NOTFOUND //Boost thread library (debug) Boost_THREAD_LIBRARY_DEBUG:FILEPATH=Boost_THREAD_LIBRARY_DEBUG-NOTFOUND //Boost thread library (release) Boost_THREAD_LIBRARY_RELEASE:FILEPATH=Boost_THREAD_LIBRARY_RELEASE-NOTFOUND
I have tried to specify BOOST_ROOT, BOOST_LIBRARYDIR, which still leads to the same error message as above.
I have really limited experience in C++ and relevant areas, and hope to get your guidance for this issue. Your help is really appreciated! Thanks!
27 June 2018 at 17:45 #11242HugoKeymasterHi @dufrene
First thank you for your interest in SOFA and welcome to our open free forum!
The problem you encounter is a well known problem, not related to SOFA.It is actually due to Boost and CMake that have incompatibilities with some versions. The version of CMake 3.11 is especially known to have issues with its FindBoost function. We would therefore recommend to decrease your version of CMake to 3.9.
Let us know about your progress.
BestHugo
-
AuthorPosts
- You must be logged in to reply to this topic.