[osg-users] [build] "INSTALL.vcxproj" -- FAILED

185 views
Skip to first unread message

Eran Cohen

unread,
Dec 18, 2017, 5:33:57 AM12/18/17
to osg-...@lists.openscenegraph.org
Hi,

I succeeded in building the OpenScenegraph solution on VS2017 64-bit with the small 3rdParty dependencies, but when I try to build the INSTALL project, it fails with this message:


>
> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: The command "setlocal
> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake
> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErrorLevel
> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /b %1
> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDone
> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: :VCEnd" exited with code 1.
> 1>Done building project "INSTALL.vcxproj" -- FAILED.
>


I am using OpenSceneGraph 3.4.1 source files and CMake 3.9.6, but this has happened with CMake 3.10.1 as well.

Thank you!

Cheers,
Eran

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72590#72590





_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Eran Cohen

unread,
Dec 18, 2017, 12:35:21 PM12/18/17
to osg-...@lists.openscenegraph.org
For anyone interested, the build failed because of the place that the Cmake install script looked for the .pdb files of the examples. Cmake looked for them in build/examples/example_name, but all the examples built them to build/bin.
I manually changed the build location for the .pdb file for all of the examples projects to the macro:
Code:
$(ProjectDir)$(AssemblyName)d.pdb

and it fixed the problem.

Cheers,
Eran[/quote]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72600#72600

Robert Osfield

unread,
Dec 19, 2017, 2:44:45 AM12/19/17
to OpenSceneGraph Users
HI Eran,

Could you post the full modified file or create a PR via github's
openscenegraph repository.

Thanks,
Robert.

Eran Cohen

unread,
Dec 19, 2017, 11:07:35 AM12/19/17
to osg-...@lists.openscenegraph.org
Hi Robert,

I have no Cmake knowledge, so I didn't change the Cmake script, but rather manually changed the project configurations for all of the examples in visual studio. Right click on the project, select properties. Go to Linker -> Debugging and change the Generate Program Database File to $(ProjectDir)$(AssemblyName)d.pdb

The .vcxproj of the osganalysis example now looks like this:


>
> < Link >
>
> < AdditionalDependencies >..\..\lib\osgViewerd.lib;..\..\lib\osgTextd.lib;opengl32.lib;..\..\lib\osgGAd.lib;..\..\lib\osgDBd.lib;C:\Users\ceran\Desktop\OpenSceneGraph-3.4.1\3rdParty\x64\lib\zlibd.lib;..\..\lib\osgUtild.lib;..\..\lib\osgd.lib;..\..\lib\OpenThreadsd.lib;opengl32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;comdlg32.lib;advapi32.lib< / AdditionalDependencies >
> < AdditionalLibraryDirectories >%(AdditionalLibraryDirectories)< / AdditionalLibraryDirectories >
> < AdditionalOptions >%(AdditionalOptions) /machine:x64< / AdditionalOptions >
> < GenerateDebugInformation >true< / GenerateDebugInformation >
> < IgnoreSpecificDefaultLibraries >%(IgnoreSpecificDefaultLibraries)< / IgnoreSpecificDefaultLibraries >
> < ImportLibrary >C:/Users/ceran/Desktop/OpenSceneGraph-3.4.1/OpenSceneGraph/build/lib/osganalysisd.lib< / ImportLibrary >
> < ProgramDataBaseFile >(ProjectDir)$(AssemblyName)d.pdb< / ProgramDataBaseFile >
> < SubSystem >Console< / SubSystem >
> < Version >
> < / Version >
> < / Link >
>


The line in bold is the line that was changed.

Cheers,
Eran

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72608#72608

Robert Osfield

unread,
Dec 19, 2017, 3:52:10 PM12/19/17
to OpenSceneGraph Users
HI Eran et. al,

Thanks for the info. I don't have Windows expertise so will defer to
members of the community with CMake/Windows expertise to look at this.

Robert.
Reply all
Reply to author
Forward
0 new messages