[osg-users] [ANN] 3rdParty package precompiled with Visual Studio 2017 released

Björn Blissing bjorn.blissing at vti.se
Wed Aug 30 07:10:23 PDT 2017


Hi Robert,

Good to know and I will probably prune the GLUT library from my supported libraries in time.

In the mean time, I have managed to work around the issue. There was a change to the glut.h file in the official github repo last year that introduced some preprocessor variables which changes the ways the library gets linked. Now you need to specify that you are linking with a static library in the parent project. Previously this was handled silently. Visual Studio users now need to set their runtime library option to /MT instead of /MD to be able to link with the static version of the library.

My quick workaround was to make the shared library the default option. And if someone tries to build the static library they will get a small warning of what to change in their project to be able to link correctly.

Regards
Björn

From: osg-users [mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Robert Osfield
Sent: Wednesday, August 30, 2017 10:10 AM
To: OpenSceneGraph Users <osg-users at lists.openscenegraph.org>
Subject: Re: [osg-users] [ANN] 3rdParty package precompiled with Visual Studio 2017 released

On 30 August 2017 at 08:19, Björn Blissing <bjorn.blissing at vti.se<mailto:bjorn.blissing at vti.se>> wrote:
Hi Pete,

You can try my CMake scripts:
https://github.com/bjornblissing/osg-3rdparty-cmake

There seems to be some problems with GLUT library, at least on my machine. But except from that I think that all of the latest third party libraries are working correctly with Visual Studio 2017 update 3.

I don't know if it helps but the OSG master no longer uses GLUT as I've removed the GLUT example.

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170830/588d7689/attachment.htm>


More information about the osg-users mailing list