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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to