19 April 2018 at 17 h 08 min #10792
I had no issues compiling for Ubuntu but in windows 10 with visual studio 17 I am getting this error in cmake.
Selecting Windows SDK version to target Windows 10.0.16299. CMake Error at CMakeLists.txt:2 (project): Failed to run MSBuild command: MSBuild.exe to get the value of VCTargetsPath: The system cannot find the file specified
I googled this a bit and found this solution.
The possible solution to this is to install MSBuild.exe
Scroll down to Other Tools and Frameworks, and install Build Tools For Visual Studio
So I installed build tools but it did not help. So is something messed up with my Path to MSBuild?
Thanks21 April 2018 at 19 h 16 min #10812
I updated my windows environment PATH variable so it would find MSBuild.exe but now it is giving this error.
error MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
My searching for why it is looking for Microsoft.Cpp.Default.props has not been helpful.14 May 2018 at 10 h 06 min #11026
- SOFA Consortium
Sorry for the late answer.
It seems that your Visual Studio installation is a bit messed up. Did you manage to solve your issue?
Guillaume.15 May 2018 at 7 h 38 min #11031
I installed Visual Studio 2015 instead of 2017 and I am further along now, but I am having issues with find the boost libraries.
Boost include path: C:/local/boost_1_64_0 Could not find the following Boost libraries: boost_system boost_filesystem boost_locale boost_program_options boost_thread boost_date_time
The libraries it is looking for seem to here
I have set these environment variables.
but cmake is not able to find them.
Sorry, I am not experienced with compiling.
Thanks15 May 2018 at 12 h 25 min #11048
- National Autonomus University of Mexico
It seems that your boost libraries are not compatible for Visual Studio 2015. You can download a precompiled Boost version for msvc 2015 here taking in account that boost_1_67_0-msvc-14.0-64.exe is a version for msvc 2015 and boost_1_67_0-msvc-14.1-64.exe is for msvc 2017. Take a look at this Wikipedia link for more info.
Hope it helps. Sorry for my bad english by the way.
Cheers, Cesar.15 May 2018 at 16 h 49 min #11054
I will give that a try, thanks.21 May 2018 at 2 h 56 min #11069
Boost is working for cmake now. I just ran a Visual Studio build, but a few projects failed.
126>------ Build started: Project: ALL_BUILD, Configuration: Debug x64 ------ 126> Building Custom Rule C:/Users/Matt/Desktop/sofa/v17.12/src/CMakeLists.txt 126> CMake does not need to re-run because C:/Users/Matt/Desktop/sofa/v17.12/build/CMakeFiles/generate.stamp is up-to-date. 127>------ Skipped Build: Project: PACKAGE, Configuration: Debug x64 ------ 127>Project not selected to build for this solution configuration 128>------ Skipped Build: Project: INSTALL, Configuration: Debug x64 ------ 128>Project not selected to build for this solution configuration ========== Build: 119 succeeded, 6 failed, 0 up-to-date, 3 skipped ==========
The Error list is empty though, so I am not sure how to track down what failed.23 May 2018 at 9 h 02 min #11074
I can see the 3 skipped in your log. But could you identify which projects are failing.
And post the log.
thanks.24 May 2018 at 4 h 16 min #11096
I am not sure how to track down which projects failed or were skipped. The error list view is not giving me any information. I searched through the log text but didn’t see anything obvious. Sorry, I am a Visual Studio newb.24 May 2018 at 8 h 54 min #11097
- SOFA Consortium
no worries @mslib
To help you understand, could you still paste the entire log text?25 May 2018 at 7 h 44 min #1110429 May 2018 at 10 h 04 min #11134
- SOFA Consortium
Are you trying to build SOFA on Windows RT (tablet)?
If no, I think you installed the wrong Qt version. Open your Qt MaintenanceTool and install the libs for “MSVC2015 x64” instead of “WinRT MSVC2015 x64” 😉
Guillaume.31 May 2018 at 7 h 05 min #11150
Not using a tablet so I will look into that. Thanks
You must be logged in to reply to this topic.