Home › Forum › SOFA › Building SOFA › During installation of sofa in Cmke-gui I have got following Configuration error
Tagged: Unable to determine the path
- This topic has 15 replies, 6 voices, and was last updated 3 years, 1 month ago by Hugo.
-
AuthorPosts
-
7 May 2021 at 07:27 #19391JakeBlocked
Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19041.
Install prefix: C:/sofa/build/install
CMake 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)Configuring incomplete, errors occurred!
See also “C:/sofa/build/CMakeFiles/CMakeOutput.log”.
See also “C:/sofa/build/CMakeFiles/CMakeError.log”.7 May 2021 at 23:25 #19407HugoKeymasterAs CMake is outputting in the error message you need to install boost.
It appears in the required dependencies.Boost must be with version >= 1.65.1
Download and install latest Boost from https://boost.teeks99.com.
– Users with Windows 64-bit and VS 2019: choose boost_X_X_X-msvc-14.2-64.exe
– Users with Windows 64-bit and VS 2017: choose boost_X_X_X-msvc-14.1-64.exe
– Users with Windows 32-bit and VS 2019: choose boost_X_X_X-msvc-14.2-32.exe
– Users with Windows 32-bit and VS 2017: choose boost_X_X_X-msvc-14.1-32.exeBest wishes,
Hugo
8 May 2021 at 09:46 #19412JakeBlockedThank you for your kind infirmation,
Is there any specific folder do I install the boost software?8 May 2021 at 18:24 #19416HugoKeymasterNo but you may have to specify this path where you installed boost in the CMake configuration step.
Best wishes,Hugo
21 May 2021 at 00:09 #19500DinaryBlockedHi @Hugo
i have the same problem, i installed many versions of boost and have the same errorCould NOT find Boost (missing: system filesystem program_options) (found
version “1.75.0”)i add the path of the boost folder in the widows but also not working
Regards,
m. Dinary31 May 2021 at 23:16 #19615HugoKeymasterHi @dinary
I think the answer is in the error: you are missingsystem filesystem program_options. I think it found the headers but not the libs. As suggested on this forum, you need to set
BOOST_ROOT
orBoost_DIR
How did you install boost?
Best wishes,
Hugo
12 June 2021 at 18:24 #19688DinaryBlockedSorry for late reply
i have to choose the platform x64 in the starting of the cmake, that’s solve the boost problem with add the directory of the header and library files.
still have errors in the configuring with cmake hope it all end.
Thank you for support,
M. Dinary22 June 2021 at 21:59 #19796HugoKeymasterHi @dinary
Are the errors you are referring to the same CMake errors about boost?
If so, did you set both variablesBOOST_ROOT
orBoost_DIR
, as suggested on this forum?Hugo
26 June 2021 at 10:41 #19877JakeBlockedCould NOT find GLEW (missing: GLEW_INCLUDE_DIRS GLEW_LIBRARIES)
OpenGL advanced functions (e.g shaders, FBO) are disabled.
Adding module SofaSimpleFem
Adding module SofaRigid
Adding module SofaDeformable
Adding module SofaObjectInteraction
Adding module SofaMeshCollision
Adding module SofaEngine
Adding module SofaExplicitOdeSolver
Adding module SofaImplicitOdeSolver
Adding module SofaLoader
Adding module SofaGeneralVisual
Adding module SofaGraphComponent
Adding module SofaGeneralMeshCollision
Adding module SofaBoundaryCondition
Adding module SofaGeneralAnimationLoop
Adding module SofaGeneralDeformable
Adding module SofaGeneralEngine
Adding module SofaGeneralExplicitOdeSolver
Adding module SofaGeneralImplicitOdeSolver
Adding module SofaGeneralLinearSolver
Adding module SofaGeneralRigid
Adding module SofaGeneralObjectInteraction
Adding module SofaGeneralSimpleFem
Adding module SofaGeneralTopology
Adding module SofaTopologyMapping
Adding module SofaUserInteraction
Adding module SofaConstraint
Adding module SofaGeneralLoader
CMake Error at C:/Program Files/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
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/FindZLIB.cmake:120 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
SofaKernel/SofaFramework/SofaMacrosConfigure.cmake:328 (find_package)
modules/SofaGeneralLoader/CMakeLists.txt:50 (sofa_find_package)29 June 2021 at 18:21 #19897jnbrunetModeratorHey Jake,
Did you correctly installed the Windows’s dependencies ? Especially the part Windows dependency pack in the Additional libraries part:
Note that you need to unzip this archive into the source directory of SOFA, as stated in the Setup your source and build directories sub section:
Let us know if that helped.
29 June 2021 at 19:24 #19900Julien D.BlockedHey @Jake,
I faced the same problem a few weeks ago… But the members of the SOFA community helped me a lot ^^
So, if you have properly unzipped the WIN_dependency folder, you have to add several lines to your CMake file to detect all these dependencies properly.
First,
set(CMAKE_PREFIX_PATH ${LIBRARIES_PATH}/sofa/build/install/) set(CMAKE_MODULE_PATH ${LIBRARIES_PATH}/sofa/src/cmake/Modules)
allows CMake to find the XXXtargets.cmake files of SOFA and the dependencies’ cmake files.
Then,
set(GLEW_INCLUDE_DIR ${LIBRARIES_PATH}/sofa/src/include) set(GLEW_SHARED_LIBRARY_RELEASE ${LIBRARIES_PATH}/sofa/src/lib/win64/glew32.lib)
allows CMake to find the files required for GLEW.
Be careful to set ${LIBRARIES_PATH} to the root of your libraries folders.
Best wishes,
Julien D
1 July 2021 at 07:57 #19908JakeBlockedthanks for your support..I have overcome this problem, recently I am facing the following problems:
CMake Warning at CMakeLists.txt:15 (FIND_PACKAGE):
By not providing “FindQt5Widgets.cmake” in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
“Qt5Widgets”, but CMake did not find one.Could not find a package configuration file provided by “Qt5Widgets” with
any of the following names:Qt5WidgetsConfig.cmake
qt5widgets-config.cmakeAdd the installation prefix of “Qt5Widgets” to CMAKE_PREFIX_PATH or set
“Qt5Widgets_DIR” to a directory containing one of the above files. If
“Qt5Widgets” provides a separate development package or SDK, be sure it has
been installed.Install prefix:
CMake Deprecation Warning at CMakeLists.txt:228 (message):
Deprecated components are activated (SOFA_WITH_DEPRECATED_COMPONENTS
variable is ON)Adding module SofaSimpleFem
Adding module SofaRigid
Adding module SofaDeformable
Adding module SofaObjectInteraction
Adding module SofaMeshCollision
Adding module SofaEngine
Adding module SofaExplicitOdeSolver
Adding module SofaImplicitOdeSolver
Adding module SofaLoader
Adding module SofaGeneralVisual
Adding module SofaGraphComponent
Adding module SofaGeneralMeshCollision
Adding module SofaBoundaryCondition
Adding module SofaGeneralAnimationLoop
Adding module SofaGeneralDeformable
Adding module SofaGeneralEngine
Adding module SofaGeneralExplicitOdeSolver
Adding module SofaGeneralImplicitOdeSolver
Adding module SofaGeneralLinearSolver
Adding module SofaGeneralRigid
Adding module SofaGeneralObjectInteraction
Adding module SofaGeneralSimpleFem
Adding module SofaGeneralTopology
Adding module SofaTopologyMapping
Adding module SofaUserInteraction
Adding module SofaConstraint
Adding module SofaGeneralLoader
Adding module SofaSparseSolver
SofaSparseSolver: using built-in metis library
Adding module SofaPreconditioner
Adding module SofaHaptics
Adding module SofaValidation
Adding module SofaDenseSolver
Adding module SofaNonUniformFem
Adding module SofaOpenglVisual
Adding module SofaMiscTopology
Adding module SofaMiscExtra
Adding module SofaMiscForceField
Adding module SofaMiscEngine
Adding module SofaMiscSolver
Adding module SofaMiscFem
Adding module SofaMiscMapping
CMake Error at modules/SofaGuiQt/CMakeLists.txt:11 (message):
SofaGuiQt: Qt5 is required and was not found.Add Qt5 directory to CMAKE_PREFIX_PATH or disable SofaGuiQt by setting
SOFAGUI_QT to OFF.SofaGuiQt: Qt5Charts not found. No chart nor Profile will be compiled
CMake Error at modules/SofaGuiQt/libQGLViewer-2.7.1/QGLViewer/CMakeLists.txt:7 (message):
QGLViewer: Qt5 is required and was not found.Add Qt5 directory to CMAKE_PREFIX_PATH or disable QGLViewer by setting
SOFAGUI_QGLVIEWER to OFF.CMake Error at modules/SofaGuiQt/libQGLViewer-2.7.1/QGLViewer/CMakeLists.txt:75 (qt5_wrap_cpp):
Unknown CMake command “qt5_wrap_cpp”.Configuring incomplete, errors occurred!
See also “C:/sofa/build/CMakeFiles/CMakeOutput.log”.
See also “C:/sofa/build/CMakeFiles/CMakeError.log”.2 July 2021 at 10:48 #19910Julien D.BlockedHave you installed Qt properly? If I remember right, you have to install Qt (from the unified installer or any other) and add the location of your files FindQtXXX.cmake to your PATH. You can try that but I’m not sure it will 100% solve your issue. Hope that helps anyways.
Best wishes
29 July 2021 at 04:45 #20095JakeBlockedCan anyone suggests which ubuntu version (16.04 or 18.04) is better for SOFA installation?
5 August 2021 at 10:19 #20132amazierBlockedHi Jack,
I would recommend at least the 18.04 (the 16.04 is not supported by Ubuntu since April). The best one would even be the 20.04, good luck.
Arnaud
1 October 2021 at 09:04 #20471HugoKeymasterHey @kaziabduljamil
On both question, both @jducrocq007 and @amazier were right:
– Ubuntu 18.04 (even better: 20.04)
– for your Qt issue, comes from the fact that during the install of Qt you forgot to select the Qt5 option or you did not add Qt in your CMAKE_PREFIX_PATH. See here for the option selection.Best,
Hugo
-
AuthorPosts
- You must be logged in to reply to this topic.