Compiling version for openSUSE 11.3 from SVN - openAL error

Compiling version for openSUSE 11.3 from SVN - openAL error

Postby Crendgrim » 11 Sep 2010, 18:34

I've got a bug when I try to compile the latest SVN-Trunk under openSUSE 11.3: (And, as far as I remember, this was the reason why I wasn't able to use the Beta 2 ...)
The autoconf works with no problems, but when I try to configure, it says that "OpenAL" is needed.
configure: error: cannot find useable OpenAL installation. You need to install OpenAL.

Well, the fact is: OpenAL isn't available for openSUSE 11.3, so I installed OpenAL-Soft. But I don't know how to let the configure-Script use this instead of the old OpenAL :x
(The stable 0.6.2 (installed from official Repos) uses OpenAL-Soft, I think - I've got sound there ...)

Does anyone have a solution / an idea?


Crendgrim

PS: Please don't be bothered about my language - I'm from Germany...
Crendgrim
 
Posts: 227
Joined: 03 May 2011, 21:59

Re: Compiling version for openSUSE 11.3 from SVN - openAL error

Postby Auria » 11 Sep 2010, 22:03

Hi,

I'm not familiar with OpenAL soft; but you can start by posting the file "config.log" that was generated in the base directory of STK, this will allow us to see exactly why OpenAL is not found
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Compiling version for openSUSE 11.3 from SVN - openAL error

Postby Crendgrim » 12 Sep 2010, 06:52

Thanks for the quick reply.

Ouf.
While looking through the config.log to see whether it could be shortened (it's quite long) I saw error messages as
configure:4267: checking for g++
configure:4297: result: no

So I installed g++ (why doesn't these Distros have such things installed by standard? -.- ) and reconfigured the STK-Trunk.
What happened? The error message changed:
checking for library containing alGenBuffers... -lopenal
checking AL/al.h usability... yes
checking AL/al.h presence... yes
checking for AL/al.h... yes
checking OpenAL/al.h usability... no
checking OpenAL/al.h presence... no
checking for OpenAL/al.h... no
checking for library containing ov_open... no
configure: error: cannot find useable Ogg Vorbis installation. You need to install libogg and libvorbis.

The problem is: libogg and libvorbis are installed. So I think the error messages aren't correct. ;)
But that the OpenAL/al.h isn't available .. I can't understand this.

Extracts from the error log:
{l Code}: {l Select All Code}
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char alGenBuffers ();
| int
| main ()
| {
| return alGenBuffers ();
|   ;
|   return 0;
| }
configure:5656: g++ -o conftest  -Wall -DNDEBUG -O2   conftest.cpp -lopenal   >&5
configure:5656: $? = 0
configure:5673: result: -lopenal
configure:5689: checking AL/al.h usability
configure:5689: g++ -c  -Wall -DNDEBUG -O2  conftest.cpp >&5
configure:5689: $? = 0
configure:5689: result: yes
configure:5689: checking AL/al.h presence
configure:5689: g++ -E  conftest.cpp
configure:5689: $? = 0
configure:5689: result: yes
configure:5689: checking for AL/al.h
configure:5689: result: yes
configure:5689: checking OpenAL/al.h usability
configure:5689: g++ -c  -Wall -DNDEBUG -O2  conftest.cpp >&5
conftest.cpp:55:23: fatal error: OpenAL/al.h: No such file or directory
compilation terminated.
configure:5689: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "supertuxkart"
| #define PACKAGE_TARNAME "supertuxkart"
| #define PACKAGE_VERSION "SVN"
| #define PACKAGE_STRING "supertuxkart SVN"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "supertuxkart"
| #define VERSION "SVN"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_AL_AL_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <OpenAL/al.h>
configure:5689: result: no
configure:5689: checking OpenAL/al.h presence
configure:5689: g++ -E  conftest.cpp
conftest.cpp:22:23: fatal error: OpenAL/al.h: No such file or directory
compilation terminated.
configure:5689: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "supertuxkart"
| #define PACKAGE_TARNAME "supertuxkart"
| #define PACKAGE_VERSION "SVN"
| #define PACKAGE_STRING "supertuxkart SVN"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "supertuxkart"
| #define VERSION "SVN"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_AL_AL_H 1
| /* end confdefs.h.  */
| #include <OpenAL/al.h>
configure:5689: result: no
configure:5689: checking for OpenAL/al.h
configure:5689: result: no
configure:5720: checking for library containing ov_open
configure:5751: g++ -o conftest  -Wall -DNDEBUG -O2  -I/usr/local/include  -L/usr/local/lib conftest.cpp  >&5
/tmp/cc0ZYuff.o: In function `main':
conftest.cpp:(.text+0x5): undefined reference to `ov_open'
collect2: ld returned 1 exit status
configure:5751: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "supertuxkart"
| #define PACKAGE_TARNAME "supertuxkart"
| #define PACKAGE_VERSION "SVN"
| #define PACKAGE_STRING "supertuxkart SVN"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "supertuxkart"
| #define VERSION "SVN"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_AL_AL_H 1
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char ov_open ();
| int
| main ()
| {
| return ov_open ();
|   ;
|   return 0;
| }
configure:5751: g++ -o conftest  -Wall -DNDEBUG -O2  -I/usr/local/include  -L/usr/local/lib conftest.cpp -lvorbisfile -lvorbis  >&5
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lvorbisfile
collect2: ld returned 1 exit status
configure:5751: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "supertuxkart"
| #define PACKAGE_TARNAME "supertuxkart"
| #define PACKAGE_VERSION "SVN"
| #define PACKAGE_STRING "supertuxkart SVN"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "supertuxkart"
| #define VERSION "SVN"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_AL_AL_H 1
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char ov_open ();
| int
| main ()
| {
| return ov_open ();
|   ;
|   return 0;
| }
configure:5768: result: no
configure:5802: error: cannot find useable Ogg Vorbis installation. You need to install libogg and libvorbis.


Where is my mystake?


Crendgrim
Crendgrim
 
Posts: 227
Joined: 03 May 2011, 21:59

Re: Compiling version for openSUSE 11.3 from SVN - openAL error

Postby hiker » 12 Sep 2010, 13:42

Hi,

Crendgrim {l Wrote}:
checking for library containing alGenBuffers... -lopenal
checking AL/al.h usability... yes
checking AL/al.h presence... yes
checking for AL/al.h... yes
checking OpenAL/al.h usability... no
checking OpenAL/al.h presence... no
checking for OpenAL/al.h... no
checking for library containing ov_open... no
configure: error: cannot find useable Ogg Vorbis installation. You need to install libogg and libvorbis.

The problem is: libogg and libvorbis are installed. So I think the error messages aren't correct. ;)
But that the OpenAL/al.h isn't available .. I can't understand this.

I don't have access to a linux system atm, but I think the message about OpenAL/al.h not being found can be ignored: configure checks for several locations for the al.h, so it found the first one and it should work - why configure then checks for the second one as well I don't know.

Re libogg/vorbis: the error message is that libvorbisfile can not be found. Can you check that this file is indeed installed, and that the linker can find it (potentially add the flag to configure)? Also you probably need the development packages installed - I can provide more details tomorrow.

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

Re: Compiling version for openSUSE 11.3 from SVN - openAL error

Postby Auria » 12 Sep 2010, 14:12

Hi,

like Joerg said, the important part is :

cannot find -lvorbisfile


This does seem to hint that libvorbisfile is not installed, make sure you installed it (libvorbisfile might not come along libvorbis)
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Compiling version for openSUSE 11.3 from SVN - openAL error

Postby Crendgrim » 12 Sep 2010, 15:14

Always these -devel-Packages... :x
Now it's compiling.

I can build it, but I cannot start it (the old version starts)... maybe I should use a prefix or uninstall the old version? I'll try. When I encounter new problems, I'll report. ;)

Thanks for your quick help! :)


Crendgrim
Crendgrim
 
Posts: 227
Joined: 03 May 2011, 21:59

Re: Compiling version for openSUSE 11.3 from SVN - openAL error

Postby xapantu » 12 Sep 2010, 16:08

To launch it, use:
{l Code}: {l Select All Code}
src/supertuxkart
xapantu
 
Posts: 283
Joined: 07 Dec 2009, 17:30

Re: Compiling version for openSUSE 11.3 from SVN - openAL error

Postby Crendgrim » 12 Sep 2010, 16:15

... eh. Thanks.
Now I uninstalled both and I am trying to reinstall the trunk...

Could anyone update the Wiki? There are two ways described (one for Linux / Unix in general and one for Ubuntu) - and the one of Ubuntu links to a missing SVN-Trunk. So I thought that this instruction is outdated...
I really have to think less and try more ... :)


Crendgrim

EDIT:
I compiled successfully. Now I've got a new problem:
src/supertuxkart: symbol lookup error: /usr/lib64/libIrrlicht.so.1.7: undefined symbol: XF86VidModeQueryExtension


I really feel stupid ... but what is to do here? :x
Crendgrim
 
Posts: 227
Joined: 03 May 2011, 21:59

Re: Compiling version for openSUSE 11.3 from SVN - openAL error

Postby Auria » 12 Sep 2010, 17:56

Can you give a link to the bad page?
Indeed we have two documents, one for 0.6, and one for 0.7.


Regarding your linking error, I have no idea, sorry, I guess I'm not enough of a linux guru
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Compiling version for openSUSE 11.3 from SVN - openAL error

Postby Crendgrim » 12 Sep 2010, 18:04

Crendgrim
 
Posts: 227
Joined: 03 May 2011, 21:59

Re: Compiling version for openSUSE 11.3 from SVN - openAL error

Postby KroArtem » 12 Sep 2010, 18:11

Crendgrim, seems like you have an ATI videocard?
KroArtem
 
Posts: 375
Joined: 26 Aug 2010, 19:04

Re: Compiling version for openSUSE 11.3 from SVN - openAL error

Postby Crendgrim » 12 Sep 2010, 19:41

No, a nVidia one. Why?


Crendgrim
Crendgrim
 
Posts: 227
Joined: 03 May 2011, 21:59

Re: Compiling version for openSUSE 11.3 from SVN - openAL error

Postby hiker » 13 Sep 2010, 00:21

Crendgrim {l Wrote}:I compiled successfully. Now I've got a new problem:
src/supertuxkart: symbol lookup error: /usr/lib64/libIrrlicht.so.1.7: undefined symbol: XF86VidModeQueryExtension


Is the flag '-lXxf86vm' used when linking? I think using it should solve your problem, and it should be used if it was found during configure. Unfortunately on some installations this flag is not necessary, so we can't treat it as an error if the lib can not be found :(

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

Re: Compiling version for openSUSE 11.3 from SVN - openAL error

Postby Crendgrim » 13 Sep 2010, 15:09

How can I tell the linker to use this flag?
I tested a lot, but there seemed not to be any reaction... (Yes, I don't have much experience with compiling programs)


Crendgrim
Crendgrim
 
Posts: 227
Joined: 03 May 2011, 21:59

Re: Compiling version for openSUSE 11.3 from SVN - openAL error

Postby Auria » 13 Sep 2010, 16:53

Try something like

./configure LDFLAGS="-lXxf86vm"
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Compiling version for openSUSE 11.3 from SVN - openAL error

Postby hiker » 14 Sep 2010, 00:28

Hi,

the linking command is just the last command executed when you do a 'make', e.g. something like:
{l Code}: {l Select All Code}
g++  -DNDEBUG -O2  -L/usr/local/lib -L/usr/local/lib -o supertuxkart main.o m
...
string_utils.o translation.o vec3.o network.o addons.o zip.o -L//home/joerg/local/irrlicht-1.7_stable//lib/Linux -L//home/joerg/local/irrlicht-1.7_stable//lib -lIrrlicht -lXxf86vm -lfribidi  -Lbullet/src -lbulletdynamics -lbulletcollision -lbulletmath -Lenet -lenet -lGL  -lopenal  -lvorbisfile   -lcurl

As you can see in this case the -lXxf86vm is in the command line (close to the end).

My guess is that this flag is needed because of the way irrlicht is set up, but it is not found when configuring (since it is not found when you try to start stk).

Did you compile irrlicht yourself? If so, could you try running any of the irrlicht demos?

Otherwise can you test if libXxf86vm.so is installed on your system? On Suse it's in /usr/lib64 (/usr/lib on 32-bit), and part of the package xorg-x11-libs.

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

Re: Compiling version for openSUSE 11.3 from SVN - openAL error

Postby Crendgrim » 14 Sep 2010, 14:47

@hiker:
No, I didn't compile Irrlicht myself. I used the pre-built RPM from the Repos.
Thanks for the infos about the linking - I'll keep that in mind :)

@Auria:
Thanks for your help.
I'm re-downloading the files (I tested a lot :D ), but with my connection to the internet, this may take some time ...
If this also fails, I'll despair and wait for the next stable ... ;)


Crendgrim
Crendgrim
 
Posts: 227
Joined: 03 May 2011, 21:59

Re: Compiling version for openSUSE 11.3 from SVN - openAL error

Postby Crendgrim » 14 Sep 2010, 19:43

It works! Thanks for all your help! :)

Great support, great innovations ...
The old graphics looked sometimes a bit ... bad. But the new ones - particularly the Old Mine - are really good. Great job ;)

Only one thing to mention: The enemies are sometimes very, very fast - even at Level "Beginner". There is no chance for a real beginner to win one of the races ;) (and also not for a person who used to play the old game with the worse enemies ... :D )


Crendgrim

EDIT:
After driving a few tracks, the thing I mentioned seems not to be as I said:
On some tracks (like Secret Garden) there are no problems. I can drive there well and quickly.
But on other tracks as Tuxtollway there is the problem that every few seconds the game slows down very much. I don't know whether this is a STK Bug, a problem between Irrlicht and my nVidia-graphic card or a problem with my graphic card driver. I don't think that's the last thing is the problem, because I can drive TORCS with many enemies without laggs.

Just to add, the music often stops while being in the menu:
WARNING: Music not playing when it should be. Source state: 4116


I hope, this could help improving STK ... When I encounter more bugs, I'll report. :)
Crendgrim
 
Posts: 227
Joined: 03 May 2011, 21:59

Re: Compiling version for openSUSE 11.3 from SVN - openAL error

Postby hiker » 16 Sep 2010, 04:48

Crendgrim {l Wrote}:It works! Thanks for all your help! :)

Great support, great innovations ...
The old graphics looked sometimes a bit ... bad. But the new ones - particularly the Old Mine - are really good. Great job ;)

Glad that you like it - a big thanks to the contributing artists here!

Only one thing to mention: The enemies are sometimes very, very fast - even at Level "Beginner". There is no chance for a real beginner to win one of the races ;) (and also not for a person who used to play the old game with the worse enemies ... :D )

Good point, I spent some effort improving the turning of AI karts, which made a bit of a difference, but most likely it's slipstreaming causing a 'problem' - since AIs mostly follow the same drivelines, it's much easier for them to get a slipstream bonus. This will be tweaked after the alpha release (and before a rc), but thanks to reminding us of the beginner AIs.

After driving a few tracks, the thing I mentioned seems not to be as I said:
On some tracks (like Secret Garden) there are no problems. I can drive there well and quickly.
But on other tracks as Tuxtollway there is the problem that every few seconds the game slows down very much.

We haven't done much in terms of performance improvements (and I am not sure how much time we will have for that before a release). Usually the problem is just the number of karts: if you have many karts ahead of you, the performance will be rather bad. So this could explain what you are seeing.
I don't know whether this is a STK Bug, a problem between Irrlicht and my nVidia-graphic card or a problem with my graphic card driver. I don't think that's the last thing is the problem, because I can drive TORCS with many enemies without laggs.

Just to add, the music often stops while being in the menu:
WARNING: Music not playing when it should be. Source state: 4116


I assume that this is usually caused by performance problems :( Have a look at the frame rate (press f12 in game, but atm it might need a few times, since it depends how long you press I think). Esp. if you compiled your own irrlicht version, make sure you use
{l Code}: {l Select All Code}
NDEBUG=1 ./make ...

to compile, otherwise not all optimisations will be done. Also configure STK with --enable-optimization (and perhaps even setting CXXFLAGS to -O3).

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

cron