Trouble building OpenSim 4.0 from source

The Question and Answer and Support Forum for the 2017 Fall Virtual Workshop.
User avatar
Kenechukwu Mbanisi
Posts: 51
Joined: Fri Feb 10, 2017 2:50 pm

Trouble building OpenSim 4.0 from source

Post by Kenechukwu Mbanisi » Mon Oct 23, 2017 4:58 am

Hello All,

I am trying to build the OpenSim 4.0 from source to explore the new functionalities at the workshop, but I am having some challenges.

Here's my setup:
1. CMake version: 3.8.0
2. Visual Studio: Version 14, 2015 64bit
3. OS: Windows 10

I am going through the superbuild process here (https://github.com/opensim-org/opensim-core), but my CMake configuration process is failing with the error:

Code: Select all

Error in configuration process, project files may be invalid
Has anyone else experienced this? How can I resolve this?

Thank you.

Kenechukwu

User avatar
Thomas Uchida
Posts: 1793
Joined: Wed May 16, 2012 11:40 am

Re: Trouble building OpenSim 4.0 from source

Post by Thomas Uchida » Mon Oct 23, 2017 9:45 am

There are several possible explanations. Please Google for some ideas. Also be sure that you've clicked "Configure" at least twice and have filled in any textboxes that are highlighted in red.

User avatar
Christopher Dembia
Posts: 506
Joined: Fri Oct 12, 2012 4:09 pm

Re: Trouble building OpenSim 4.0 from source

Post by Christopher Dembia » Mon Oct 23, 2017 11:32 am

Are there any other error messages or information you can provide? CMake should give you a path to a CMakeError.log that might have more information.

User avatar
Hide Kimpara
Posts: 135
Joined: Mon Sep 19, 2016 5:12 am

Re: Trouble building OpenSim 4.0 from source

Post by Hide Kimpara » Mon Oct 23, 2017 12:29 pm

Hello Tom and Chris,

Kene is still working, but my machine looks like to be installed.
Now I set an environmental variables. Do we need to delete path to OpenSim 33?

Thank you
Hide

User avatar
Kenechukwu Mbanisi
Posts: 51
Joined: Fri Feb 10, 2017 2:50 pm

Re: Trouble building OpenSim 4.0 from source

Post by Kenechukwu Mbanisi » Mon Oct 23, 2017 12:32 pm

Hello,

Sorry, here's more information on the error: It says it couldn't find git for clone of BTK, but I am not cloning using git. I downloaded the zip file and unzipped as instructed to the C: drive.

Code: Select all

CMake Error at C:/Program Files/CMake/share/cmake-3.8/Modules/ExternalProject.cmake:1805 (message):
  error: could not find git for clone of BTK
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.8/Modules/ExternalProject.cmake:2560 (_ep_add_download_command)
  CMakeLists.txt:120 (ExternalProject_Add)
  CMakeLists.txt:142 (AddDependency)
I also attached the CMakeOutput.log file. I'm really not able to make sense out of it.
Attachments
CMakeOutput.log
(22.66 KiB) Downloaded 99 times

User avatar
Christopher Dembia
Posts: 506
Joined: Fri Oct 12, 2012 4:09 pm

Re: Trouble building OpenSim 4.0 from source

Post by Christopher Dembia » Mon Oct 23, 2017 1:09 pm

Ah thanks for the additional information. Superbuild requires that you have installed git.

User avatar
Christopher Dembia
Posts: 506
Joined: Fri Oct 12, 2012 4:09 pm

Re: Trouble building OpenSim 4.0 from source

Post by Christopher Dembia » Tue Oct 24, 2017 11:45 am

Is this resolved?

User avatar
Hide Kimpara
Posts: 135
Joined: Mon Sep 19, 2016 5:12 am

Re: Trouble building OpenSim 4.0 from source

Post by Hide Kimpara » Tue Oct 24, 2017 11:55 am

No, Kenechukwu has still trouble in install. He may wish to ask team members to solve his case during office hour.
Thank you, Hide.

User avatar
Kenechukwu Mbanisi
Posts: 51
Joined: Fri Feb 10, 2017 2:50 pm

Re: Trouble building OpenSim 4.0 from source

Post by Kenechukwu Mbanisi » Tue Oct 24, 2017 12:18 pm

Hello Chris,

Thanks for the pointer. With Git installed on my PC, I was able to build the OpenSim dependencies and generate the project files successfully. I also completed the ALL_BUILD process, but the RUN_TESTS_PARALLEL failed. The MATLAB tests are failing.

Here's the error:

Code: Select all

The following tests FAILED:
1>  	 99 - Matlab_TugOfWar_RelWithDebInfo (Failed)
1>  	100 - Matlab_wiringInputsAndOutputsWithTableReporter_RelWithDebInfo (Failed)
1>  	101 - Matlab_RunHopper_answers_RelWithDebInfo (Failed)
1>  	102 - Matlab_RunHopperWithDevice_answers_RelWithDebInfo (Failed)
1>  	103 - Matlab_ConnectorsInputsOutputs_RelWithDebInfo (Failed)
1>  	104 - Matlab_AccessSubcomponents_RelWithDebInfo (Failed)
1>  	105 - Matlab_Simbody_RelWithDebInfo (Failed)
1>  	106 - Matlab_osimTableStruct_RelWithDebInfo (Failed)
1>  	107 - Matlab_testOsimVec3_RelWithDebInfo (Failed)
1>  Errors while running CTest
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: The command "setlocal
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: "C:\Program Files\CMake\bin\ctest.exe" --force-new-ctest-process -C RelWithDebInfo
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErrorLevel
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /b %1
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDone
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :VCEnd" exited with code 8.
I have tried it twice. My MATLAB setup is 2017a.

Any pointers on what to do about this?

Kenechukwu

User avatar
Carmichael Ong
Posts: 401
Joined: Fri Feb 24, 2012 11:50 am

Re: Trouble building OpenSim 4.0 from source

Post by Carmichael Ong » Tue Oct 24, 2017 3:00 pm

Make sure to Build the "INSTALL" target as well, then re-run the test. You should find it under "CMakePredefinedTargets". Let us know if this fixes the problem or not.

POST REPLY