5 June 2019 at 15 h 58 min #13578
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)
Anyone can help? Thanks6 June 2019 at 4 h 34 min #13580
By 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 h 16 min #13588
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,
Hugo14 July 2019 at 13 h 34 min #13949
Can you share exactly how to set these values?
Thank you!14 July 2019 at 22 h 01 min #13950
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_ROOTand specify the path to your boost directory.
If you struggle, please specify us your OS and all your versions (SOFA, boost, cmake)
Hugo15 July 2019 at 9 h 55 min #13954
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 h 09 min #13957GuillaumeKeymaster
- SOFA Consortium
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 h 24 min #14020
Hi @Eyad, sorry for the late reply.
You can take a look at this video: https://ez4linkss.com/DqjN30 July 2019 at 9 h 30 min #14035
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 LTS
Thanks all17 September 2019 at 5 h 37 min #14244charlesParticipant
when i click configure button in cmake, there is no item related to boost. how is that?14 October 2020 at 9 h 33 min #17396fabianvParticipant
- Universidad del Cauca
HI, 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.14 October 2020 at 9 h 33 min #17397fabianvParticipant
- Universidad del Cauca
HI, 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.26 October 2020 at 18 h 43 min #17454
- You must be logged in to reply to this topic.