Hi Bram,

First off, I feel your pain.

Is "osgdb_png.dll" in your "osgPlugins-XXX" subfolder? If so, then the DLL
might be dynamically linking to the libpng library, instead of statically
linking. If this is the case, then you will need to place the
"libpng13.dll" file in your application folder (next to your exe).

When dealing with DLL issues like this, I find the Dependency Walker (
http://www.dependencywalker.com/) application invaluable. Opening an
exe/dll file in the application will list all its DLL dependencies and let
you know which ones are missing or failed to load.

Regarding the error message, I agree that they could be a little more
clear. The error message does not distinguish between failing to find the
DLL vs failing to load the DLL.

Cheers,
Farshid


On Wed, Jul 16, 2014 at 11:58 AM, Bram Vaessen <[email protected]>
wrote:

> 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
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to