Home › Forum › SOFA › Getting Started › [SOLVED] CMake error install FILES given directory
Tagged: 64_bits, SOFA_1706, Windows_10
- This topic has 3 replies, 2 voices, and was last updated 6 years, 8 months ago by rTorres.
-
AuthorPosts
-
3 April 2018 at 09:15 #10741rTorresBlocked
Hello,
I found the same two errors in CMake:
CMake Error at SofaKernel/SofaFramework/SofaMacros.cmake:237 (install):
install FILES given directory
“C:/local/sofa-win-dependencies-VS2017-20180118/lib/win32” to install.
Call Stack (most recent call first):
SofaKernel/SofaFramework/CMakeLists.txt:76 (sofa_install_get_libraries)I download Sofa version v17.06 from https://github.com/sofa-framework/sofa/tree/v17.06. I am using CMake to link all the libraries which are specified here: https://www.sofa-framework.org/community/doc/getting-started/build/windows/ I am using 64 windows but my visual studio project is a 32 version, then all libaries are linked in CMake using 32. Finally their are linked but I found all time the same two errors at first step “configure” in CMake:
CMake Error at SofaKernel/SofaFramework/SofaMacros.cmake:237 (install): install FILES given directory and Call Stack (most recent call first): SofaKernel/SofaFramework/CMakeLists.txt:76 (sofa_install_get_libraries)I download Sofa version v17.06 from https://github.com/sofa-framework/sofa/tree/v17.06. I am using CMake to link all the libraries which are specified here: https://www.sofa-framework.org/community/doc/getting-started/build/windows/ I am using 64 windows S.O. but my visual studio project is a 32 version, then all libaries are linked in CMake using 32. Finally their are linked but I found all time the same two errors at first step “configure”.
Do anyone know what can produce these errors? I have checked zlib, boost, qt, python and all external libraries.
These errors are found here, output from CMake:
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.
Install prefix: C:/SOFA/sofa-17.06/sofa-17.06/Build/install
Boost version: 1.59.0
CMake Error at SofaKernel/SofaFramework/SofaMacros.cmake:237 (install):
install FILES given directory
“C:/local/sofa-win-dependencies-VS2017-20180118/lib/win32” to install.
Call Stack (most recent call first):
SofaKernel/SofaFramework/CMakeLists.txt:76 (sofa_install_get_libraries)CMake Error at SofaKernel/SofaFramework/SofaMacros.cmake:237 (install):
install FILES given directory
“C:/local/sofa-win-dependencies-VS2017-20180118/lib/win32” to install.
Call Stack (most recent call first):
SofaKernel/SofaFramework/CMakeLists.txt:114 (sofa_install_get_libraries)Boost version: 1.59.0
Found the following Boost libraries:
system
filesystem
locale
thread
date_time
chrono
atomic
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
SofaTest: optional dependency SofaPython NOT found, Python_test won’t be built
Adding Plugin CImgPlugin
CImgPlugin: Enable TIFF Image Format
CImgPlugin: Enable JPEG Image Format
CImgPlugin: Enable PNG Image Format
Adding Application Modeler
Modeler executable: Using Qt5
Modeler library: Using Qt5
Adding Application runSofa
Configuring incomplete, errors occurred!
See also “C:/SOFA/sofa-17.06/sofa-17.06/Build/CMakeFiles/CMakeOutput.log”.
See also “C:/SOFA/sofa-17.06/sofa-17.06/Build/CMakeFiles/CMakeError.log”.Regards,
Rosell3 April 2018 at 10:12 #10742rTorresBlockedI have solved problem, CMake needs a complete path with dll to glew, glut and zlib.
3 April 2018 at 11:17 #10743GuillaumeKeymasterHi @rTorres
For auto-detection, the folders lib, include and licenses from Windows dependency pack have to be in SOFA source dir. See this doc page: “Next, unzip in your sources folder (sofa/src/) the SOFA dependencies for Windows you downloaded before”.
Otherwise, you have to locate each lib manually in CMake configuration.
Cheers,
Guillaume.3 April 2018 at 11:19 #10744rTorresBlockedThanks!
Regards,
Rosell -
AuthorPosts
- You must be logged in to reply to this topic.