Page 1 of 1

Problems compiling 0.7.1b

PostPosted: 02 Jun 2011, 00:33
by Gallaecio
Hi, I’m trying to compile 0.7.1b. I’ve just installed the recommended Irrlicht version from SVN. Yet, when trying to compile SuperTuxKart, I get a problem with Irrlicht. config.log is here. Did I compiled Irrlicht wrong? Any idea?

Re: Problems compiling 0.7.1b

PostPosted: 02 Jun 2011, 01:05
by Auria
Hmm the improtant bit is

{l Code}: {l Select All Code}
//usr/lib/libIrrlicht.a(CImageLoaderJPG.o): In function `irr::video::CImageLoaderJPG::loadImage(irr::io::IReadFile*) const':
(.text+0x1ba): undefined reference to `jpeg_std_error'
//usr/lib/libIrrlicht.a(CImageLoaderJPG.o): In function `irr::video::CImageLoaderJPG::loadImage(irr::io::IReadFile*) const':
(.text+0x205): undefined reference to `jpeg_CreateDecompress'
...
(.text+0x976): undefined reference to `inflateEnd'
//usr/lib/libIrrlicht.a(png.o): In function `png_reset_crc':
(.text+0x1ca): undefined reference to `crc32'
//usr/lib/libIrrlicht.a(png.o): In function `png_calculate_crc':
(.text+0x22d): undefined reference to `crc32'
//usr/lib/libIrrlicht.a(png.o): In function `png_reset_zstream':
...


You need to manually add libpng and libjpg like described at the bottom here : http://supertuxkart.sourceforge.net/Bui ... leshooting

Re: Problems compiling 0.7.1b

PostPosted: 02 Jun 2011, 06:52
by Gallaecio
It solved problems for PNG and JPEG. But BZIP2 problems were still there. I found out here reason is -lbz2 has to be in LIBS, not LDFLAGS. That fixed the BZIP2 issues. Maybe you want to update the page about that.

Thanks a lot!

Re: Problems compiling 0.7.1b

PostPosted: 02 Jun 2011, 07:19
by Gallaecio
Hmm... Not it passes ./configure step, yet there seems to be additional issues later, once compilation finishes and it starts with docs and data. Output from that point on here[1]. What am I missing?

----
[1] Entrando no directorio → Entering directory | Non hai nada que facer para `all' → Nothing to do for 'all' | Saíndo do directorio → Leaving directory | Non hai tal ficheiro ou directorio → There is not such file or directory.

Re: Problems compiling 0.7.1b

PostPosted: 02 Jun 2011, 18:24
by Gallaecio
Ok, that last problem was because of some changes to the code I had copied from Arch Linux to make the game get installed in /usr/bin/supertuxkart & /usr/share/supertuxkart. Is there a way to do this other than --prefix and --datadir in configure? (those two don’t actually work, sadly).

Re: Problems compiling 0.7.1b

PostPosted: 02 Jun 2011, 23:03
by hiker
Gallaecio {l Wrote}:Ok, that last problem was because of some changes to the code I had copied from Arch Linux to make the game get installed in /usr/bin/supertuxkart & /usr/share/supertuxkart. Is there a way to do this other than --prefix and --datadir in configure? (those two don’t actually work, sadly).

I regularly test with --prefix, and so far it works. I'll try again in case that there was a bug introduced in one of the latest commits, and will update this thread if there should be an issue.

Cheers,
Joerg

Re: Problems compiling 0.7.1b

PostPosted: 03 Jun 2011, 00:08
by hiker
Hi,
{l Code}: {l Select All Code}
./configure --with-irrlicht=... --prefix=/joerg; make; make install

worked fine for me.

Cheers,
Joerg

Re: Problems compiling 0.7.1b

PostPosted: 03 Jun 2011, 14:33
by xapantu
It seems that your directory "/home/user/packaging/master/buildroot/_chroots/master-x32/home/user/games/" doesn't exist, try:
{l Code}: {l Select All Code}
mkdir -p /home/user/packaging/master/buildroot/_chroots/master-x32/home/user/games/

Then,it should work.

Re: Problems compiling 0.7.1b

PostPosted: 03 Jun 2011, 22:00
by Gallaecio
hiker {l Wrote}:Hi,
{l Code}: {l Select All Code}
./configure --with-irrlicht=... --prefix=/joerg; make; make install

worked fine for me.


That would install executable to “/joerg/games/supertuxkart” and data to “/joerg/share/games/supertuxkart”, I want to replace /games/ with /bin/ in the first, and remove it in the second. I don’t think that’s possible currently.

Re: Problems compiling 0.7.1b

PostPosted: 03 Jun 2011, 22:02
by Gallaecio
xapantu {l Wrote}:It seems that your directory "/home/user/packaging/master/buildroot/_chroots/master-x32/home/user/games/" doesn't exist, try:
{l Code}: {l Select All Code}
mkdir -p /home/user/packaging/master/buildroot/_chroots/master-x32/home/user/games/

Then,it should work.


Thanks, but it does exists. The problem is a hack to try to achieve the directory distribution I’ve mentioned in my previous post.

Re: Problems compiling 0.7.1b

PostPosted: 04 Jun 2011, 01:13
by Auria
Hmm I'm not sure we currently have a way to install to prefix/games. Joerg is the autotools "expert" here so I'll let him answer; but I guess you could file a feature request on Trac

Re: Problems compiling 0.7.1b

PostPosted: 04 Jun 2011, 15:39
by hiker
Gallaecio {l Wrote}:That would install executable to “/joerg/games/supertuxkart” and data to “/joerg/share/games/supertuxkart”, I want to replace /games/ with /bin/ in the first, and remove it in the second. I don’t think that’s possible currently.

That's probably correct.

The data directories can be moved anywhere, and you can either use the SUPERTUXKART_DATADIR environment variable to point to the right place, or #define SUPERTUXKART_DATADIR at compile (this is atm defined in the Makefile, so you would have to overwrite this).

If this isn't good enough, please open a trac ticket with exactly the options you need to install it the way you want.

Cheers,
Joerg