Problems compiling STK from trunk

Problems compiling STK from trunk

Postby claymore » 11 Jun 2012, 16:03

At first I tried with irrlicht-devel from the repo (opensuse), then I realised this was only r3629. I tried again with trunk irrlicht and got the same error:

http://pastebin.com/7arn6qCY

Any ideas?
claymore
 
Posts: 17
Joined: 22 Jan 2010, 17:16

Re: Problems compiling STK from trunk

Postby hiker » 11 Jun 2012, 20:21

claymore {l Wrote}:At first I tried with irrlicht-devel from the repo (opensuse), then I realised this was only r3629. I tried again with trunk irrlicht and got the same error:

http://pastebin.com/7arn6qCY

Any ideas?

That looks like you are still using an old version: pack_textureBlendFunc is the new name, in older irrlicht versions it was called pack_texureBlendFunc. I admit I haven't checked the really latest irrlicht svn version atm (am traveling with not much time for stk atm), but I would first check if STK picks up an old (perhaps system-wide installed) version of irrlicht.

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

Re: Problems compiling STK from trunk

Postby claymore » 12 Jun 2012, 12:29

Thanks for the reply. I initially tried cmake .. without specifying -DIRRLICHT_DIR=/opt/irrlicht, but I got the same error. How will I know if it picks up a system-wide version of irrlicht?
claymore
 
Posts: 17
Joined: 22 Jan 2010, 17:16

Re: Problems compiling STK from trunk

Postby claymore » 12 Jun 2012, 21:39

I got it sorted out on IRC, thanks to Wardje. I used cmake .. -DIRRLICHT_DIR=/full/path/to/irrlicht -DIRRLICHT_INCLUDE_DIR=/full/path/to/irrlicht/include , Wardje updated the build instructions. So I've got it built now, yay! :)

But then when I try to run it, it throws up "Could not load sprite bank because the file does not exist: #DefaultFont" and segfaults. Here's a backtrace. Oh well, I'm getting there... slowly but surely.
claymore
 
Posts: 17
Joined: 22 Jan 2010, 17:16

Re: Problems compiling STK from trunk

Postby Auria » 13 Jun 2012, 00:36

Hi,

the "default font" issue is harmless, so you can discard that.

Regarding the crash, this means you built with mismatched irrlicht includes and dynamic libraries. Unfortunately if you have multiple versions installed this can happen. So first thing, if possible, can you make sure you have only one irrlicht? Having more than one is possible but you need to know what you're doing since conflicts are easy to get
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Problems compiling STK from trunk

Postby claymore » 13 Jun 2012, 10:12

I still have the Irrlicht version needed by stk 0.7.3 installed. Do I need to uninstall that? If not, how do I deal with multiple libraries? Is there a way to tell stk which library to use?
claymore
 
Posts: 17
Joined: 22 Jan 2010, 17:16

Re: Problems compiling STK from trunk

Postby claymore » 13 Jun 2012, 21:55

Ok, I've made some progress. Now I have a different problem: http://pastebin.com/JSixXMUQ

I specified IRRLICHT_XF86VM_LIBRARY = /usr/lib64/libXxf86vm.so.1 in cmake's gui, and many variations of this (e.g. /usr/lib64/libXxf86vm.so.1.0.0, no idea what the significance of the numbers is), all to no avail.

EDIT:

The guys in #irrlicht went to the trouble of finding http://sourceforge.net/apps/trac/supert ... ticket/584 , this was supposedly fixed months ago? And I can't find "target_link_libraries(supertuxkart pthread Xxf86vm)" anywhere in CMakeLists.txt .
claymore
 
Posts: 17
Joined: 22 Jan 2010, 17:16

Re: Problems compiling STK from trunk

Postby Auria » 14 Jun 2012, 03:20

could you build with verbose enabled?

make VERBOSE=1

then post the output.
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Problems compiling STK from trunk

Postby claymore » 14 Jun 2012, 08:22

claymore
 
Posts: 17
Joined: 22 Jan 2010, 17:16

Re: Problems compiling STK from trunk

Postby Auria » 15 Jun 2012, 00:45

ok I'm sorry that you are experiencing so many issues. Now could you destroy your build dir, and build again, and this time also post the output of the "cmake .." command?
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Problems compiling STK from trunk

Postby claymore » 15 Jun 2012, 19:24

I deleted the build directory and rebuilt, now it works! I did the cmake command from the terminal this time instead of from the gui, maybe that has something to do with it. Anyway, thanks for all your help!
claymore
 
Posts: 17
Joined: 22 Jan 2010, 17:16

Who is online

Users browsing this forum: No registered users and 1 guest