Re: [osg-users] [osgPlugins] DESPERATE!! Tried everything to get JPEGS TO LOAD!

12 views
Skip to first unread message

Gregory Basile

unread,
May 16, 2015, 7:27:46 AM5/16/15
to osg-...@lists.openscenegraph.org
Hello all,

I built osg version 3.3.1 for visual studio 2013 on windows 8.1. I've tried every suggestion on this forum to try to get jpegs to load. I have osgdb_jpeg.dll and osgdb_jpegd.dll in the bin folder, paths are set up correctly, rebuilt multiple times just to be sure. I ran dependancy walker on OSGDB_jpeg.dll and got a few errors relating to microsoft system files, but I do not know what they really mean, or how to fix it. Screen caps attached.

...

Thank you!

Cheers,
Gregory

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




Attachments:
http://forum.openscenegraph.org//files/osgjpegscreencap_127.png


_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Jan Ciger

unread,
May 16, 2015, 7:52:53 AM5/16/15
to osg-...@lists.openscenegraph.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/12/2015 07:58 PM, Gregory Basile wrote:
> Hello all,
>
> I built osg version 3.3.1 for visual studio 2013 on windows 8.1.
> I've tried every suggestion on this forum to try to get jpegs to
> load. I have osgdb_jpeg.dll and osgdb_jpegd.dll in the bin folder,
> paths are set up correctly, rebuilt multiple times just to be sure.
> I ran dependancy walker on OSGDB_jpeg.dll and got a few errors
> relating to microsoft system files, but I do not know what they
> really mean, or how to fix it. Screen caps attached.
>
> ...

There is little we can tell you from that screenshot, because it lacks
information. The error you are getting usually stems either from the
fact that OSG is unable to find the required plugin to load the data
file at runtime or that the plugin didn't load correctly (bad DLL,
bad/missing dependency of that plugin DLL, etc.)

Generally, Dependency walker complaining about dependencies of
Microsoft's DLLs (OpenGL32.dll in this case) is a red herring - those
messages you can ignore.

However, one message stands out in that Dependency walker - "Modules
with different CPU types found".

That means that you are mixing 32bit and 64bit DLLs in one program.
That is not allowed and will not work. Unfortunately Windows is
severely retarded in this regard and will happily load a 32bit DLL
into a 64bit program, only to crash later. E.g. Linux will complain
right away that it didn't find the correct DLL/shared library even if
the one for the wrong architecture is available.

Did you use 32bit dependencies (libjpeg) to with a 64bit version of OSG?

Regards,

J.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iD8DBQFVVy+Ln11XseNj94gRAthTAJoCbKqTmWMNIDwNH85IGXjy9TFiowCgy2/z
GnH/f/95ZY8WJfLxF8Lpmmw=
=eOzU
-----END PGP SIGNATURE-----

Thomas Hogarth

unread,
May 16, 2015, 6:42:45 PM5/16/15
to osg-...@lists.openscenegraph.org
Hi Gregory

First try whacking you notify level to debug_fp

osg::setNotifyLevel(osg::DEBUG_FP);

That will show you where osg is looking for the plugin.

Also unless you changed where osg is looking for plugins you have them in the wrong place. Osg on windows will usually have a osgPlugins-xxx folder in the bin folder with all the plugins in it, that's where it looks for them.

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

Voerman, L.

unread,
May 18, 2015, 3:28:56 AM5/18/15
to OpenSceneGraph Users
Hi Gregory,
the command you show in the screenshot is at least missing the JPG extention, (in my copy of OpenSceneGraph-Data the extention is in caps).
The message you get is not related to jpg or jpg loader - just no file found called clockface.


osgviewer --image E:\osg\OpenSceneGraph-Data\Images\clockface.JPG
Regards, Laurens.
Reply all
Reply to author
Forward
0 new messages