[osg-users] [build] Proper CMAKE settings for ZLIB, bogus "optimized.lib" in link

Todd Carnes toddcarnes at gmail.com
Wed Nov 2 14:17:04 PDT 2016


I just pointed the extra one to zlib's release directory as well and
everything worked out for me... Although, I was building a different
version, it might still work for you as well.

On Nov 2, 2016 2:04 PM, "Andrew Cunningham" <andrewC at mac.com> wrote:

> Hi,
> I am trying to build OSG 3.4.0 on Windows/Visual Studio 2015 using CMake
> to generate the projects.
>
>  Everything works pretty well except the confusing settings for
> ZLIB_LIBRARY, ZLIB_LIBRARY_DEBUG,ZLIB_LIBRARY_RELEASE. Why 3 settings ?
>
> I included paths to Debug and Release builds of ZLib,  in the
> ZLIB_LIBRARY_DEBUG and ZLIB_LIBRARY_RELEASE respectively and left
> ZLIB_LIBRARY blank.
>
> Although the DEBUG build is ok , my RELEASE builds ended up with library
> references to non-existent "optimized.lib" and "debug.lib"  as well as
> duplicating the debug and release versions of the zlib libraries.
>
> For example, this is pasted from the VS linker settings for and OSG
> project.
> ....-
> optimized.lib
> D:\OSG\3rdParty\build\lib\Release\zlib.lib
> debug.lib
> D:\OSG\3rdParty\build\lib\Debug\zlibd.lib
> ....
>
> Andrew
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=69206#69206
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161102/51882061/attachment-0003.htm>


More information about the osg-users mailing list