Irrlicht (svn 3843) JPEG mismatch

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.

Irrlicht (svn 3843) JPEG mismatch

Postby Gallaecio » Mon Jul 25, 2011 3:12 pm

[IrrDriver Temp Logger] Level 3: JPEG FATAL ERROR: JPEG parameter struct mismatch: library thinks size is 656, caller expects 624


After compiling Irrlicht myself with this script[1], and then compiling SuperTuxKart 0.7.2 (which expects Irrlicht SVN 3843), I’m getting that when trying to run STK. Seems like an architecture problem, but Irrlicht seems to detect my arch fine when compiling. Irrlicht is compiled with system JPEG library afaik: (see script link for more information)

bash Code: Select all
  cd source/Irrlicht
  sed -i -e '/^CXXFLAGS/s:-g.*::' \
         -e '/^CXXFLAGS/s:-Wall::' \
         -e '/^CFLAGS/s/:= -O3 -fexpensive-optimizations/+=/' \
         -e '/^CXXINCS/s:-Izlib -Ijpeglib::' \
         -e 's:--no-export-all-symbols --add-stdcall-alias::' \
         -e 's/0-SVN/0/' \
         -e "/^INSTALL_DIR/s:=.*:= ${pkgdir}/usr/lib:" \
         Makefile
 
  make sharedlib
 
  make


Also, just in case, here[2] is the output I get when compiling Irrlicht.

----
[1] http://aur.archlinux.org/packages/irrlicht-svn/PKGBUILD
[2] http://paste.kde.org/101257/
Gallaecio
 
Posts: 4
Joined: Mon Jul 25, 2011 3:02 pm

Re: Irrlicht (svn 3843) JPEG mismatch

Postby Gallaecio » Mon Jul 25, 2011 3:25 pm

Reading this[1], I suspect sed commands are not enough for Irrlicht to get compiled against system libraries, and it might be compiling against its own JPEG header files. Is that right? Is there any “easy way” to get Irrlicht to use system libraries instead of its own versions?

----
[1] http://groups.google.com/group/g3d-users/browse_thread/thread/ffcb815b27a15349?pli=1
Gallaecio
 
Posts: 4
Joined: Mon Jul 25, 2011 3:02 pm

Re: Irrlicht (svn 3843) JPEG mismatch

Postby randomMesh » Mon Jul 25, 2011 3:35 pm

Gallaecio wrote:Is there any “easy way” to get Irrlicht to use system libraries instead of its own versions?

Yes, have a look at IrrCompileConfig.h.
Define _IRR_USE_NON_SYSTEM_JPEG_LIB_ to let irrlicht use the jpeglib which comes with irrlicht.

This is from SVN trunk, so i guess Irrlicht's using system libs as a default now.
"Whoops..."
User avatar
randomMesh
 
Posts: 1181
Joined: Fri Dec 29, 2006 12:04 am

Re: Irrlicht (svn 3843) JPEG mismatch

Postby CuteAlien » Mon Jul 25, 2011 3:44 pm

randomMesh wrote:Yes, have a look at IrrCompileConfig.h.
Define _IRR_USE_NON_SYSTEM_JPEG_LIB_ to let irrlicht use the jpeglib which comes with irrlicht.

This is from SVN trunk, so i guess Irrlicht's using system libs as a default now.


_IRR_USE_NON_SYSTEM_JPEG_LIB_ is set, so using the libs coming with Irrlicht is default.
IRC: #irrlicht on irc.libera.chat
Patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 9160
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: Irrlicht (svn 3843) JPEG mismatch

Postby Gallaecio » Mon Jul 25, 2011 8:50 pm

Now my sed command is only:
bash Code: Select all
  sed -i -e 's/0-SVN/0/' \
         -e "/^INSTALL_DIR/s:=.*:= $pkgdir/usr/lib:" \
         Makefile


And I apply a patch which does this for every lib that is defined as NON_SYSTEM by default (jpeg, png, zlib, bzip2):
cpp Code: Select all
// #define _IRR_USE_NON_SYSTEM_JPEG_LIB_
// #ifdef NO_IRR_USE_NON_SYSTEM_JPEG_LIB_
#undef _IRR_USE_NON_SYSTEM_JPEG_LIB_
// #endif


Recompiled Irrlicht with that config, recompiled STK against it, and the problem persists. Any idea? Did I commented the configs correctly?
Gallaecio
 
Posts: 4
Joined: Mon Jul 25, 2011 3:02 pm

Re: Irrlicht (svn 3843) JPEG mismatch

Postby hendu » Tue Jul 26, 2011 5:56 am

The Makefile needs some tweaking too. Take a look at the Debian patches:

http://patch-tracker.debian.org/package ... .2+dfsg1-1
hendu
 
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Irrlicht (svn 3843) JPEG mismatch

Postby Gallaecio » Tue Jul 26, 2011 9:35 pm

Thanks a lot!!! :D With paches based on Debian’s and ArchLinux’s I finally managed to get it all working. Just in case it is useful for future readers, this is the build script for Chakra.
Gallaecio
 
Posts: 4
Joined: Mon Jul 25, 2011 3:02 pm


Return to Beginners Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron