OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Building with Visual Studio 2019


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build]
View previous topic :: View next topic  
Author Message
icf80
User


Joined: 12 Apr 2019
Posts: 28

PostPosted: Fri May 10, 2019 11:19 am    Post subject:
Building with Visual Studio 2019
Reply with quote

Hi,

I am trying to build OSG 3.6.3.
CMake version 3.14.3

The building works fine, just the INSTALL project gives that error.

1>EXEC : CMake error : Error processing file: cmake_install.cmake
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5): error MSB3073: The command "setlocal
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5): error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.cmake
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5): error MSB3073: :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5): error MSB3073: :cmErrorLevel
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5): error MSB3073: exit /b %1
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5): error MSB3073: :cmDone
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5): error MSB3073: :VCEnd" exited with code 1.
1>Done building project "INSTALL.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 272 up-to-date, 0 skipped ==========


Thank you!

Cheers,
Catalin


Last edited by icf80 on Fri May 10, 2019 2:07 pm; edited 2 times in total
Back to top
View user's profile Send private message
icf80
User


Joined: 12 Apr 2019
Posts: 28

PostPosted: Fri May 10, 2019 1:28 pm    Post subject:
Reply with quote

c:\OpenSceneGraph-3.6.3\3rdParty
c:\OpenSceneGraph-3.6.3\build\ <-- this is where the build happens
c:\OpenSceneGraph-3.6.3\OpenSceneGraph\ <-- src are clean

CMAKE_INSTALL_PREFIX is set in c:\OpenSceneGraph-3.6.3\build\bin
Back to top
View user's profile Send private message
icf80
User


Joined: 12 Apr 2019
Posts: 28

PostPosted: Fri May 10, 2019 3:18 pm    Post subject:
Reply with quote

Hi,

I found the issue, don't put CMAKE_INSTALL_PREFIX in c:\OpenSceneGraph-3.6.3\build\bin <-- this is already used

I set CMAKE_INSTALL_PREFIX to c:\OpenSceneGraph-3.6.3\OpenSceneGraph\bin\

It works.


Thank you!

Cheers,
Catalin
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Building OSG 3.6.4 in Win64 TDM GNU. Zachary1234 Build system [build] 44 Sat Jul 27, 2019 3:02 am View latest post
No new posts OSG BOF at SIGGRAPH 2019 in Los Angeles John Richardson General 2 Fri Jun 28, 2019 3:39 pm View latest post
No new posts Building with MinGW on Windows 10 Skaldi Build system [build] 4 Sat May 18, 2019 3:47 pm View latest post
No new posts Building with Visual Studio 2019 icf80 Build system [build] 0 Fri May 10, 2019 11:20 am View latest post
No new posts Question about method of building osgQt trexmsuee Build system [build] 1 Thu Apr 11, 2019 2:22 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP