Page 1 of 2

No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Mon Aug 01, 2011 2:42 am
by range-target
I am running ubuntu 11 64-bit (2.6.38-10-generic) and I seem to get a clean ./configure of bzflag 2.4 source, and a clean make/make install.

configure:24510: result: Build ares ........: yes
configure:24512: result: Build curl ........: yes
configure:24514: result: Build glew ........: yes
configure:24516: result: Build regex .......: no (using system)
configure:24518: result: Build zlib ........: yes
configure:24520: result:
configure:24522: result: BZFlag client .....: yes
configure:24524: result: BZFlag server .....: yes (with plugins)
configure:24526: result: BZAdmin client ....: yes

I do, however, see the following in the config.log file:

configure:18020: checking for dsound.h
configure:18020: result: no

also:

ac_cv_header_dsound_h=no


And, when the client launches, there is no sound and the sound setting shows unavailable. I also tried a new build after changing the libraries suggested in the README.Linux: "If you're using Debian, you may also have positive results replacing libsdl1.2debian-alsa with libsdl1.2debian-all via apt." No change.
I suspect the dsound.h header file (or lack of it?) is related to my issue? If so, any suggestions?
Thanks.

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Mon Aug 01, 2011 3:55 am
by JeffM
dsound is direct x sound for windows, so I hope you don't have it.

Sound on linux is handled via SDL. The most common causes of not having sound are 1) building with out SDL ( you need the sdl dev package) or 2) having the wrong SDL for your sound system ( you will see multiple SDL packages, for alsa, esd, etc.. pick the right one for your sound setup)

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Mon Aug 01, 2011 9:26 am
by blast
If you don't have the SDL development libs that we tell you to install in README.Linux, then you will only get sound via OSS (or OSS emulation).

Note: If you had the proper SDL development libraries, it would say "Building client: yes (with SDL)"

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Mon Aug 01, 2011 10:34 pm
by Avatar
In Synaptic, the proper package name for what you should have installed is:

libsdl1.2-dev

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Mon Aug 01, 2011 11:13 pm
by blast
You'd also need libsdl-sound1.2-dev.

Both of these are documented in the README.Linux file that we bundle with the source.

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Sun Aug 07, 2011 7:00 pm
by range-target
Thanks for the feedback. And, per the README.Linux file, I do have the following libraries installed:
Debian & Ubuntu:

libgl1-mesa-dev
libglu1-mesa-dev
libsdl1.2-dev
libcurl3-dev
libsdl-sound1.2-dev (may have to add this yourself as well)
Furthermore, I also have the libsdl1.2debian-all packages installed replacing the libsdl1.2debian-alsa library that didn't enable sound either.

Doing a grep SDL against my config.log file, I do see the following:

configure:18020: checking for SDL/SDL.h
configure:19634: checking for SDL framework
configure:19650: gcc -o conftest -g -O2 -framework SDL conftest.c -lGLU -lGL -lm -lpthread >&5
gcc: SDL: No such file or directory
| #include <SDL/SDL_version.h>
configure:19746: checking for SDL - version >= 1.2.10
configure:19920: WARNING: could not find an appropriate SDL version. BZflag will build without SDL
ac_cv_header_SDL_SDL_h=no
ac_cv_path_SDL_CONFIG=no
HAVE_SDL_FALSE=''
HAVE_SDL_TRUE='#'
SDL_CFLAGS=''
SDL_CONFIG='no'
SDL_LIBS=''

So, I would agree that SDL doesn't seem to be getting configured properly for my builds. What makes the connection between SDL and the libsdl*-dev libraries?
Thanks.

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Mon Aug 08, 2011 1:37 am
by all
configure:19650: gcc -o conftest -g -O2 -framework SDL conftest.c -lGLU -lGL -lm -lpthread >&5
gcc: SDL: No such file or directory
This is not an error, I get the same here. But this different and might give you a clue:
| #include <SDL/SDL_version.h>
configure:19746: checking for SDL - version >= 1.2.10
configure:19920: WARNING: could not find an appropriate SDL version. BZflag will build without SDL
You need to install the libsdl1.2-dev package.
[Edit] What's the output of: dpkg -l libsdl1.2-dev

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Mon Aug 08, 2011 2:16 am
by blast
The -framework stuff is an OSX test. This will, of course, fail on Linux since it doesn't use "frameworks" like OSX does. We do multiple tests for SDL, including one that would be successful on a Linux system with the proper dependencies.

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Tue Aug 09, 2011 2:18 am
by range-target
Here is the output of dpkg -l libsdl1.2-dev:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-======================-======================-============================================================
ii libsdl1.2-dev 1.2.14-6.1ubuntu3 Simple DirectMedia Layer development files

Further info -- the output of sudo apt-get install libsdl1.2-dev:
Reading package lists... Done
Building dependency tree
Reading state information... Done
[color=#0040BF]libsdl1.2-dev is already the newest version.[/color]
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

As I stated in the previous posts, all of the recommended libraries show as being installed by apt-get.
Thanks.

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Tue Aug 09, 2011 10:20 am
by blast
Does the client say it is going to be built with SDL at the end of the configure script?

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Tue Aug 09, 2011 9:42 pm
by anomaly
try

Code: Select all

dpkg -l | grep -i sdl | awk '{print $2}'
this will print out all the sdl libs you have installed. if you have all you need, re-configure and try again. This is what I have on Ubuntu 10.04 64bit LTS

Code: Select all

libsdl-gfx1.2-4
libsdl-image1.2
libsdl-image1.2-dev
libsdl-mixer1.2
libsdl-mixer1.2-dev
libsdl-net1.2
libsdl-pango-dev
libsdl-pango1
libsdl-perl
libsdl-sound1.2
libsdl-sound1.2-dev
libsdl-ttf2.0-0
libsdl-ttf2.0-dev
libsdl1.2-dev
libsdl1.2debian
libsdl1.2debian-pulseaudio
Note the libsdl-sound1.2-dev

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Wed Aug 10, 2011 12:53 am
by range-target
Blast,
From my earlier post:
Doing a grep SDL against my config.log file, I do see the following:

configure:18020: checking for SDL/SDL.h
configure:19634: checking for SDL framework
configure:19650: gcc -o conftest -g -O2 -framework SDL conftest.c -lGLU -lGL -lm -lpthread >&5
gcc: SDL: No such file or directory
| #include <SDL/SDL_version.h>
configure:19746: checking for SDL - version >= 1.2.10
configure:19920: WARNING: could not find an appropriate SDL version. BZflag will build without SDL
ac_cv_header_SDL_SDL_h=no
ac_cv_path_SDL_CONFIG=no
HAVE_SDL_FALSE=''
HAVE_SDL_TRUE='#'
SDL_CFLAGS=''
SDL_CONFIG='no'
SDL_LIBS=''


Anomaly,
I will check to see how my installed packages align with what you show, and install any not currently present on my systen and then advise.
Thanks.

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Wed Aug 10, 2011 1:43 am
by blast
Better to just upload the entire config.log file.

And make sure you have libsdl-sound1.2-dev installed.

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Thu Aug 11, 2011 1:20 am
by range-target
Yeah, about that config.log file upload. I must be an idiot or something. I tried attaching the file using the "Upload attachment" tab under the full editor here in the forum. No matter what file name I try to use, it won't allow me to attached the file. I get an "The extension is not allowed." error! Do I need a double decoder ring or something?

Here are the sdl libraries I currently have installed:
gordo@Igor2-Ubuntu11:~$ dpkg -l | grep -i sdl |awk '{print $2}'
libsdl-mixer1.2
libsdl-sound1.2
libsdl1.2-dev
libsdl1.2debian
libsdl1.2debian-all
libsdl1.2debian-pulseaudio
libsmpeg0

Thanks.

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Thu Aug 11, 2011 2:04 am
by blast
It should work now. I added the .log extension to the allowed list.

Also, you do NOT have libsdl-sound1.2-dev installed, which is the problem.

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Thu Aug 11, 2011 2:09 am
by range-target
I have added those additional libraries and now match those recommended by anomaly. completed a new ./configure and make/make install. Sound setting still shows unavailable.

libsdl-gfx1.2-4
libsdl-gfx1.2-dev
libsdl-image1.2
libsdl-image1.2-dev
libsdl-mixer1.2
libsdl-net1.2
libsdl-net1.2-dev
libsdl-pango-dev
libsdl-pango1
libsdl-perl
libsdl-sound1.2
libsdl-sound1.2-dev
libsdl-ttf2.0-0
libsdl-ttf2.0-dev
libsdl1.2-dev
libsdl1.2debian
libsdl1.2debian-all
libsdl1.2debian-pulseaudio
libsmpeg-dev
libsmpeg0

I also figured out that attaching the confog.log file was a permissions thing! It is now attached.
Thanks.[attachment=0]config.log[/attachment]

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Thu Aug 11, 2011 9:49 am
by blast
If you run 'sdl-config' from the terminal, does it appear to be a valid command?

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Thu Aug 11, 2011 8:14 pm
by anomaly
Have you tried deleting your .bzf/config.cfg file? sometimes that helps weird issues. Although in mine the only option for sound is the volume. You could have a look at that file, search for volume and see if it is set to some value. Mine looks like this:

Code: Select all

#set volume 10
it is commented out meaning it's set to default value of 10.

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Thu Aug 11, 2011 11:05 pm
by ahs3
I would look at replacing 'pulseaudio' with 'alsa'. Due to my sound Card (HDA ATI SB) pulseaudio simply does not work for me with bzflag, and a few other things.

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Fri Aug 12, 2011 12:12 am
by blast
Or try getting rid of libsdl1.2debian-all. If you are using pulseaudio, BZFlag might be trying to output to the wrong sound system.

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Fri Aug 12, 2011 12:58 am
by range-target
yes, the sdl-config is a valid command.

I will try the rebuild after removing libsdl1.2debian-all.

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Fri Aug 12, 2011 1:44 am
by blast
Shouldn't even have to rebuild as that's just a runtime package.

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Fri Aug 12, 2011 11:52 am
by anomaly
You might have a look at this. It may provide some useful debugging info.
http://www.jeffsplace.net/node/12

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Sat Aug 13, 2011 1:49 am
by range-target
I removed libsdl1.2debian-all as suggested, no help.

Blast, your statement seems to indicate my problem might be run-time related instead of a problem with the build? btw, where does the .bzf/config.cfg file live? I couldn't find it.
Thanks anomaly for the jeffsplace reference. An item of note here is that the other programs I have work just fine with their sound. So, I don't think I have an inherent audio problem PulseAudio and alsa seem to be playing nice together in the sandbox. Also, as jeff states up front, on his Ubuntu 11.04 system, he no longer has the issues he had with Ubuntu 10.xx. I too am on Ubuntu 11.04.

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Posted: Sat Aug 13, 2011 5:54 am
by blast
~/.bzf/2.4/config.cfg

Note that if you have a 2.0 config, it will copy and upgrade that one when you run 2.4.

Also, here's something to check. Launch the 2.4 client and look at the version string (or run bzflag -version). At the very end, it should have -SDL if it was built using SDL.