Hello David,
i have a osgdb_png.dll file which is the result of the compilation and i
can see in the visual studio ouput window that the dll is called anytime
i try to read a png and then unloaded after the operation
The PNG plugin, like some others, has a dependency on an external DLL,
namely libpng13.dll in this case. Can you check if you have this in your
path? You can find it in the 3rdparty/bin directory. Put it in your
OSG/bin directory if you don't already have it. (or somewhere else where
you know your app will find it before any other DLL of the same name)
Additionally, you can try to set OSG_NOTIFY_LEVEL to DEBUG to see if
there are other problems. If, for example, the debug output shows that
the osgdb_png.dll plugin is loaded, then it finds your PNG file and
tries to open it and fails, it's most probably because either it can't
find the libpng13.dll, or because it's finding the wrong one (as
happened to me lately). Make sure in that case that the OSG bin
directory is early in your PATH or in the search path for DLLs, before
any other directory that may contain another copy of libpng13.dll.
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org