setting up irrlicht 0.8 in linux

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.
Post Reply
the-wolf
Posts: 6
Joined: Thu Feb 24, 2005 8:22 pm
Location: germany

setting up irrlicht 0.8 in linux

Post by the-wolf »

hey,
i'm new to irrlicht, but i already like it :D
there's just one thing that keeps me busy, i use gentoo and it doesn't have a package prepared for 0.8.
under windows everything works fine, but when i even compile the samples in linux, i get the following error:

Code: Select all

JPEG parameter struct mismatch: library thinks size is 464, caller expects 428
i have even recompiled the engine from scratch an copied the libs to /usr/lib, but i get this error, too.
Sid
Posts: 7
Joined: Sun Feb 13, 2005 1:07 pm
Location: Germany

Post by Sid »

Hi,
i had the same problem a few minutes ago ;)

I had just to copy the irrlicht libjpeg.a to some folders (/usr/local/lib), and it worked. Its because of a wrong version of libjpeg.

Sid
the-wolf
Posts: 6
Joined: Thu Feb 24, 2005 8:22 pm
Location: germany

Post by the-wolf »

i did that, but it doesnt work.
how long do you think does it take for the new gentoo-ebuilt to be updated?
Sid
Posts: 7
Joined: Sun Feb 13, 2005 1:07 pm
Location: Germany

Post by Sid »

I'm a debian user, no gentoo, but i dont think it will be updated, because it doesnt need to be updated, its not a bug in libjpeg, just different versions in the irrlicht-libjpeg header and the libjpeg installed on your system. Try to replace _all_ libjpegs on your system with the irrlicht libjpeg. I think this is what i did, but i'm not sure. Or try to search for "JPEG parameter struct mismatch:".

Sid
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

I use gentoo and I'm not having any problems. Just open a shell in your source folder and then "make" the engine; copy the generated libs in the linux folder into /usr/local/lib; finally follow this tut on how to set up anjuta for Irrlicht:
http://irrlicht.sourceforge.net/phpBB2/ ... juta#29339

oh yes, remember to emerge anjuta if you don't have it installed :wink:
ErMurazor
Posts: 37
Joined: Sat Dec 13, 2003 2:00 pm
Location: Sweden
Contact:

Post by ErMurazor »

Just switch the place of the library switch in example Makefile. So it takes Irrlicht jpg library first.

From

Code: Select all

OPTS =  -I"../../include" -I"/usr/X11R6/include" -L"/usr/X11R6/lib" -L"../../lib/Linux" -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lz -ljpeg
To

Code: Select all

OPTS =  -I"../../include" -I"/usr/X11R6/include" -L"../../lib/Linux" -L"/usr/X11R6/lib" -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lz -ljpeg
Works on my Gentoo installation.
Project YAMMO and
Venom for Irrlicht (Python Irrlicht language binding)
http://www.stenhard.net
the-wolf
Posts: 6
Joined: Thu Feb 24, 2005 8:22 pm
Location: germany

Post by the-wolf »

thanx! :D

ErMurazor's method worked!
Post Reply