Simbody 3.0 build errors

Simbody is useful for internal coordinate and coarse grained molecule modeling, large scale mechanical models like skeletons, and anything else that can be modeled as bodies interconnected by joints, acted upon by forces, and restricted by constraints.
POST REPLY
User avatar
Ko Sasaki
Posts: 22
Joined: Mon Dec 04, 2006 6:33 am

Simbody 3.0 build errors

Post by Ko Sasaki » Mon Mar 04, 2013 6:06 pm

Hi,
I am trying to build Simbody 3.0 from source codes, following "How to build Simbody 3.0 from source on Windows", since I would like to have OpenSim 3.0 source build.
Everything works fine until INSTALL in the instructions. Some errors I got during INSTALL are (for RelWithDebInfo):

4>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: The command "setlocal
4>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: "C:\Program Files\CMake 2.8\bin\cmake.exe" -DBUILD_TYPE=RelWithDebInfo -P cmake_install.cmake
4>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
4>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :cmEnd
4>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
4>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :cmErrorLevel
4>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: exit /b %1
4>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :cmDone
4>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
4>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :VCEnd" exited with code 1.
4>
4>Build FAILED.

I used CMake 2.8.10.2, Visual Studio 10.
Any suggestions would be greatly appreciated.
Thank you.
Ko

User avatar
Michael Sherman
Posts: 806
Joined: Fri Apr 01, 2005 6:05 pm

Re: Simbody 3.0 build errors

Post by Michael Sherman » Mon Mar 04, 2013 9:05 pm

Hi, Ko.

As a wild guess, I think maybe you don't have write permission into the install directory. You might have to run Visual Studio as administrator in order to build the INSTALL target sucessfully. You can do that by right clicking on the Visual Studio desktop icon, select "Run as Administrator" and then open the Simbody.sln file manually from File->Open.

Regards,
Sherm

User avatar
Ko Sasaki
Posts: 22
Joined: Mon Dec 04, 2006 6:33 am

Re: Simbody 3.0 build errors

Post by Ko Sasaki » Tue Mar 05, 2013 7:23 am

Hi Michael,
Your wild guess was right! When I ran VS as you suggested, it worked perfectly.
Thank you for your help.
Ko

POST REPLY