Page 1 of 2

Trouble building OpenSim 4.0 from source

Posted: Mon Oct 23, 2017 4:58 am
by kenechukwu
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

Re: Trouble building OpenSim 4.0 from source

Posted: Mon Oct 23, 2017 9:45 am
by tkuchida
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.

Re: Trouble building OpenSim 4.0 from source

Posted: Mon Oct 23, 2017 11:32 am
by chrisdembia
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.

Re: Trouble building OpenSim 4.0 from source

Posted: Mon Oct 23, 2017 12:29 pm
by hkimpara
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

Re: Trouble building OpenSim 4.0 from source

Posted: Mon Oct 23, 2017 12:32 pm
by kenechukwu
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.

Re: Trouble building OpenSim 4.0 from source

Posted: Mon Oct 23, 2017 1:09 pm
by chrisdembia
Ah thanks for the additional information. Superbuild requires that you have installed git.

Re: Trouble building OpenSim 4.0 from source

Posted: Tue Oct 24, 2017 11:45 am
by chrisdembia
Is this resolved?

Re: Trouble building OpenSim 4.0 from source

Posted: Tue Oct 24, 2017 11:55 am
by hkimpara
No, Kenechukwu has still trouble in install. He may wish to ask team members to solve his case during office hour.
Thank you, Hide.

Re: Trouble building OpenSim 4.0 from source

Posted: Tue Oct 24, 2017 12:18 pm
by kenechukwu
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

Re: Trouble building OpenSim 4.0 from source

Posted: Tue Oct 24, 2017 3:00 pm
by ongcf
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.