[osg-users] [build] Building Nvidia Texture Tools plugin (nvtt) under Windows VS2017

Robert Osfield robert.osfield at gmail.com
Fri Dec 8 01:35:32 PST 2017


HI Henrique,

What version of the OSG are your working with?

Robert.

On 7 December 2017 at 23:21, Henrique Bucher <hbucher at gmail.com> wrote:
> 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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


More information about the osg-users mailing list