svn build error, Ubuntu 9.10

svn build error, Ubuntu 9.10

Postby KVL » 05 Sep 2010, 16:25

When compiling the latest svn build I get stuck on this error (first time I build stk from svn):
I tried installing the shared irrlicht lib and without (using --with-irrlicht=), same error.
I've included config.log.

I'm on ubuntu 9.10, gcc 4.4.1, Irrlicht 1.7.1, all build-dependencies installed.

in /usr/ :
checking irrlicht.h usability... no
checking irrlicht.h presence... no
checking for irrlicht.h... no
in /usr/local/ :
checking irrlicht.h usability... yes
checking irrlicht.h presence... yes
checking for irrlicht.h... yes
checking for irrlicht libraries...
configure: error: Can't build test irrLicht program. Check config.log to see the errors


Can somebody help me out on this? Thank you :)
Attachments
config.log
(36.03 KiB) Downloaded 162 times
KVL
 
Posts: 3
Joined: 05 Sep 2010, 16:05

Re: svn build error, Ubuntu 9.10

Postby hiker » 06 Sep 2010, 00:37

Hi,

KVL {l Wrote}:When compiling the latest svn build I get stuck on this error (first time I build stk from svn):
I tried installing the shared irrlicht lib and without (using --with-irrlicht=), same error.
I've included config.log.


well, in the config file you have attached the shared irrlicht library can not be found, and therefore the test program can't run:
{l Code}: {l Select All Code}
./conftest: error while loading shared libraries: libIrrlicht.so.1.7: cannot open shared object file: No such file or directory

It looks like it's probably installed in /usr/local/lib* (at least the header files are in /usr/local), and that path might not be part of the default search path for shared libraries. You can try adding this path to the LD_LIBRARY_PATH environment variable and see if this fixes the problem. If this is the case, check how to permanently add this path to the ldd configuration (check /etc/ld.so.conf, but the best way of modifying this might vary from one distribution to the next).

This shouldn't happen in the static version, so I can't say what's wrong when you tried that. Please post the config.log file of that and I'll have a look.

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

Re: svn build error, Ubuntu 9.10

Postby KVL » 06 Sep 2010, 11:43

Thank you for the fast response!

Ive updated to r5900

I did some testing:
the irrlicht files were indeed in the wrong folder:
Were stored in /usr/local/lib, the compiler was looking in /usr/local/lib/Linux

Now irrlicht.h could not be found:
was stored in /usr/local/include/irrlicht
compiler was looking in /usr/local/include

Now windows.h could not be found:
was stored in /usr/include/directfb-internal/core
compiler was looking in /usr/local/include

Finally I was stuck at this error:

/usr/bin/ld: cannot find -lIrrlicht


When using the static version (the error is the same: the compiler is looking in .../Linux while the files are stored in .../
I moved all irrlicht files to .../Linux) ./configure now exits without errors, only with the static version that is.

When using 'make', the compiler exits with following error:

modes/world_with_rank.cpp: In member function ‘virtual void WorldWithRank::init()’:
modes/world_with_rank.cpp:27: error: ‘m_position_used’ was not declared in this scope
modes/world_with_rank.cpp:28: error: ‘m_position_setting_initialised’ was not declared in this scope
modes/world_with_rank.cpp: In member function ‘void WorldWithRank::endSetKartPositions()’:
modes/world_with_rank.cpp:108: error: ‘m_position_setting_initialised’ was not declared in this scope
make[2]: *** [world_with_rank.o] Fout 1
make[2]: Map '/home/koen/supertuxkart/src' wordt verlaten
make[1]: *** [all-recursive] Fout 1
make[1]: Map '/home/koen/supertuxkart/src' wordt verlaten
make: *** [all-recursive] Fout 1



Just bad luck it seems...
KVL
 
Posts: 3
Joined: 05 Sep 2010, 16:05

Re: svn build error, Ubuntu 9.10

Postby KroArtem » 06 Sep 2010, 14:15

I've got the same error -- world_with_rank... and so on.
The way I solved the problem was:
go to supertuxkart/src/modes/
edit it through the editor (I've used gedit)
Find the following lines:
{l Code}: {l Select All Code}
#ifdef DEBUG
    /** Used for debugging to help detect if the same kart position
     *  is used more than once. */
    std::vector<bool> m_position_used;

    /** True if beginSetKartPositions was called, false after
     *  endSetKartPositions. Used to make sure the sequence of calls
     *  is correct. */
    bool              m_position_setting_initialised;
#endif

And the comment the #ifdef DEBUG and #endif
This part should look like this:
{l Code}: {l Select All Code}
/**#ifdef DEBUG
    /** Used for debugging to help detect if the same kart position
     *  is used more than once. */
    std::vector<bool> m_position_used;

    /** True if beginSetKartPositions was called, false after
     *  endSetKartPositions. Used to make sure the sequence of calls
     *  is correct. */
    bool              m_position_setting_initialised;
/**#endif */

After this little change STK compiles well.
KroArtem
 
Posts: 375
Joined: 26 Aug 2010, 19:04

Re: svn build error, Ubuntu 9.10

Postby Auria » 06 Sep 2010, 18:00

Hi,

this problem (WorldWithRank) should now be fixed in SVN. Thanks for the report!
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: svn build error, Ubuntu 9.10

Postby KroArtem » 06 Sep 2010, 21:42

Auria, now STK segfaults when I try to start the race.
{l Code}: {l Select All Code}
(gdb) run
Starting program: /home/artem/SVN/supertuxkart/main/src/supertuxkart
[Thread debugging using libthread_db enabled]
Irrlicht Engine version 1.7.1
Linux 2.6.35-19-generic #28-Ubuntu SMP Sun Aug 29 06:34:38 UTC 2010 x86_64
Data files will be fetched from: '..'
creating...:/home/artem/.config
creating...:/home/artem/.config/supertuxkart
creating...:/home/artem/.config/supertuxkart
creating...:/home/artem/.local/share/supertuxkart
creating...:/home/artem/.local/share/supertuxkart/data/
Irrlicht Engine version 1.7.1
Linux 2.6.35-19-generic #28-Ubuntu SMP Sun Aug 29 06:34:38 UTC 2010 x86_64
Trying OpenGL rendering.
[New Thread 0x7fffee0d6710 (LWP 20649)]
[New Thread 0x7fffe8f40710 (LWP 20651)]
TrackManager: Couldn't find track: 'fortmagma'
Grand Prix 'This Grand Prix will not be available.
TrackManager: Couldn't find track: 'fortmagma'
Grand Prix 'This Grand Prix will not be available.
TrackManager: Couldn't find track: 'olivermath'
Grand Prix 'This Grand Prix will not be available.
addons dir:/home/artem/.local/share/supertuxkart/data/karts/
Download successfull
No new server.
[Thread 0x7fffe8f40710 (LWP 20651) exited]
Level 2: Could not create archive for: /home/artem/SVN/supertuxkart/main/data/karts/Chuck/
Level 2: Could not create archive for: /home/artem/SVN/supertuxkart/main/data/karts/Chuck/
Level 2: Could not load texture:
Level 1: Could not open file of texture: chuckicon.png
Level 1: Could not open file of texture: chuckshadow.png
Level 2: Could not create archive for: /home/artem/SVN/supertuxkart/main/data/karts/Monkey/
Level 2: Could not create archive for: /home/artem/SVN/supertuxkart/main/data/karts/Monkey/
Level 2: Could not load texture:
Level 1: Could not open file of texture: monkeyshadow.png
Level 2: Could not create archive for: /home/artem/SVN/supertuxkart/main/data/karts/Python/
Level 2: Could not create archive for: /home/artem/SVN/supertuxkart/main/data/karts/Python/
Level 2: Could not load texture:
Level 1: Could not open file of texture: pythonicon.png
ChallengeData : Undefined or incorrect value for 'gp' in challenge file '../data/followtheleader.challenge'.

/!\ An error occurred while loading challenge file '../data/followtheleader.challenge' : Undefined or incorrect value for 'gp' in challenge file '../data/followtheleader.challenge'. : challenge will be ignored.

TrackManager: Couldn't find track: 'olivermath'
ChallengeData : Undefined or incorrect value for 'track' in challenge file '../data/tracks/crescentcrossing/crescentcrossing.challenge'.

/!\ An error occurred while loading challenge file '../data/tracks/crescentcrossing/crescentcrossing.challenge' : Undefined or incorrect value for 'track' in challenge file '../data/tracks/crescentcrossing/crescentcrossing.challenge'. : challenge will be ignored.

TrackManager: Couldn't find track: 'racetrack'
ChallengeData : Undefined or incorrect value for 'track' in challenge file '../data/tracks/jungle/jungle.challenge'.

/!\ An error occurred while loading challenge file '../data/tracks/jungle/jungle.challenge' : Undefined or incorrect value for 'track' in challenge file '../data/tracks/jungle/jungle.challenge'. : challenge will be ignored.

ChallengeData : Undefined or incorrect value for 'gp' in challenge file '../data/grandprix/alltracks.challenge'.

/!\ An error occurred while loading challenge file '../data/grandprix/alltracks.challenge' : Undefined or incorrect value for 'gp' in challenge file '../data/grandprix/alltracks.challenge'. : challenge will be ignored.

Challenge prerequisite 'energymathclass' of 'energyshiftingsands' not found - ignored
Challenge prerequisite 'worldsend' of 'snowmountain' not found - ignored
Solved challenge!! tollwaytime
Challenge prerequisite 'energymathclass' of 'energyshiftingsands' not found - ignored
Challenge prerequisite 'worldsend' of 'snowmountain' not found - ignored
Level 2: Could not load texture:
Loaded texture: /home/artem/SVN/supertuxkart/main/data/gui/logo.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/gui/main_race.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/gui/main_network.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/gui/challenge.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/gui/addons.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/gui/main_options.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/gui/main_help.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/gui/main_about.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/gui/main_quit.png
[New Thread 0x7fffde703710 (LWP 20652)]
Downloading: http://download.tuxfamily.org/stkaddons/0.7//news
Loaded texture: /home/artem/SVN/supertuxkart/main/data/fonts/AR_PL_SungtiL_GB0.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/fonts/LayneHansom0.png
Download successfull
[Thread 0x7fffde703710 (LWP 20652) exited]
WARNING: the focus dispatcher in kart selection screen can't find the widget for player 0!
Loaded texture: /home/artem/SVN/supertuxkart/main/data/textures/transparence.png
Could not open file of texture: ../data///karts/Chuck/chuckicon.png
Texture '/karts/Chuck/chuckicon.png' not found!
Could not open file of texture: ../data///karts/Python/pythonicon.png
Texture '/karts/Python/pythonicon.png' not found!
Could not open file of texture: ../data///karts/Monkey/monkeyicon.png
Texture '/karts/Monkey/monkeyicon.png' not found!
Loaded texture: /home/artem/SVN/supertuxkart/main/data/gui/random_kart.png
Unsupported texture format
Could not open file of texture: ../data///karts/Chuck/chuckicon.png
Texture '/karts/Chuck/chuckicon.png' not found!
Could not open file of texture: ../data///karts/Python/pythonicon.png
Texture '/karts/Python/pythonicon.png' not found!
Could not open file of texture: ../data///karts/Monkey/monkeyicon.png
Texture '/karts/Monkey/monkeyicon.png' not found!
Loaded texture: /home/artem/SVN/supertuxkart/main/data/gui/difficulty_easy.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/gui/difficulty_medium.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/gui/difficulty_hard.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/gui/mode_normal.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/gui/mode_tt.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/gui/mode_ftl.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/tracks/islandtrack/sshot-islandtrack.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/tracks/lighthouse/sshot-lighthouse.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/tracks/beach/sshot-beach.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/tracks/farm/farm.jpg
Loaded texture: /home/artem/SVN/supertuxkart/main/data/tracks/secretgarden/sshot-secretgarden.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/tracks/canyon/canyon_screenshot.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/tracks/mines/sshot-mines.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/tracks/skyline/sshot-skyline.jpg
Loaded texture: /home/artem/SVN/supertuxkart/main/data/tracks/crescentcrossing/sshot-crescent.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/tracks/jungle/sshot-jungle.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/tracks/sandtrack/sshot-sandtrack.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/tracks/snowmountain/sshot-snowmountain.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/fonts/title_font_2.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/textures/gui_lock.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/textures/cup_bronze.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/tracks/tuxtollway/sshot-tuxtrack.png

Program received signal SIGSEGV, Segmentation fault.
0x00000000004de63e in WorldWithRank::setKartPosition(unsigned int, unsigned int) ()

(gdb) bt
#0  0x00000000004de63e in WorldWithRank::setKartPosition(unsigned int, unsigned int) ()
#1  0x00000000004d4f3d in LinearWorld::updateRacePosition() ()
#2  0x00000000004d5135 in LinearWorld::update(float) ()
#3  0x00000000004db285 in World::updateWorld(float) ()
#4  0x0000000000410ff0 in MainLoop::run() ()
#5  0x000000000040fde8 in main ()


So looks like the problem is still in world_with_rank (may be wrongly created\assigned variables (just a thought of a newbie :)))
KroArtem
 
Posts: 375
Joined: 26 Aug 2010, 19:04

Re: svn build error, Ubuntu 9.10

Postby hiker » 07 Sep 2010, 00:33

Hi,

KroArtem {l Wrote}:Auria, now STK segfaults when I try to start the race.

is that with the 'official' fix from auria (i.e. current SVN), or the one posted above? The one above might not work in all cases if there are still some places in the .cpp file where #ifdef DEBUG is used, and you are not using debugging - so make sure you use the official version (without any other changes). Sorry that you had to stumble on one of the few moments were we actually have a version of STK that does not compile cleanly in all cases :oops:

Also could you recompile with debugging enabled - ideally use
{l Code}: {l Select All Code}
configure --enable-debug --disable-optimization ... (your other flags)

If this should be too slow, at least use --enable-debug, then it shouldn't make much difference in terms of performance. This would hopefully give more information (line numbers and perhaps some variable values). Also what is the number of karts you are using, and what track? There are some issues with karts not on proper start positions if the number of karts is large (>15 or so).

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

Re: svn build error, Ubuntu 9.10

Postby hiker » 07 Sep 2010, 12:30

Hi,

turns out there was a bug in the committed bugfix, I had the same crash you reported. But I fixed it now ... really ;) Try r5910 - it worked for me.

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

Re: svn build error, Ubuntu 9.10

Postby KroArtem » 07 Sep 2010, 20:11

hiker, now compiles fine but I've founded a segfault.
It happens manually when I click on the button 'network'.
{l Code}: {l Select All Code}
[skipped]
-- switching to screen mainaddons.stkgui
[New Thread 0x7fffdbeee710 (LWP 17186)]
Downloading: http://download.tuxfamily.org/stkaddons/0.7//news
Download progress: 0%
Download successfull
[Thread 0x7fffdbeee710 (LWP 17186) exited]
Challenge prerequisite 'energymathclass' of 'energyshiftingsands' not found - ignored
Challenge prerequisite 'worldsend' of 'snowmountain' not found - ignored
Loaded texture: /home/artem/SVN/supertuxkart/main/data/textures/transparence.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/textures/cup_gold.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/fonts/title_font_2.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/textures/gui_lock.png
-- switching to screen mainaddons.stkgui
[New Thread 0x7fffdb43d710 (LWP 17187)]
Downloading: http://download.tuxfamily.org/stkaddons/0.7//news
Download successfull
[Thread 0x7fffdb43d710 (LWP 17187) exited]
Could not find a kart named tux
Loaded texture: /home/artem/SVN/supertuxkart/main/data/textures/purplenebula.png
Loaded texture: /home/artem/SVN/supertuxkart/main/data/textures/purplenebula2.png
read ChunkTEXS
read Texture: chest.png
Flags: 9
Blend: 2
read ChunkBRUS
read Material: Brush.001
Blend: 1
FX: 0
Layer: 0
using texture: chest.png
read ChunkNODE: ChestLid
read ChunkMESH
read ChunkVRTS
read ChunkTRIS
Loaded texture: /home/artem/SVN/supertuxkart/main/data/models/chest.png
read ChunkANIM
read ChunkNODE: BodyAll
read ChunkBONE
read ChunkNODE: LidAll
read ChunkBONE
read ChunkNODE: KeyAll
read ChunkBONE
Loaded mesh: ../data/models//chest.b3d
Malformed unlocked goody!!!

Program received signal SIGSEGV, Segmentation fault.
0x000000000051e5a1 in FeatureUnlockedCutScene::onUpdate(float, irr::video::IVideoDriver*) ()
(gdb) bt
#0  0x000000000051e5a1 in FeatureUnlockedCutScene::onUpdate(float, irr::video::IVideoDriver*) ()
#1  0x000000000045d422 in GUIEngine::render(float) ()
#2  0x00000000004454a9 in IrrDriver::update(float) ()
#3  0x000000000041102f in MainLoop::run() ()
#4  0x000000000040fde8 in main ()

As one can see I've entered the addons, go through the tabs, exited addons and tried to click on 'network'. Looks like something is wrong with ../data/models//chest.b3d (or I'm wrong :))
KroArtem
 
Posts: 375
Joined: 26 Aug 2010, 19:04

Re: svn build error, Ubuntu 9.10

Postby Auria » 08 Sep 2010, 00:47

"Could not find a kart named tux"... now that's weird :o
Do you have a clean installation of STK? With Tux?
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: svn build error, Ubuntu 9.10

Postby KroArtem » 08 Sep 2010, 10:15

Yes, I've got a clean installation :) Every day I rebuild STK, sometimes make clean, ./configure --with-addons , make; sometimes just type make (when there are little changes) and in that case the time of compilation is reduced.
In fact looks like this happens when I do something in 'Addons' and then go to Network.
Also there was a segfault today with addons (yes-yes, I remember it is still buggy so I wouldn't create an artifact, just post it here ) :
{l Code}: {l Select All Code}
Addons dir:/home/artem/.local/share/supertuxkart
icon bank
[New Thread 0x7fffddbf8710 (LWP 20151)]
Loading an xml file for addons: Downloading: http://download.tuxfamily.org/stkaddons/0.7//list
Loaded texture: /home/artem/SVN/supertuxkart/main/data/fonts/title_font.png
tab_kart
load list

Program received signal SIGSEGV, Segmentation fault.
0x0000000000571d70 in Addons::resetIndex() ()
(gdb) bt
#0  0x0000000000571d70 in Addons::resetIndex() ()
#1  0x0000000000540913 in AddonsScreen::loadList() ()
#2  0x000000000054167b in AddonsScreen::eventCallback(GUIEngine::Widget*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)
    ()
#3  0x000000000046084a in GUIEngine::EventHandler::onGUIEvent(irr::SEvent const&) ()
#4  0x00000000004608a5 in GUIEngine::EventHandler::OnEvent(irr::SEvent const&)
    ()
#5  0x00007ffff7a919ba in irr::gui::CGUIButton::OnEvent (this=0x7fffe4af9080,
    event=...) at CGUIButton.cpp:214
#6  0x00007ffff7a919ba in irr::gui::CGUIButton::OnEvent (this=0x7fffe4af8d50,
    event=...) at CGUIButton.cpp:214
#7  0x00007ffff7ab271a in irr::gui::CGUIEnvironment::updateHoveredElement (
    this=<value optimized out>, mousePos=<value optimized out>)
    at CGUIEnvironment.cpp:490
#8  0x00007ffff7ab42ed in irr::gui::CGUIEnvironment::postEventFromUser (
    this=0xc24c60, event=...) at CGUIEnvironment.cpp:517
#9  0x00007ffff7a8e174 in irr::CIrrDeviceStub::postEventFromUser (
    this=0x8752f0, event=...) at CIrrDeviceStub.cpp:214
#10 0x00007ffff7a84056 in irr::CIrrDeviceLinux::run (this=0x8752f0)
    at CIrrDeviceLinux.cpp:888
#11 0x0000000000445260 in IrrDriver::update(float) ()
KroArtem
 
Posts: 375
Joined: 26 Aug 2010, 19:04

Re: svn build error, Ubuntu 9.10

Postby Auria » 08 Sep 2010, 17:06

The "Add-ons" menu is not stable nor complete, so issues are expected in there
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: svn build error, Ubuntu 9.10

Postby KroArtem » 08 Sep 2010, 17:27

I remember about it. :) Anyway seems like xapantu now knows what's the problem.
KroArtem
 
Posts: 375
Joined: 26 Aug 2010, 19:04

Re: svn build error, Ubuntu 9.10

Postby xapantu » 08 Sep 2010, 17:35

Yes ;)
The problem is that I tried to reload the karts list but I can't reload the karts in the kart selection screen... I am trying to fix that.
xapantu
 
Posts: 283
Joined: 07 Dec 2009, 17:30

Re: svn build error, Ubuntu 9.10

Postby KVL » 11 Sep 2010, 12:11

Just to mention my problems are fixed.
Thank you very much for helping out. :-)

STK has greatly improved since 0.6.2!!
KVL
 
Posts: 3
Joined: 05 Sep 2010, 16:05

Re: svn build error, Ubuntu 9.10

Postby Auria » 11 Sep 2010, 18:30

KVL {l Wrote}:STK has greatly improved since 0.6.2!!


Thanks :)
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: svn build error, Ubuntu 9.10

Postby Teh Matt » 26 Sep 2010, 16:32

KVL, I am having the same error as you when trying to get Irrlicht to work. What steps did you take to move the libraries to where they needed to be? I put a copy of libIrrlicht.a in every spot I could think of, and still no luck.
User avatar
Teh Matt
 
Posts: 24
Joined: 25 Sep 2010, 19:44

Who is online

Users browsing this forum: No registered users and 1 guest