Page 1 of 1

Simbody 3.0 build errors

Posted: Mon Mar 04, 2013 6:06 pm
by justkoit
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

Re: Simbody 3.0 build errors

Posted: Mon Mar 04, 2013 9:05 pm
by sherm
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

Re: Simbody 3.0 build errors

Posted: Tue Mar 05, 2013 7:23 am
by justkoit
Hi Michael,
Your wild guess was right! When I ran VS as you suggested, it worked perfectly.
Thank you for your help.
Ko