Home › Forum › SOFA › Getting Started › Windows compile error – MSBuild.exe (sofa 17.12)
Tagged: 64_bits, compile, SOFA_1712, Windows_10
- This topic has 12 replies, 5 voices, and was last updated 6 years, 5 months ago by mslib.
-
AuthorPosts
-
19 April 2018 at 17:08 #10792mslibBlocked
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?
Thanks
21 April 2018 at 19:16 #10812mslibBlockedI 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:06 #11026GuillaumeKeymasterHi,
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 07:38 #11031mslibBlockedI 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
C:\local\boost_1_64_0\lib64-msvc-14.1\boost_system-vc141-mt-1_64
etc..
I have set these environment variables.
BOOST_LIBRARYDIR
BOOST_ROOT
but cmake is not able to find them.Sorry, I am not experienced with compiling.
Thanks
15 May 2018 at 12:25 #11048cvelascoBlockedHi mslib,
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:49 #11054mslibBlockedI will give that a try, thanks.
21 May 2018 at 02:56 #11069mslibBlockedBoost 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 09:02 #11074epernodBlockedHi,
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 04:16 #11096mslibBlockedI 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 08:54 #1109725 May 2018 at 07:44 #1110429 May 2018 at 10:04 #11134GuillaumeKeymasterHi,
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 07:05 #11150mslibBlockedNot using a tablet so I will look into that. Thanks
-
AuthorPosts
- You must be logged in to reply to this topic.