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 Nvidia Texture Tools plugin (nvtt) under Windows VS2017


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


Joined: 07 Dec 2017
Posts: 2

PostPosted: Thu Dec 07, 2017 11:21 pm    Post subject:
Building Nvidia Texture Tools plugin (nvtt) under Windows VS2017
Reply with quote

Hi,

I built OSG with VS2017
I used the pre-compiled dependencies from osgvisual - as suggested in the osg dependencies page.

However I got several linker errors regarding NVTT plugin.
I saw that there were some threads with the same subject but it seems that the windows build has not been solved.
My solution was to edit the file src/osgPlugins/nvtt/CMakeLists.txt
and replace

SET(TARGET_LIBRARIES_VARS NVTT_LIBRARY)

with

SET(TARGET_LIBRARIES_VARS NVTT_LIBRARY NVIMAGE_LIBRARY NVMATH_LIBRARY NVCORE_LIBRARY NVSQUISH_LIBRARY NVTHREAD_LIBRARY NVBC6H_LIBRARY NVBC7_LIBRARY )

Obviously this has to be replaced with the proper guards so I guess

if (MSVC)
SET(TARGET_LIBRARIES_VARS NVTT_LIBRARY NVIMAGE_LIBRARY NVMATH_LIBRARY NVCORE_LIBRARY NVSQUISH_LIBRARY NVTHREAD_LIBRARY NVBC6H_LIBRARY NVBC7_LIBRARY )
else()
SET(TARGET_LIBRARIES_VARS NVTT_LIBRARY)
endif()

I am sure this would be simple enough to update? Or I am goofing in some step so that this is not necessary?

Cheers,

Henrique
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11971

PostPosted: Fri Dec 08, 2017 9:37 am    Post subject:
Building Nvidia Texture Tools plugin (nvtt) under Windows VS2017
Reply with quote

HI Henrique,

What version of the OSG are your working with?

Robert.

On 7 December 2017 at 23:21, Henrique Bucher <> wrote:
Quote:
Hi,

I built OSG with VS2017
I used the pre-compiled dependencies from osgvisual - as suggested in the osg dependencies page.

However I got several linker errors regarding NVTT plugin.
I saw that there were some threads with the same subject but it seems that the windows build has not been solved.
My solution was to edit the file src/osgPlugins/nvtt/CMakeLists.txt
and replace

SET(TARGET_LIBRARIES_VARS NVTT_LIBRARY)

with

SET(TARGET_LIBRARIES_VARS NVTT_LIBRARY NVIMAGE_LIBRARY NVMATH_LIBRARY NVCORE_LIBRARY NVSQUISH_LIBRARY NVTHREAD_LIBRARY NVBC6H_LIBRARY NVBC7_LIBRARY )

Obviously this has to be replaced with the proper guards so I guess

if (MSVC)
SET(TARGET_LIBRARIES_VARS NVTT_LIBRARY NVIMAGE_LIBRARY NVMATH_LIBRARY NVCORE_LIBRARY NVSQUISH_LIBRARY NVTHREAD_LIBRARY NVBC6H_LIBRARY NVBC7_LIBRARY )
else()
SET(TARGET_LIBRARIES_VARS NVTT_LIBRARY)
endif()

I am sure this would be simple enough to update? Or I am goofing in some step so that this is not necessary?

Cheers,

Henrique

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








------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
hbucher
Newbie


Joined: 07 Dec 2017
Posts: 2

PostPosted: Sat Dec 09, 2017 7:57 am    Post subject:
Reply with quote

I am working with OSG 3.5.9 - downloaded the zip file from github.
Henrique
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 Missing OpenThreads PDB when building... guyv Build system [build] 0 Thu Jul 12, 2018 12:39 pm View latest post
No new posts osglight demo problems with Intel gra... eventhorizon5 General 2 Mon Jul 09, 2018 8:52 pm View latest post
No new posts osgOcean - Render to Texture Camera rob_ewbank osgOcean [osgOcean] 3 Wed Jul 04, 2018 11:27 am View latest post
No new posts Build error under Windows? Need feedb... robertosfield General 3 Wed Jun 27, 2018 11:11 am View latest post
No new posts decent font without free type plugin OmegaDoom General 0 Mon Jun 25, 2018 12:12 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