Home › Forum › SOFA › Building SOFA › [SOLVED] Building v16.08, Cmake Errors
Tagged: 64_bits, SOFA_1608, vs2015, Windows_10
- This topic has 3 replies, 2 voices, and was last updated 8 years ago by Guillaume.
-
AuthorPosts
-
8 November 2016 at 14:07 #7760MoonfaxxBlocked
Hello dear support team,
I’m trying to build Sofa because I’ve read it’s the only way to use the Modeler but I’m getting these errors when clicking ‘configure’ in Cmake:
______________________________________________
CMake Error: Cannot open file for write: C:/Program Files/Sofa/v16.08/build/CMakeCache.txt.tmp CMake Error at C:/Program Files/cmake-3.6.2-win64-x64/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:177 (file): file failed to open for writing (No such file or directory): C:/Program Files/Sofa/v16.08/build/CMakeFiles/CMakeOutput.log Call Stack (most recent call first): CMakeLists.txt:2 (project) CMake Error: Could not open file for write in copy operation C:/Program Files/Sofa/v16.08/build/CMakeFiles/3.6.2/CMakeSystem.cmake.tmp CMake Error: : System Error: No such file or directory CMake Error at C:/Program Files/cmake-3.6.2-win64-x64/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:189 (configure_file): configure_file Problem configuring file Call Stack (most recent call first): CMakeLists.txt:2 (project) CMake Error at C:/Program Files/cmake-3.6.2-win64-x64/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:141 (file): file problem creating directory: C:/Program Files/Sofa/v16.08/build/CMakeFiles/3.6.2/CompilerIdC Call Stack (most recent call first): C:/Program Files/cmake-3.6.2-win64-x64/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:40 (CMAKE_DETERMINE_COMPILER_ID_BUILD) C:/Program Files/cmake-3.6.2-win64-x64/share/cmake-3.6/Modules/CMakeDetermineCCompiler.cmake:121 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:2 (project) The C compiler identification is unknown CMake Error: Could not open file for write in copy operation C:/Program Files/Sofa/v16.08/build/CMakeFiles/3.6.2/CMakeCCompiler.cmake.tmp CMake Error: : System Error: No such file or directory CMake Error at C:/Program Files/cmake-3.6.2-win64-x64/share/cmake-3.6/Modules/CMakeDetermineCCompiler.cmake:184 (configure_file): configure_file Problem configuring file Call Stack (most recent call first): CMakeLists.txt:2 (project) CMake Error: Could not find cmake module file: C:/Program Files/Sofa/v16.08/build/CMakeFiles/3.6.2/CMakeCCompiler.cmake CMake Error at C:/Program Files/cmake-3.6.2-win64-x64/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:141 (file): file problem creating directory: C:/Program Files/Sofa/v16.08/build/CMakeFiles/3.6.2/CompilerIdCXX Call Stack (most recent call first): C:/Program Files/cmake-3.6.2-win64-x64/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:40 (CMAKE_DETERMINE_COMPILER_ID_BUILD) C:/Program Files/cmake-3.6.2-win64-x64/share/cmake-3.6/Modules/CMakeDetermineCXXCompiler.cmake:113 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:2 (project) The CXX compiler identification is unknown CMake Error: Could not open file for write in copy operation C:/Program Files/Sofa/v16.08/build/CMakeFiles/3.6.2/CMakeCXXCompiler.cmake.tmp CMake Error: : System Error: No such file or directory CMake Error at C:/Program Files/cmake-3.6.2-win64-x64/share/cmake-3.6/Modules/CMakeDetermineCXXCompiler.cmake:179 (configure_file): configure_file Problem configuring file Call Stack (most recent call first): CMakeLists.txt:2 (project) CMake Error: Could not find cmake module file: C:/Program Files/Sofa/v16.08/build/CMakeFiles/3.6.2/CMakeCXXCompiler.cmake CMake Error at CMakeLists.txt:2 (project): No CMAKE_C_COMPILER could be found. CMake Error at CMakeLists.txt:2 (project): No CMAKE_CXX_COMPILER could be found.
__________________________________________________________
After clicking Configure the second time I get:CMake Error: Cannot open file for write: C:/Program Files/Sofa/v16.08/build/CMakeCache.txt.tmp CMake Error: : System Error: Permission denied CMake Error: Unable to open cache file for save. C:/Program Files/Sofa/v16.08/build/CMakeCache.txt CMake Error: : System Error: Permission denied CMake Error: : System Error: Permission denied CMake Error: Unable to open cache file for save. C:/Program Files/Sofa/v16.08/build/CMakeCache.txt CMake Error: : System Error: Permission denied
___________________________________________________________
I have boost 1.60.0 installed, QT 5.6 (with the 3D modules) and CMake 3.6.2
I followed the build guide for windows, did include the Paths in Advanced System Settings.
The downloaded Sofa sources ar in Program Files/Sofa/v.16.08/src and the folder Program Files/Sofa/v.16.08/build is empty.Can you please provide some help?
Thanks,
Moonfaxx8 November 2016 at 15:53 #7761GuillaumeKeymasterHi Moonfaxx,
I strongly suggest you to not use “Program Files” as base directory for programming/compiling stuff. This folder is protected by Windows, that’s why you get all these “Permission denied” errors. More, the space character in “Program Files” may cause problems like inclusion errors, path resolving errors, …
Create a new directory (named without space) at your hard drive root like
C:\dev\
and retry from there 😉Cheers,
Guillaume.10 November 2016 at 15:02 #7767MoonfaxxBlockedThanks for the tip Guillame,
Configuring and generating the build files did work but now I’m getting lots of ‘can’t open blabla.lib’ errors. They all have the error code LNK1104.
I installed the C++ packages and SDK tools for VS14 but it doesn’t help.
Do I need to change something in CMake?
greetings,
David17 November 2016 at 16:22 #7783GuillaumeKeymasterHi Moonfaxx,
Sorry but I can’t help you with so few information.
Did you carefully follow our documentation?
What is your output?Guillaume.
-
AuthorPosts
- You must be logged in to reply to this topic.