Problems compiling 0.7.1b

Problems compiling 0.7.1b

Postby Gallaecio » 02 Jun 2011, 00:33

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?
Gallaecio
 
Posts: 63
Joined: 14 Jan 2010, 20:23

Re: Problems compiling 0.7.1b

Postby Auria » 02 Jun 2011, 01:05

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
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Problems compiling 0.7.1b

Postby Gallaecio » 02 Jun 2011, 06:52

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!
Gallaecio
 
Posts: 63
Joined: 14 Jan 2010, 20:23

Re: Problems compiling 0.7.1b

Postby Gallaecio » 02 Jun 2011, 07:19

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.
Gallaecio
 
Posts: 63
Joined: 14 Jan 2010, 20:23

Re: Problems compiling 0.7.1b

Postby Gallaecio » 02 Jun 2011, 18:24

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).
Gallaecio
 
Posts: 63
Joined: 14 Jan 2010, 20:23

Re: Problems compiling 0.7.1b

Postby hiker » 02 Jun 2011, 23:03

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
hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Re: Problems compiling 0.7.1b

Postby hiker » 03 Jun 2011, 00:08

Hi,
{l Code}: {l Select All Code}
./configure --with-irrlicht=... --prefix=/joerg; make; make install

worked fine for me.

Cheers,
Joerg
hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Re: Problems compiling 0.7.1b

Postby xapantu » 03 Jun 2011, 14:33

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.
xapantu
 
Posts: 283
Joined: 07 Dec 2009, 17:30

Re: Problems compiling 0.7.1b

Postby Gallaecio » 03 Jun 2011, 22:00

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.
Gallaecio
 
Posts: 63
Joined: 14 Jan 2010, 20:23

Re: Problems compiling 0.7.1b

Postby Gallaecio » 03 Jun 2011, 22:02

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.
Gallaecio
 
Posts: 63
Joined: 14 Jan 2010, 20:23

Re: Problems compiling 0.7.1b

Postby Auria » 04 Jun 2011, 01:13

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
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Problems compiling 0.7.1b

Postby hiker » 04 Jun 2011, 15:39

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
hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Who is online

Users browsing this forum: No registered users and 1 guest