[osg-users] freetype build support on Windows

Stuart Mentzer osgforum at tevs.eu
Thu Jun 2 04:55:51 PDT 2016


robertosfield wrote:
> Could you please try a build with the latest that I've checked in and
> see what happens.


Trying with Visual C++ 2015...

I've been enabling PNG support in my freetype lib build (-DWITH_PNG=ON) and this causes unresolved png symbols when linking osgdb_freetype.dll since I'm enabling PNG support :

Code:
[ 94%] Linking CXX shared module osgdb_freetype.dll
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_create_read_struct referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_longjmp_fn referenced in function Load_SBit_Png
...
osgdb_freetype.dll : fatal error LNK1120: 23 unresolved externals



This is why I made that PNG change in my submission code. I don't know if we want/need to support PNG in freetype for OSG purposes but for now I'll try again with it disabled and let you know what happens.

BTW I also see a lot of base class initialization warnings:


Code:
C:\Projects\OSG\OpenSceneGraph\include\osg/OperationThread(80): warning C4589: Constructor of abstract class 'osg::Operation' ignores initializer for virtual base class 'osg::Referenced'
C:\Projects\OSG\OpenSceneGraph\include\osg/OperationThread(80): note: virtual base classes are only initialized by the most-derived type
C:\Projects\OSG\OpenSceneGraph\include\osg/OperationThread(84): warning C4589: Constructor of abstract class 'osg::Operation' ignores initializer for virtual base class 'osg::Referenced'
C:\Projects\OSG\OpenSceneGraph\include\osg/OperationThread(84): note: virtual base classes are only initialized by the most-derived type



There were other warnings that may be meaningful when I built 3.4.0. If it would be helpful to work towards reducing them I'm willing to give it some time.

Stuart

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








More information about the osg-users mailing list