Hi,

I'm having issues with loading png. It just says: "Warning: Could not find 
plugin to read objects from file "GUI/canvas.png".

The same line replaced with .jpg works fine. I built OSG 3.2 from source some 
time ago (using some tutorial, and CMake and such), and I recall that I tried 
to enable both jpg and png. Somehow png doesn't work.

Now the real problem is: I have absolutely no clue to how this whole build 
system and plugin system works, and I can't seem to find decent information on 
it... only this: 
http://trac.openscenegraph.org/projects/osg//wiki/Support/UserGuides/Plugins

also: when I try to load a non-existing file as an image, I get the exact same 
error. There is no way for a 'noob' like me (at least a noob in building 
systems) to understand or find out what the problem is. It looks like there is 
a libpng13d.lib in the lib dir, and I found a osgdb_png.dll and osgdb_png.dll 
somewhere that I copied to my projects working directory, but that doesn't seem 
to be enough...

Honestly, I'm desperately confused. I have to admit that I just don't know that 
much about cmake, libraries and dll's etc. just know the basics, but there's a 
huge information gap between some very general information that you can find on 
cmake and osg plugins, and how the actual build system works in reality. There 
also doesn't seem info on how you can track down errors like plugins that are 
not loading. I also looked on the forums and there are some general tips like: 
you have to rebuild the png library... but then I'm like... ok ... how??? is 
that part of the osg source? I have no clue how to do this :(

I know that with some random hints from users I may be able to fix this one 
problem this time, but then again I still wouldn't know what happened or how to 
fix the next problem with plugins.

Isn't there more information on this? Or can someone explain it here how it all 
works?

Like:

-What are the steps that are involved in building the libraries, and loading 
them as plugins?
-In each of these steps what files are supposed to be created and how can you 
check if that happened etc.?
-how can you get more error information from the failing the loading of the 
plugin?

I would be very very grateful for any information!

Thank you!

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





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

Reply via email to