No sound Ubuntu11 64-bit bzflag 2.4 install
- range-target
- Private First Class
- Posts: 21
- Joined: Sat Dec 24, 2005 2:54 am
- Location: Houston, Republic of Texas (formally of the USA)
No sound Ubuntu11 64-bit bzflag 2.4 install
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.
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.
I drive, I shoot, I jump, I die. Pretty simple stuff...
Will admin for food! May Tux bless you.
Will admin for food! May Tux bless you.
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
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)
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)
JeffM
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
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)"
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
In Synaptic, the proper package name for what you should have installed is:
libsdl1.2-dev
libsdl1.2-dev
And the lesson for tonight is:
Never underestimate the ability of a newb to expect instant success and cry "cheat!" when they don't get it. Don't hate the newb, just give them plenty of learning opportunities.
Never underestimate the ability of a newb to expect instant success and cry "cheat!" when they don't get it. Don't hate the newb, just give them plenty of learning opportunities.
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
You'd also need libsdl-sound1.2-dev.
Both of these are documented in the README.Linux file that we bundle with the source.
Both of these are documented in the README.Linux file that we bundle with the source.
- range-target
- Private First Class
- Posts: 21
- Joined: Sat Dec 24, 2005 2:54 am
- Location: Houston, Republic of Texas (formally of the USA)
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
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.
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.
I drive, I shoot, I jump, I die. Pretty simple stuff...
Will admin for food! May Tux bless you.
Will admin for food! May Tux bless you.
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
This is not an error, I get the same here. But this different and might give you a clue:configure:19650: gcc -o conftest -g -O2 -framework SDL conftest.c -lGLU -lGL -lm -lpthread >&5
gcc: SDL: No such file or directory
You need to install the libsdl1.2-dev package.| #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
[Edit] What's the output of: dpkg -l libsdl1.2-dev
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
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.
- range-target
- Private First Class
- Posts: 21
- Joined: Sat Dec 24, 2005 2:54 am
- Location: Houston, Republic of Texas (formally of the USA)
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
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.
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.
I drive, I shoot, I jump, I die. Pretty simple stuff...
Will admin for food! May Tux bless you.
Will admin for food! May Tux bless you.
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
Does the client say it is going to be built with SDL at the end of the configure script?
-
- Private First Class
- Posts: 220
- Joined: Tue Jul 26, 2005 10:32 pm
- Location: Gainesville Florida
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
try
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
Note the libsdl-sound1.2-dev
Code: Select all
dpkg -l | grep -i sdl | awk '{print $2}'
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
- range-target
- Private First Class
- Posts: 21
- Joined: Sat Dec 24, 2005 2:54 am
- Location: Houston, Republic of Texas (formally of the USA)
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
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.
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.
I drive, I shoot, I jump, I die. Pretty simple stuff...
Will admin for food! May Tux bless you.
Will admin for food! May Tux bless you.
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
Better to just upload the entire config.log file.
And make sure you have libsdl-sound1.2-dev installed.
And make sure you have libsdl-sound1.2-dev installed.
- range-target
- Private First Class
- Posts: 21
- Joined: Sat Dec 24, 2005 2:54 am
- Location: Houston, Republic of Texas (formally of the USA)
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
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.
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.
I drive, I shoot, I jump, I die. Pretty simple stuff...
Will admin for food! May Tux bless you.
Will admin for food! May Tux bless you.
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
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.
Also, you do NOT have libsdl-sound1.2-dev installed, which is the problem.
- range-target
- Private First Class
- Posts: 21
- Joined: Sat Dec 24, 2005 2:54 am
- Location: Houston, Republic of Texas (formally of the USA)
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
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]
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]
- Attachments
-
- config.log
- (72.54 KiB) Downloaded 185 times
I drive, I shoot, I jump, I die. Pretty simple stuff...
Will admin for food! May Tux bless you.
Will admin for food! May Tux bless you.
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
If you run 'sdl-config' from the terminal, does it appear to be a valid command?
-
- Private First Class
- Posts: 220
- Joined: Tue Jul 26, 2005 10:32 pm
- Location: Gainesville Florida
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
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:
it is commented out meaning it's set to default value of 10.
Code: Select all
#set volume 10
- ahs3
- Private First Class
- Posts: 327
- Joined: Sun Mar 04, 2007 8:33 pm
- Location: Press '/' to search
- Contact:
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
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
Or try getting rid of libsdl1.2debian-all. If you are using pulseaudio, BZFlag might be trying to output to the wrong sound system.
- range-target
- Private First Class
- Posts: 21
- Joined: Sat Dec 24, 2005 2:54 am
- Location: Houston, Republic of Texas (formally of the USA)
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
yes, the sdl-config is a valid command.
I will try the rebuild after removing libsdl1.2debian-all.
I will try the rebuild after removing libsdl1.2debian-all.
I drive, I shoot, I jump, I die. Pretty simple stuff...
Will admin for food! May Tux bless you.
Will admin for food! May Tux bless you.
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
Shouldn't even have to rebuild as that's just a runtime package.
-
- Private First Class
- Posts: 220
- Joined: Tue Jul 26, 2005 10:32 pm
- Location: Gainesville Florida
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
You might have a look at this. It may provide some useful debugging info.
http://www.jeffsplace.net/node/12
http://www.jeffsplace.net/node/12
- range-target
- Private First Class
- Posts: 21
- Joined: Sat Dec 24, 2005 2:54 am
- Location: Houston, Republic of Texas (formally of the USA)
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
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.
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.
I drive, I shoot, I jump, I die. Pretty simple stuff...
Will admin for food! May Tux bless you.
Will admin for food! May Tux bless you.
Re: No sound Ubuntu11 64-bit bzflag 2.4 install
~/.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.
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.