Strange OpenAL error

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).

Strange OpenAL error

Postby STEVE555 » Tue Mar 27, 2012 4:44 am

Hi all,
I've noticed something odd about how Vegastrike detects OpenAL. I run the ./configure script with these options:

./configure --prefix=/usr --bindir=/usr/bin --libdir=/usr/lib --includedir=/usr/include --enable-permissive --enable-wall --with-python=2.7 --with-boost=system --enable-stencil-buffer --enable-nvidia-cg --with-openal-libs=/usr/local/lib --with-al-inc=/usr/local/include --with-boost=system

I've just recently downloaded the git version of OpenAL,and installed the libraries into the /usr/local folder.

When I run ./configure, I get this error during configuration:

Code: Select all
checking for jpeglib.h... yes
checking for openal library... yes
checking for AL/al.h... yes
checking for al.h... yes
checking AL/alext.h usability... no
checking AL/alext.h presence... yes
configure: WARNING: AL/alext.h: present but cannot be compiled
configure: WARNING: AL/alext.h:     check for missing prerequisite headers?
configure: WARNING: AL/alext.h: see the Autoconf documentation
configure: WARNING: AL/alext.h:     section "Present But Cannot Be Compiled"
configure: WARNING: AL/alext.h: proceeding with the compiler's result
checking for AL/alext.h... no
Configuring with OpenAL support!
checking for vorbis library... yes
checking for vorbis header... yes
found VORBIS header: Enabling ingame ogg support::  -DHAVE_SDL=1 -DSDL_WINDOWING=1      -DHAVE_AL=1 -I/usr/local/include  -DHAVE_OGG
No Crypto++ support


I guess I could ignore the error,as Vegastrike does build fine,but recently after my last compile, I wasn't getting any incedental music playing. I was only getting the sounds from Jump Gates,pilot communication,and my weapons.

Regards,
Steve555
My Box:
Motherboard: Asus Sabertooth 990FX
Processor:AMD Athlon(tm) II X3 460 Processor
RAM:4 Gb
Graphics Card:ASUS GTX 560 DirectCU 1Gb RAM
Hardrive:Seagate Barracuda ST31000524AS 1TB 7200 RPM 32MB Cache SATA 6.0Gb/s 3.5"
Soundcard:Realtek
STEVE555
Hunter
Hunter
 
Posts: 83
Topics: 20
Joined: Tue Jul 10, 2007 7:21 pm

Share On:

Share on Facebook Facebook Share on Twitter Twitter Share on Digg Digg

Re: Strange OpenAL error

Postby CLoneWolf » Tue Mar 27, 2012 6:35 am

What is your sound option set to in vssetup?
Try "All Linux Sound" if it's not already selected, and see if anything changes.
CLoneWolf
ISO Party Member
ISO Party Member
 
Posts: 442
Topics: 9
Joined: Thu May 01, 2008 10:14 am

Re: Strange OpenAL error

Postby TBeholder » Tue Mar 27, 2012 8:01 am

CLoneWolf wrote:What is your sound option set to in vssetup?
What vssetup? it's about compiling.
"Two Eyes Good, Eleven Eyes Better." -Michele Carter
User avatar
TBeholder
Elite Venturer
Elite Venturer
 
Posts: 747
Topics: 38
Joined: Fri Apr 14, 2006 7:40 pm
Location: chthonic safety

Re: Strange OpenAL error

Postby klauss » Tue Mar 27, 2012 9:19 am

TBeholder wrote:
CLoneWolf wrote:What is your sound option set to in vssetup?
What vssetup? it's about compiling.


If you have sounds you should have music too, except if you disabled it in vssetup. That's why he's asking.

In any case, we would need the config.log to find exactly why the compilation test failed with alext.h

In another note, cg is completely deprecated, it's been replaced by glsl.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: Strange OpenAL error

Postby STEVE555 » Tue Mar 27, 2012 11:47 am

Hi there Klauss,
I've tried "All Linux Sound" in ./vssetup. Sadly that didn't solve the problem I still can't hear the music.
My config.log is uploaded to this post.

Regards,
Steve555
Attachments
config.log
(172.98 KiB) Downloaded 115 times
My Box:
Motherboard: Asus Sabertooth 990FX
Processor:AMD Athlon(tm) II X3 460 Processor
RAM:4 Gb
Graphics Card:ASUS GTX 560 DirectCU 1Gb RAM
Hardrive:Seagate Barracuda ST31000524AS 1TB 7200 RPM 32MB Cache SATA 6.0Gb/s 3.5"
Soundcard:Realtek
STEVE555
Hunter
Hunter
 
Posts: 83
Topics: 20
Joined: Tue Jul 10, 2007 7:21 pm

Re: Strange OpenAL error

Postby klauss » Tue Mar 27, 2012 12:18 pm

I think the problem is it's not including AL/al.h before alext.h
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: Strange OpenAL error

Postby stephane » Sat Apr 07, 2012 4:47 pm

Hi,

The good news is that one can fix this alext.h compilation error (when running configure) by manually editing the file and adding these 2 lines:
#include</usr/local/include/AL/al.h>
#include</usr/local/include/AL/alc.h>
just before the "#include <stddef.h>" line.

The bad news is that I still get no music in game ("All Sounds" selected, Vorbis/ogg files support detected, ogg files present).

Cheers,
- Stéphane
stephane
Explorer
Explorer
 
Posts: 10
Topics: 1
Joined: Sat Dec 29, 2007 7:10 pm

Re: Strange OpenAL error

Postby loki1950 » Sat Apr 07, 2012 6:43 pm

Hi right back stephane:
Could you post your config log and the output from the compile you may have missed something,an other set of eyes should pick it out of the noise :shock: And BTW how do you like all the new eye candy we have been adding lately.

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 18/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and DELL E6400 4GB ram/100 GB HD Mint 17.3 6
User avatar
loki1950
The Shepherd
 
Posts: 5723
Topics: 51
Joined: Fri May 13, 2005 1:37 pm
Location: Ottawa

Re: Strange OpenAL error

Postby pheonixstorm » Sat Apr 07, 2012 9:48 pm

Has there been any bugs filed lately that match this with openal?
Because of YOU Arbiter, MY kids? can't get enough gas. OR NIPPLE! How does that mkae you feeeel? ~ Halo
User avatar
pheonixstorm
Elite
Elite
 
Posts: 1567
Topics: 113
Joined: Mon Jan 25, 2010 7:03 pm

Re: Strange OpenAL error

Postby normal_user_uli » Sun Apr 08, 2012 9:08 am

Hello all,

vegastrike SVN (compiled under opensuse 12.1 and 11.4) and both versions i downloaded from repositories (OpenSUSE 12.1 and 11.4 (http://download.opensuse.org/repositori ... nSUSE_12.1 // 11.4 ) start without music, only sound.
for testing i installed a old version vegastrike 0.5.0 (rar-archive), the game plays all music...; privateer plays all music too.
also i tested the repository version of vegastrike on my laptop (openSUSE_12.1): no music.

regards
Uli
normal_user_uli
Insys Pilot
Insys Pilot
 
Posts: 2
Joined: Sun Apr 08, 2012 8:38 am

Re: Strange OpenAL error

Postby stephane » Sun Apr 08, 2012 1:38 pm

Hi,

I've attached my configure log.

I'm on Mandriva 2011, and I've been compiling Vegastrike from the svn repository as well as the latest stable release downloaded from the website.
I've been trying to get music for a few days now, but I only get sounds.

When running the old Vegastrike 0.5.0 binary (installed from the Mandriva repository) and using the svn 0.5.1 data directory (-D option), I get music, so the data directory looks good. I'm not sure if the issue is openal actually. Now that I solved the configure error for alext.h, I still have no music.

Cheers,
- Stéphane
Attachments
vegastrike.configure.txt
./configure --prefix=/home/stephane/apps/vegastrike --enable-release --with-boost=system
(12.49 KiB) Downloaded 119 times
stephane
Explorer
Explorer
 
Posts: 10
Topics: 1
Joined: Sat Dec 29, 2007 7:10 pm

Re: Strange OpenAL error

Postby pheonixstorm » Sun Apr 08, 2012 3:51 pm

You might want to try a source pull from an earlier revision and see if it works or not. Start at 13332 for source and see if its the same. It's possible that this may not be related to the VS source code but best place to start is going back a few revisions in trunk first (source only). Also check and post versions for OpenAL, libogg, libvorbis, and ffmpeg (does ffmpeg handle any sounds or just video?). We should find a bug somewhere.

STEVE can you run back a few versions of libogg
stephane can you run back libvorbis
normal_user_uli can you do the same for openAL

I hope by working having each of you work seperatly we can find and fix the error faster.

klauss, have you reproduced this bug?
Because of YOU Arbiter, MY kids? can't get enough gas. OR NIPPLE! How does that mkae you feeeel? ~ Halo
User avatar
pheonixstorm
Elite
Elite
 
Posts: 1567
Topics: 113
Joined: Mon Jan 25, 2010 7:03 pm

Re: Strange OpenAL error

Postby loki1950 » Sun Apr 08, 2012 5:52 pm

Bit of a reminder pheonixstorm that klauss mentioned of Friday that he would out of contact till maybe Tuesday so we are on our own till then. And re ffmpeg IIRC klauss did mention way back that he was using some of it's functions as helpers for streaming so it may well be involved in this issue.

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 18/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and DELL E6400 4GB ram/100 GB HD Mint 17.3 6
User avatar
loki1950
The Shepherd
 
Posts: 5723
Topics: 51
Joined: Fri May 13, 2005 1:37 pm
Location: Ottawa

Re: Strange OpenAL error

Postby pheonixstorm » Sun Apr 08, 2012 8:04 pm

didn't see that.. so thats why I haven't seen him around :lol:

Actually I don't think ffmpeg has much to do with audio as the windows build does not require it and has no music issues.
Because of YOU Arbiter, MY kids? can't get enough gas. OR NIPPLE! How does that mkae you feeeel? ~ Halo
User avatar
pheonixstorm
Elite
Elite
 
Posts: 1567
Topics: 113
Joined: Mon Jan 25, 2010 7:03 pm

Re: Strange OpenAL error

Postby normal_user_uli » Mon Apr 09, 2012 7:32 am

hello all,

tried out to compile the earlier revisions started by 13332. This is the last version with music and sound playing for me. 13333 and others don´t play music. problem during compiling was the boost directory and the patch boost_gcc44.patch. i copied them from the latest cvn into the vegastrike directory. i copied the lastest svn data directory too. For compiling i used the ./bootstrap-sh ./configure and make. No parameters.

versions:
OpenAL: openal-soft 1.13-9.2 (OpenSUSE 12.1) libogg: 1.2.2-8.1.2 libvorbis: 1.3.2-12.3.1 ffmpeg: 0.10.2-2.1

regards
Uli
normal_user_uli
Insys Pilot
Insys Pilot
 
Posts: 2
Joined: Sun Apr 08, 2012 8:38 am

Re: Strange OpenAL error

Postby klauss » Mon Apr 09, 2012 12:45 pm

normal_user_uli wrote:Hello all,

vegastrike SVN (compiled under opensuse 12.1 and 11.4) and both versions i downloaded from repositories (OpenSUSE 12.1 and 11.4 (http://download.opensuse.org/repositori ... nSUSE_12.1 // 11.4 ) start without music, only sound.
for testing i installed a old version vegastrike 0.5.0 (rar-archive), the game plays all music...; privateer plays all music too.
also i tested the repository version of vegastrike on my laptop (openSUSE_12.1): no music.

regards
Uli


I develop and test in 11.4 and it runs with music. It's weird, I bet there must be something missing in the BuildRequires that fails to properly install OpenAL during the build in OBS.

I will test when I get back home, but please do file a bug report with all the details or we'll forget - forum posts get swallowed into oblivion after a while.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: Strange OpenAL error

Postby klauss » Mon Apr 09, 2012 12:50 pm

pheonixstorm wrote:didn't see that.. so thats why I haven't seen him around :lol:

Actually I don't think ffmpeg has much to do with audio as the windows build does not require it and has no music issues.


ffmpeg is used to parse all formats except ogg, for which we use libvorbis. Since all assets are ogg, ffmpeg should not be required except if you try to embed a video (we have no built-in support for any video format without ffmpeg).

I've been pondering, because openSUSE doesn't allow ffmpeg in its distribution, to add libtheora as a video decoding module and thus be able to support, ffmpeg-less, at least one complete movie format (theora+vorbis with ogg container).

In any case, music could get hit if somehow we build without libvorbis, but that doesn't seem to be the case if the OP still has sounds. Some sounds are uncompressed WAV, though, so it's still a possibility. I'll check OBS logs to see if it's detecting the libraries correctly.

PS: Can we get the console output for a run with --debug=3 ? That should shed some light into the issue.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: Strange OpenAL error

Postby stephane » Mon Apr 09, 2012 1:20 pm

Hi,

The problem seems to be related to a missing line in music.cpp.
In revision 13332, the music files were loaded if not already found in cache.

Code: Select all
            if (foundcache) {
                *me->music_load_info = wherecache->second;
                me->freeWav = false;
            } else if ( !AUDLoadSoundFile( songname, me->music_load_info, true ) ) {
                //fprintf(stderr, "Failed to load song %s\n", songname);
            }


In revision 13333 and newer, the music files aren't loaded anymore when not found in cache:

Code: Select all
            if (foundcache) {
                *me->music_load_info = wherecache->second;
                me->freeWav = false;
            }


I've checked out the latest svn version, and just added the missing line "} else if ( !AUDLoadSoundFile...", and I've got music again.
Maybe this AUDLoadSoundFile statement was removed because the music files were supposed to be loaded somewhere else and were expected to be found in cache?

Cheers,
- Stéphane

----------
stephane
Explorer
Explorer
 
Posts: 10
Topics: 1
Joined: Sat Dec 29, 2007 7:10 pm

Re: Strange OpenAL error

Postby pheonixstorm » Mon Apr 09, 2012 1:29 pm

No, my fault. I took that out due to the commented out section. I tested the compile and game after and it didn't *appear* to have any impact (still plays music in windows) but seems to go wonky in linux.
Because of YOU Arbiter, MY kids? can't get enough gas. OR NIPPLE! How does that mkae you feeeel? ~ Halo
User avatar
pheonixstorm
Elite
Elite
 
Posts: 1567
Topics: 113
Joined: Mon Jan 25, 2010 7:03 pm

Re: Strange OpenAL error

Postby stephane » Mon Apr 09, 2012 1:43 pm

Isn't Windows using the soundserver component? I'm just asking that because I can see in the code that if it would be using soundserver, the line that you removed wouldn't be used at all. It could explain why Linux is affected while Windows is not.

Anyway, what's the next step to get this fixed?
Should I file a bug report? Or would I need to upload the fixed music.cpp with svn somehow?

- Stéphane
stephane
Explorer
Explorer
 
Posts: 10
Topics: 1
Joined: Sat Dec 29, 2007 7:10 pm

Re: Strange OpenAL error

Postby loki1950 » Mon Apr 09, 2012 1:52 pm

Windows no longer needs soundsever stephane hasn't for about two years :wink: After a mighty DOH! pheonixstorm will likely put the offending lines back into the repo :D

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 18/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and DELL E6400 4GB ram/100 GB HD Mint 17.3 6
User avatar
loki1950
The Shepherd
 
Posts: 5723
Topics: 51
Joined: Fri May 13, 2005 1:37 pm
Location: Ottawa

Re: Strange OpenAL error

Postby pheonixstorm » Mon Apr 09, 2012 1:59 pm

soumdserver is no longer used for linux or windows. I can put the fix up in svn, not sure about the build systems. klauss will need to make the changes there.
Because of YOU Arbiter, MY kids? can't get enough gas. OR NIPPLE! How does that mkae you feeeel? ~ Halo
User avatar
pheonixstorm
Elite
Elite
 
Posts: 1567
Topics: 113
Joined: Mon Jan 25, 2010 7:03 pm

Re: Strange OpenAL error

Postby stephane » Mon Apr 09, 2012 2:11 pm

Ok, ok, I admit it. Dinosaurs weren't quite extinct when I started playing Vegastrike on my abacus-powered clay tablet and soundserver was still a required component running as a monothreaded posix process on a dedicated didgeridoo.

Anyway, thx for looking into this issue :-)
stephane
Explorer
Explorer
 
Posts: 10
Topics: 1
Joined: Sat Dec 29, 2007 7:10 pm

Re: Strange OpenAL error

Postby klauss » Mon Apr 09, 2012 4:23 pm

pheonixstorm wrote:soumdserver is no longer used for linux or windows. I can put the fix up in svn, not sure about the build systems. klauss will need to make the changes there.


Yeah, as soon as you commit the fix, I'll patch the build system and everyone will be able to update quite easily. I'll have to update the tarball in SF too, though, but I'd like to wait a bit until we gather a few more fixes for that (ie: perhaps we get to fix those segfaults fglrx was getting).
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: Strange OpenAL error

Postby pheonixstorm » Tue Apr 10, 2012 12:08 am

uploaded the corrected file. Makes me wonder if there are any other platform specific bugs that didn't show up in windows but have shown up in linux.
Because of YOU Arbiter, MY kids? can't get enough gas. OR NIPPLE! How does that mkae you feeeel? ~ Halo
User avatar
pheonixstorm
Elite
Elite
 
Posts: 1567
Topics: 113
Joined: Mon Jan 25, 2010 7:03 pm


Next

Return to Compiling Problems [paste config.log]

Who is online

Users browsing this forum: No registered users and 3 guests

cron