Home › Forum › SOFA › Building SOFA › [SOLVED] Problem with Boost in CMake
Tagged: how to solve this problem?
- This topic has 13 replies, 8 voices, and was last updated 3 years, 5 months ago by Jake.
-
AuthorPosts
-
5 June 2019 at 15:58 #13578simonBlocked
I am trying to build CMake for Sofa and got a problem with boost as follows:
“CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Boost (missing: system filesystem locale program_options
chrono atomic) (found version “1.66.0”)
Call Stack (most recent call first):
C:/Program Files (x86)/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/CMake/share/cmake-3.15/Modules/FindBoost.cmake:1990 (find_package_handle_standard_args)
SofaKernel/SofaFramework/CMakeLists.txt:115 (find_package)”Anyone can help? Thanks
6 June 2019 at 04:34 #13580simonBlockedBy manually assigned value to “Boost_SYSTEM_LIBRARY_RELEASE, Boost_PROGRAM_OPTIONS …” to G:/My drive/Library/sofa/src/boost_1_166_0/lib64-msvc-14.0, I solved the problem.
7 June 2019 at 10:16 #13588HugoKeymasterHi @simonau866
Welcome to the SOFA forum and thank you for your interest in SOFA!
Congratulations for having already solved your own issue and shared the solution. It is always very useful to the community.I will therefore close this topic. Do not hesitate to open a new one if you face any other issue. Best,
Hugo
14 July 2019 at 13:34 #13949EyadBlockedHi @simonau866
Can you share exactly how to set these values?Thank you!
14 July 2019 at 22:01 #13950HugoKeymasterHi @eyadshak
In the CMake configuration (I guess using the cmake-gui interface), you need to set the CMake variable for boost. As detailed here in the doc, you can create a new entry
BOOST_ROOT
and specify the path to your boost directory.If you struggle, please specify us your OS and all your versions (SOFA, boost, cmake)
Best
Hugo
15 July 2019 at 09:55 #13954EyadBlockedHey @hugo
I have already done that but I get the same error. Running on Windows 7, SOFA 19.06, boost 1.70.0, CMake 3.15.0, VS15. I got it working on Ubuntu though, but not on Windows.
Install prefix: C:/sofa/build/install CMake Warning (dev) at CMakeLists.txt:113 (find_package): Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables. Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Environment variable Boost_ROOT is set to: C:\local\boost_1_70_0\ For compatibility, CMake is ignoring the variable. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at SofaKernel/SofaFramework/CMakeLists.txt:107 (find_package): Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables. Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Environment variable Boost_ROOT is set to: C:\local\boost_1_70_0\ For compatibility, CMake is ignoring the variable. This warning is for project developers. Use -Wno-dev to suppress it. CMake Error at C:/Program Files/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find Boost (missing: system filesystem program_options chrono atomic) (found version "1.70.0") Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) C:/Program Files/CMake/share/cmake-3.15/Modules/FindBoost.cmake:2142 (find_package_handle_standard_args) SofaKernel/SofaFramework/CMakeLists.txt:107 (find_package) Configuring incomplete, errors occurred! See also "C:/sofa/build/CMakeFiles/CMakeOutput.log". See also "C:/sofa/build/CMakeFiles/CMakeError.log".
Appreciate your help!
15 July 2019 at 17:09 #13957GuillaumeKeymasterHi @eyadshak,
At every new Boost version, it takes some (long) time for CMake devs to update how to handle the dependencies within Boost. Because of this, latest Boost versions always cause detection problems with CMake.
My recommendation to avoid this problem:
1. Go on CMake releases page and note the release date of the latest stable CMake (not a “rc” version).
2. Install this CMake version.
3. Go on Boost version history and note what was the latest Boost version on the CMake release date you noted at step 1.
4. Install the PREVIOUS Boost version.Therefore, I would go for CMake 3.14.5 (latest stable release) and Boost 1.69.0 (CMake 3.14.5 was out on 31 May 2019, latest Boost on this date was 1.70.0, previous version is 1.69.0).
Hope that helps,
Guillaume.29 July 2019 at 12:24 #14020simonBlockedHi @Eyad, sorry for the late reply.
You can take a look at this video: https://ez4linkss.com/DqjN30 July 2019 at 09:30 #14035EyadBlockedHello everyone,
Thanks @simonau866 for the video! For now I got SOFA running all and well on Windows 10, it was indeed a compatibility issue between CMake and Boost, though I did face detection errors on CMake 3.14.5 + Boost 1.69.0. I used my previous combination that worked on Ubuntu and it was able to build and compile successfully.
Here is my current configuration:
– Windows 10 Pro
– SOFA v19.06
– Visual Studio Community 2015
– CMake 3.10.2
– Boost 1.65.1
– Qt 5.12.2 LTSThanks all
17 September 2019 at 05:37 #14244charlesBlockedwhen i click configure button in cmake, there is no item related to boost. how is that?
14 October 2020 at 09:33 #17396fabianvBlockedHI, I HAD SAME PROBLEM, CMAKE DO NOT FIND PATH, for this on cmake activate adavance check box and search boost, and then i put the path in each type. similar to this image.
https://www.dropbox.com/s/p3c23wmppub4es2/ayuda_sofa.png?dl=0
14 October 2020 at 09:33 #17397fabianvBlockedHI, I HAd SAME PROBLEM, CMAKE DO NOT FIND PATH, for this on qmake activate advanced checkbox and search boost, and then i put the path in each type. similar to this image.
https://www.dropbox.com/s/p3c23wmppub4es2/ayuda_sofa.png?dl=0
26 October 2020 at 18:43 #17454HugoKeymasterI am not sure to understand whether you are facing a problem or not.
For your information a detailed reply regarding boost was made here.I hope this helps. If not, please do not hesitate to post a new question.
Best wishes,Hugo
2 June 2021 at 14:08 #19627JakeBlockedCMake Deprecation Warning at CMakeLists.txt:221 (message):
Deprecated components are activated (SOFA_WITH_DEPRECATED_COMPONENTS
variable is ON)CMake Error at C:/Program Files/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Boost (missing: system filesystem program_options) (found
version “1.75.0”)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.20/Modules/FindBoost.cmake:2344 (find_package_handle_standard_args)
SofaKernel/SofaFramework/SofaMacrosConfigure.cmake:328 (find_package)
SofaKernel/modules/SofaHelper/CMakeLists.txt:6 (sofa_find_package) -
AuthorPosts
- You must be logged in to reply to this topic.