Home › Forum › SOFA › Building SOFA › [SOLVED] CMake could not find CPackNSIS
Tagged: 64_bits, cmake, SOFA_other, VS2017, Windows_10
- This topic has 3 replies, 3 voices, and was last updated 5 years, 12 months ago by Hugo.
-
AuthorPosts
-
9 November 2018 at 23:24 #12356wowsofaBlocked
Hello everyone,
I am trying to build the unstable version of SoFA since the Soft robotic plugin needed it.
However, I cannot configure the project with CMake 3.13.0-rc. I got the following error:
CMake Error at CMakeLists.txt:310 (include):
include could not find load file:CPackNSIS
I would appreciate if anyone could help me out:)
Below is the entire CMake log:
Install prefix: C:/sofa_unstable/sofa/master/build/install Boost autodetection on Windows was removed. Please follow CMake documentation to find Boost on your system. Hint: set BOOST_ROOT to your Boost location. Boost version: 1.68.0 Boost version: 1.68.0 Found the following Boost libraries: system filesystem locale program_options thread date_time chrono atomic Cannot find any Qt libraries on your system, please set Qt5_DIR or Qt4_DIR if you want to compile GUIs using Qt Adding Module SofaSparseSolver -- metis was not found, SparseLDLSolver won't be built -- csparse was found, SparseLUSolver and SparseCholeskySolver will be built Adding Module SofaPreconditioner -- newmat was found. SofaTest: optional dependency SofaPython NOT found, Python_test won't be built Adding Plugin CImgPlugin CImgPlugin: TIFF Image Format enabled CImgPlugin: JPEG Image Format enabled CImgPlugin: PNG Image Format enabled 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 Plugin SofaAllCommonComponents Adding Application runSofa Write Plugin list at C:/sofa_unstable/sofa/master/build/bin/plugin_list.conf.default CMake Deprecation Warning at CMakeLists.txt:267 (message): Deprecated components are activated (SOFA_WITH_DEPRECATED_COMPONENTS variable is ON) CMake Error at CMakeLists.txt:310 (include): include could not find load file: CPackNSIS Configuring incomplete, errors occurred! See also "C:/sofa_unstable/sofa/master/build/CMakeFiles/CMakeOutput.log". See also "C:/sofa_unstable/sofa/master/build/CMakeFiles/CMakeError.log".
15 November 2018 at 10:14 #12480GuillaumeKeymasterHi wowsofa,
Thank you for the bug report, I will investigate here. Looks like CMake 3.13 does not like including CPack generators.
Could you tell me if commenting out this line fixes the problem?
Thanks,
Guillaume.15 November 2018 at 18:58 #12495wowsofaBlockedHello Guillaume,
It compiled successfully after commented out
include(CPackNSIS)
Now I haven’t met any problem.I really appreciate your help!
15 November 2018 at 19:08 #12496HugoKeymasterGreat @yaookyiegmail-com ! Welcome to the SOFA community and we are looking forward to your achievements with SOFA!
Best wishes,
Hugo
-
AuthorPosts
- You must be logged in to reply to this topic.