ZacharyH wrote:
> 
> You mentioned that "you need the libpng development libraries installed on 
> your system".  The closest thing I have to that is ReaderWriterPNG.cpp under 
> OpenSceneGraph-3.0.1/src/osgPlugins/png.  Is that it?  If not, where would I 
> download what I need for my version of OGS?  Is it documented anywhere that 
> you have to do this if you want to do PNG?
> 


ReaderWriterPNG.cpp is the source code for the osgdb_png.so plugin.  Many of 
the OSG plugins rely on a 3rd-party library to do their work (the PNG plugin 
need libpng, the JPEG plugin needs libjpeg, etc.)

The 3rd party libraries are listed here:

http://www.openscenegraph.org/projects/osg/wiki/Downloads/Dependencies

Since you're on a Linux machine, your Linux distribution should have packages 
for most of these.  Be aware, though that there are usually two packages for 
each library.  One just lets you run programs that use the library, the other 
lets you develop programs to use the library.  You need the development one.  
Usually, these packages have a -devel or -dev suffix.



ZacharyH wrote:
> 
> Doing a search in Synaptic Package Manager it shows packages such as 
> linpng12-dev and linpng++-dev but I have no idea if those are compatible with 
> OSG.
> 


That's the development package for libpng.  That's the one you want.  Since 
you're also developing for Qt, you want to make sure you have the -dev version 
of the Qt packages installed, too.

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





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

Reply via email to