[Solved] I can't compile on ubuntu

[Solved] I can't compile on ubuntu

Postby STKRudy85 » 17 Sep 2011, 18:47

Can you tell me what's wrong ?

{l Code}: {l Select All Code}
cd ~

apt-get install libsdl1.2-dev libopenal-dev libalut-dev libmikmod2-dev libglu1-mesa-dev subversion autoconf automake1.9 g++ gcc build-essential fakeroot checkinstall xserver-xorg-dev x11proto-xf86vidmode-dev libxxf86vm-dev mesa-common-dev libgl1-mesa-dev libxext-dev libfribidi-dev libogg-dev libvorbis-dev libirrlicht1.8 libirrlicht-dev libcurl4-gnutls-dev

svn co https://supertuxkart.svn.sourceforge.net/svnroot/supertuxkart/main/trunk

svn checkout https://irrlicht.svn.sourceforge.net/svnroot/irrlicht/trunk irrlicht

cd ~/irrlicht/source/Irrlicht
make
cd ../..
cp -r include/* /usr/local/include/
cd ~/trunk
./autogen.sh && ./configure --with-irrlicht=~/irrlicht/ && make


How do I make clean the installation ( I tried a lot of time )

A pre-compiled package working on ubuntu ( like usually xeno do ) is also a good solution to me

I'm using ubuntu 10.04
and PPA http://ppa.launchpad.net/stk/daily/ubuntu is activated
Last edited by STKRudy85 on 18 Sep 2011, 10:04, edited 1 time in total.
STK fan
User avatar
STKRudy85
 
Posts: 532
Joined: 23 Dec 2010, 03:00
Location: France

Re: I can't compile on ubuntu

Postby Auria » 17 Sep 2011, 19:27

well what is the problem?? you did not post the error message
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: I can't compile on ubuntu

Postby qubodup » 17 Sep 2011, 23:40

You need to tell ./configure the absolute path @STKRudy85

I ran into this problem lots of times and forgot that I had to do this.

so do:


./autogen.sh && ./configure --with-irrlicht=/home/USERNAMEHERE/irrlicht/ && make
User avatar
qubodup
Global Moderator
 
Posts: 1671
Joined: 08 Nov 2009, 22:52
Location: Berlin, Germany

Re: I can't compile on ubuntu

Postby STKRudy85 » 18 Sep 2011, 10:03

qubodup {l Wrote}:You need to tell ./configure the absolute path @STKRudy85

I ran into this problem lots of times and forgot that I had to do this.

so do:


./autogen.sh && ./configure --with-irrlicht=/home/USERNAMEHERE/irrlicht/ && make


Yes it was the problem :)

I can't load snow tux peak

{l Code}: {l Select All Code}
rudy@rudy-desktop:~$ /home/rudy/trunk/src/supertuxkart
Irrlicht Engine version 1.8.0-alpha
Linux 2.6.32-33-generic-pae #72-Ubuntu SMP Fri Jul 29 22:06:29 UTC 2011 i686
Could not load sprite bank because the file does not exist: #DefaultFont
[FileManager] Data files will be fetched from: '/home/rudy/trunk/src/..'
[FileManager] Addons files will be stored in '/home/rudy/.local/share/supertuxkart/addons'.
[translate] Env var LANGUAGE = 'fr_FR.UTF-8'
[translate] Env var LANGUAGE = 'fr_FR.UTF-8', which corresponds to 'French (France)'
Adding language fallback fr
Irrlicht Engine version 1.8.0-alpha
Linux 2.6.32-33-generic-pae #72-Ubuntu SMP Fri Jul 29 22:06:29 UTC 2011 i686
Could not load sprite bank because the file does not exist: #DefaultFont
!!!!! Performance warning: Irrlicht compiled with debug mode.!!!!!
!!!!! This can have a significant performance impact         !!!!!
[IrrDriver] Trying OpenGL rendering.
[IrrDriver] Trying to create device with 32 bits
[SFXBuffer] LoadVorbisBuffer() - couldn't open file!
Could not load sound effect /home/rudy/trunk/src/../data/sfx/ball_hit.ogg
New highscore file '/home/rudy/.config/supertuxkart/highscore.xml' created.
Challenge file '/home/rudy/.config/supertuxkart/challenges.xml' will be created.
startMusic : m_normal_filename=</home/rudy/trunk/src/../data//music/MayDayMayhem.ogg>, gain=0.7
[addons] Loading an xml file for installed addons: /home/rudy/.local/share/supertuxkart/addons/addons_installed.xml
[IrrDriver] Trying OpenGL rendering.
[IrrDriver] Trying to create device with 32 bits
WARNING: Music not playing when it should be. Source state: 4116
Erreur de segmentation
rudy@rudy-desktop:~$ /home/rudy/trunk/src/supertuxkart
Irrlicht Engine version 1.8.0-alpha
Linux 2.6.32-33-generic-pae #72-Ubuntu SMP Fri Jul 29 22:06:29 UTC 2011 i686
Could not load sprite bank because the file does not exist: #DefaultFont
[FileManager] Data files will be fetched from: '/home/rudy/trunk/src/..'
[FileManager] Addons files will be stored in '/home/rudy/.local/share/supertuxkart/addons'.
[translate] Env var LANGUAGE = 'fr_FR.UTF-8'
[translate] Env var LANGUAGE = 'fr_FR.UTF-8', which corresponds to 'French (France)'
Adding language fallback fr
Irrlicht Engine version 1.8.0-alpha
Linux 2.6.32-33-generic-pae #72-Ubuntu SMP Fri Jul 29 22:06:29 UTC 2011 i686
Could not load sprite bank because the file does not exist: #DefaultFont
!!!!! Performance warning: Irrlicht compiled with debug mode.!!!!!
!!!!! This can have a significant performance impact         !!!!!
[IrrDriver] Trying OpenGL rendering.
[IrrDriver] Trying to create device with 32 bits
[addons] Loading an xml file for installed addons: /home/rudy/.local/share/supertuxkart/addons/addons_installed.xml
[SFXBuffer] LoadVorbisBuffer() - couldn't open file!
Could not load sound effect /home/rudy/trunk/src/../data/sfx/ball_hit.ogg
startMusic : m_normal_filename=</home/rudy/trunk/src/../data//music/MayDayMayhem.ogg>, gain=0.5
startMusic : m_normal_filename=</home/rudy/trunk/src/../data/music///TheDeadRocks-GreenSecretFromAmazonia.ogg>, gain=0.5
startMusic : m_normal_filename=</home/rudy/trunk/src/../data//music/MayDayMayhem.ogg>, gain=0.5
startMusic : m_normal_filename=</home/rudy/trunk/src/../data/tracks/startrack/Ethereal_Spectrum.ogg>, gain=0.5
startMusic : m_normal_filename=</home/rudy/trunk/src/../data//music/MayDayMayhem.ogg>, gain=0.5
startMusic : m_normal_filename=</home/rudy/trunk/src/../data/music///Origin.ogg>, gain=0.5
startMusic : m_normal_filename=</home/rudy/trunk/src/../data/music///race_summary.ogg>, gain=0.5
startMusic : m_normal_filename=</home/rudy/trunk/src/../data//music/MayDayMayhem.ogg>, gain=0.5
Erreur de segmentation
rudy@rudy-desktop:~$


Rev 9856

I note that in full screen display is 800 x 600, but 1360 x 768 is selected !
STK fan
User avatar
STKRudy85
 
Posts: 532
Joined: 23 Dec 2010, 03:00
Location: France

Re: [Solved] I can't compile on ubuntu

Postby Auria » 18 Sep 2011, 16:37

Can you run in gdb and give us a backtrace?

{l Code}: {l Select All Code}
gdb supertuxkart
run
... make it crash ...
bt


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

Re: [Solved] I can't compile on ubuntu

Postby STKRudy85 » 19 Sep 2011, 22:05

{l Code}: {l Select All Code}
rudy@rudy-desktop:~$ /home/rudy/trunk/src/supertuxkart Irrlicht Engine version 1.8.0-alpha
Linux 2.6.32-33-generic-pae #72-Ubuntu SMP Fri Jul 29 22:06:29 UTC 2011 i686
Could not load sprite bank because the file does not exist: #DefaultFont
[FileManager] Data files will be fetched from: '/home/rudy/trunk/src/..'
[FileManager] Addons files will be stored in '/home/rudy/.local/share/supertuxkart/addons'.
[translate] Env var LANGUAGE = 'fr_FR.UTF-8'
[translate] Env var LANGUAGE = 'fr_FR.UTF-8', which corresponds to 'French (France)'
Adding language fallback fr
Irrlicht Engine version 1.8.0-alpha
Linux 2.6.32-33-generic-pae #72-Ubuntu SMP Fri Jul 29 22:06:29 UTC 2011 i686
Could not load sprite bank because the file does not exist: #DefaultFont
!!!!! Performance warning: Irrlicht compiled with debug mode.!!!!!
!!!!! This can have a significant performance impact         !!!!!
[IrrDriver] Trying OpenGL rendering.
[IrrDriver] Trying to create device with 32 bits
[addons] Loading an xml file for installed addons: /home/rudy/.local/share/supertuxkart/addons/addons_installed.xml
[SFXBuffer] LoadVorbisBuffer() - couldn't open file!
Could not load sound effect /home/rudy/trunk/src/../data/sfx/ball_hit.ogg
Missing wheel information 'front-right' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
Missing wheel information 'front-left' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
Missing wheel information 'rear-right' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
Missing wheel information 'rear-left' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
[Irrlicht Warning] Could not open file of texture: chinch-fur.rgb
[Irrlicht Warning] Could not open file of texture: chinch-skin.rgb
[Irrlicht Warning] Could not open file of texture: cup_Sphere.002.rgb
startMusic : m_normal_filename=</home/rudy/trunk/src/../data//music/MayDayMayhem.ogg>, gain=0.5
[Irrlicht Warning] X Error: BadValue (integer parameter out of range for operation)
[Irrlicht Warning] From call : unknown
[IrrDriver] Trying OpenGL rendering.
[IrrDriver] Trying to create device with 32 bits
Missing wheel information 'front-right' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
Missing wheel information 'front-left' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
Missing wheel information 'rear-right' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
Missing wheel information 'rear-left' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
[Irrlicht Warning] Could not open file of texture: chinch-fur.rgb
[Irrlicht Warning] Could not open file of texture: chinch-skin.rgb
[Irrlicht Warning] Could not open file of texture: cup_Sphere.002.rgb
WARNING: Music not playing when it should be. Source state: 4116
[Irrlicht Warning] X Error: BadValue (integer parameter out of range for operation)
[Irrlicht Warning] From call : unknown
[IrrDriver] Trying OpenGL rendering.
[IrrDriver] Trying to create device with 32 bits
Missing wheel information 'front-right' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
Missing wheel information 'front-left' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
Missing wheel information 'rear-right' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
Missing wheel information 'rear-left' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
[Irrlicht Warning] Could not open file of texture: chinch-fur.rgb
[Irrlicht Warning] Could not open file of texture: chinch-skin.rgb
[Irrlicht Warning] Could not open file of texture: cup_Sphere.002.rgb
WARNING: Music not playing when it should be. Source state: 4116
WARNING: Music not playing when it should be. Source state: 4116
WARNING: Music not playing when it should be. Source state: 4116
Erreur de segmentation
rudy@rudy-desktop:~$


here is the snowtuxpeak error
STK fan
User avatar
STKRudy85
 
Posts: 532
Joined: 23 Dec 2010, 03:00
Location: France

Re: [Solved] I can't compile on ubuntu

Postby Auria » 20 Sep 2011, 00:59

Please read what I wrote, I would like you to run STK in gdb

S'il-te-plait lit attentivement les commandes dans mon message précédent, il faut exécuter STK dans gdb
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: [Solved] I can't compile on ubuntu

Postby STKRudy85 » 20 Sep 2011, 09:19

I try to put all the code in my terminal, it works this is why I didn't try line by line
STK fan
User avatar
STKRudy85
 
Posts: 532
Joined: 23 Dec 2010, 03:00
Location: France

Re: [Solved] I can't compile on ubuntu

Postby STKRudy85 » 20 Sep 2011, 18:06

{l Code}: {l Select All Code}
rudy@rudy-desktop:~$ /home/rudy/trunk/src/supertuxkart
Irrlicht Engine version 1.8.0-alpha
Linux 2.6.32-33-generic-pae #72-Ubuntu SMP Fri Jul 29 22:06:29 UTC 2011 i686
Could not load sprite bank because the file does not exist: #DefaultFont
[FileManager] Data files will be fetched from: '/home/rudy/trunk/src/..'
[FileManager] Addons files will be stored in '/home/rudy/.local/share/supertuxkart/addons'.
[translate] Env var LANGUAGE = 'fr_FR.UTF-8'
[translate] Env var LANGUAGE = 'fr_FR.UTF-8', which corresponds to 'French (France)'
Adding language fallback fr
Irrlicht Engine version 1.8.0-alpha
Linux 2.6.32-33-generic-pae #72-Ubuntu SMP Fri Jul 29 22:06:29 UTC 2011 i686
Could not load sprite bank because the file does not exist: #DefaultFont
!!!!! Performance warning: Irrlicht compiled with debug mode.!!!!!
!!!!! This can have a significant performance impact         !!!!!
[IrrDriver] Trying OpenGL rendering.
[IrrDriver] Trying to create device with 32 bits
[addons] Loading an xml file for installed addons: /home/rudy/.local/share/supertuxkart/addons/addons_installed.xml
[SFXBuffer] LoadVorbisBuffer() - couldn't open file!
Could not load sound effect /home/rudy/trunk/src/../data/sfx/ball_hit.ogg
Missing wheel information 'front-right' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
Missing wheel information 'front-left' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
Missing wheel information 'rear-right' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
Missing wheel information 'rear-left' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
[Irrlicht Warning] Could not open file of texture: chinch-fur.rgb
[Irrlicht Warning] Could not open file of texture: chinch-skin.rgb
[Irrlicht Warning] Could not open file of texture: cup_Sphere.002.rgb
startMusic : m_normal_filename=</home/rudy/trunk/src/../data//music/MayDayMayhem.ogg>, gain=0.5
AL lib: ALc.c:1818: alcCloseDevice(): deleting 1 Buffer(s)
rudy@rudy-desktop:~$ cd /home/rudy/trunk/src
rudy@rudy-desktop:~/trunk/src$ gdb supertuxkart
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/rudy/trunk/src/supertuxkart...done.
(gdb) run
Starting program: /home/rudy/trunk/src/supertuxkart
[Thread debugging using libthread_db enabled]
Irrlicht Engine version 1.8.0-alpha
Linux 2.6.32-33-generic-pae #72-Ubuntu SMP Fri Jul 29 22:06:29 UTC 2011 i686
Could not load sprite bank because the file does not exist: #DefaultFont
[FileManager] Data files will be fetched from: '..'
[FileManager] Addons files will be stored in '/home/rudy/.local/share/supertuxkart/addons'.
[translate] Env var LANGUAGE = 'fr_FR.UTF-8'
[translate] Env var LANGUAGE = 'fr_FR.UTF-8', which corresponds to 'French (France)'
Adding language fallback fr
Irrlicht Engine version 1.8.0-alpha
Linux 2.6.32-33-generic-pae #72-Ubuntu SMP Fri Jul 29 22:06:29 UTC 2011 i686
Could not load sprite bank because the file does not exist: #DefaultFont
!!!!! Performance warning: Irrlicht compiled with debug mode.!!!!!
!!!!! This can have a significant performance impact         !!!!!
[IrrDriver] Trying OpenGL rendering.
[IrrDriver] Trying to create device with 32 bits
[New Thread 0xb36fdb70 (LWP 4705)]
[addons] Loading an xml file for installed addons: /home/rudy/.local/share/supertuxkart/addons/addons_installed.xml
[New Thread 0xb2c03b70 (LWP 4706)]
[SFXBuffer] LoadVorbisBuffer() - couldn't open file!
Could not load sound effect ../data/sfx/ball_hit.ogg
Missing wheel information 'front-right' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
Missing wheel information 'front-left' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
Missing wheel information 'rear-right' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
Missing wheel information 'rear-left' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
[Irrlicht Warning] Could not open file of texture: chinch-fur.rgb
[Irrlicht Warning] Could not open file of texture: chinch-skin.rgb
[Irrlicht Warning] Could not open file of texture: cup_Sphere.002.rgb
startMusic : m_normal_filename=<../data//music/MayDayMayhem.ogg>, gain=0.5
WARNING: Music not playing when it should be. Source state: 4116
startMusic : m_normal_filename=<../data//music/MayDayMayhem.ogg>, gain=0.5
[IrrDriver] Trying OpenGL rendering.
[IrrDriver] Trying to create device with 32 bits
Missing wheel information 'front-right' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
Missing wheel information 'front-left' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
Missing wheel information 'rear-right' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
Missing wheel information 'rear-left' for model 'blinky.b3d'.
This can be ignored, but the wheels will not rotate.
[Irrlicht Warning] Could not open file of texture: chinch-fur.rgb
[Irrlicht Warning] Could not open file of texture: chinch-skin.rgb
[Irrlicht Warning] Could not open file of texture: cup_Sphere.002.rgb
WARNING: Music not playing when it should be. Source state: 4116
WARNING: Music not playing when it should be. Source state: 4116

Program received signal SIGSEGV, Segmentation fault.
0x08458b36 in irr::scene::CAnimatedMeshSceneNode::setMesh (this=0x171ad1a8,
    mesh=0xfdce840) at CAnimatedMeshSceneNode.cpp:841
841   CAnimatedMeshSceneNode.cpp: Aucun fichier ou dossier de ce type.
   in CAnimatedMeshSceneNode.cpp
(gdb) bt
#0  0x08458b36 in irr::scene::CAnimatedMeshSceneNode::setMesh (
    this=0x171ad1a8, mesh=0xfdce840) at CAnimatedMeshSceneNode.cpp:841
#1  0x080be805 in Referee::Referee(bool) ()
#2  0x081fd171 in RaceGUIBase::init() ()
#3  0x0817706e in World::init() ()
#4  0x08179727 in WorldWithRank::init() ()
#5  0x0816c564 in LinearWorld::init() ()
#6  0x081a0406 in RaceManager::startNextRace() ()
#7  0x081a0842 in RaceManager::startNew() ()
#8  0x081a114a in RaceManager::startSingleRace(std::string, int) ()
#9  0x081be320 in TrackInfoDialog::processEvent(std::string const&) ()
#10 0x080d258a in GUIEngine::EventHandler::onWidgetActivated(GUIEngine::Widget*, int) ()
#11 0x080d2a54 in GUIEngine::EventHandler::onGUIEvent(irr::SEvent const&) ()
#12 0x080d2bac in GUIEngine::EventHandler::OnEvent(irr::SEvent const&) ()
#13 0x082776dd in irr::gui::CGUIEnvironment::OnEvent (this=0xc899978,
    event=...) at CGUIEnvironment.cpp:393
#14 0x08291654 in irr::gui::CGUIModalScreen::OnEvent (this=0x16612730,
    event=...) at CGUIModalScreen.cpp:141
#15 0x082ab729 in irr::gui::CGUIWindow::OnEvent (this=0x9703ce0, event=...)
    at CGUIWindow.cpp:217
#16 0x0838d15e in irr::gui::CGUIButton::OnEvent (this=0x1663ce08, event=...)
    at CGUIButton.cpp:204
---Type <return> to continue, or q <return> to quit---
STK fan
User avatar
STKRudy85
 
Posts: 532
Joined: 23 Dec 2010, 03:00
Location: France

Re: [Solved] I can't compile on ubuntu

Postby Auria » 20 Sep 2011, 23:21

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

Re: [Solved] I can't compile on ubuntu

Postby hiker » 21 Sep 2011, 03:57

Hi,

there is the error message:
{l Code}: {l Select All Code}
[Irrlicht Warning] X Error: BadValue (integer parameter out of range for operation)
[Irrlicht Warning] From call : unknown

on stdout. Could this be a driver problem? I couldn't reproduce the problem on either windows or Mac.

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

Re: [Solved] I can't compile on ubuntu

Postby Funto » 22 Sep 2011, 13:27

I would go for a driver problem but can't confirm.
Funto
 
Posts: 459
Joined: 09 Dec 2009, 13:47
Location: Bordeaux, France

Who is online

Users browsing this forum: No registered users and 1 guest

cron