No sound Ubuntu11 64-bit bzflag 2.4 install

Help with Setup, Hardware, Performance or other Issues...Or just pimp your rig.
User avatar
range-target
Private First Class
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

Post by range-target » Mon Aug 01, 2011 2:42 am

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.
I drive, I shoot, I jump, I die. Pretty simple stuff...

Will admin for food! May Tux bless you.

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5187
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Post by JeffM » Mon Aug 01, 2011 3:55 am

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)
ImageJeffM

User avatar
blast
General
General
Posts: 4784
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Post by blast » Mon Aug 01, 2011 9:26 am

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)"
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

Avatar
Private First Class
Private First Class
Posts: 132
Joined: Sun Sep 18, 2005 9:28 pm

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Post by Avatar » Mon Aug 01, 2011 10:34 pm

In Synaptic, the proper package name for what you should have installed is:

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. ;)

User avatar
blast
General
General
Posts: 4784
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Post by blast » Mon Aug 01, 2011 11:13 pm

You'd also need libsdl-sound1.2-dev.

Both of these are documented in the README.Linux file that we bundle with the source.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
range-target
Private First Class
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

Post by range-target » Sun Aug 07, 2011 7:00 pm

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.
I drive, I shoot, I jump, I die. Pretty simple stuff...

Will admin for food! May Tux bless you.

User avatar
all
Private First Class
Private First Class
Posts: 7
Joined: Sun Jul 12, 2009 6:12 am
Location: Milky Way

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Post by all » Mon Aug 08, 2011 1:37 am

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

User avatar
blast
General
General
Posts: 4784
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Post by blast » Mon Aug 08, 2011 2:16 am

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.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
range-target
Private First Class
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

Post by range-target » Tue Aug 09, 2011 2:18 am

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.
I drive, I shoot, I jump, I die. Pretty simple stuff...

Will admin for food! May Tux bless you.

User avatar
blast
General
General
Posts: 4784
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Post by blast » Tue Aug 09, 2011 10:20 am

Does the client say it is going to be built with SDL at the end of the configure script?
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

anomaly
Private First Class
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

Post by anomaly » Tue Aug 09, 2011 9:42 pm

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

User avatar
range-target
Private First Class
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

Post by range-target » Wed Aug 10, 2011 12:53 am

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.
I drive, I shoot, I jump, I die. Pretty simple stuff...

Will admin for food! May Tux bless you.

User avatar
blast
General
General
Posts: 4784
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Post by blast » Wed Aug 10, 2011 1:43 am

Better to just upload the entire config.log file.

And make sure you have libsdl-sound1.2-dev installed.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
range-target
Private First Class
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

Post by range-target » Thu Aug 11, 2011 1:20 am

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.
I drive, I shoot, I jump, I die. Pretty simple stuff...

Will admin for food! May Tux bless you.

User avatar
blast
General
General
Posts: 4784
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Post by blast » Thu Aug 11, 2011 2:04 am

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.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
range-target
Private First Class
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

Post by range-target » Thu Aug 11, 2011 2:09 am

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]
Attachments
config.log
(72.54 KiB) Downloaded 112 times
I drive, I shoot, I jump, I die. Pretty simple stuff...

Will admin for food! May Tux bless you.

User avatar
blast
General
General
Posts: 4784
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Post by blast » Thu Aug 11, 2011 9:49 am

If you run 'sdl-config' from the terminal, does it appear to be a valid command?
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

anomaly
Private First Class
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

Post by anomaly » Thu Aug 11, 2011 8:14 pm

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.

User avatar
ahs3
Private First Class
Private First Class
Posts: 315
Joined: Sun Mar 04, 2007 8:33 pm
Location: Press '/' to search
Contact:

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Post by ahs3 » Thu Aug 11, 2011 11:05 pm

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.

User avatar
blast
General
General
Posts: 4784
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Post by blast » Fri Aug 12, 2011 12:12 am

Or try getting rid of libsdl1.2debian-all. If you are using pulseaudio, BZFlag might be trying to output to the wrong sound system.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
range-target
Private First Class
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

Post by range-target » Fri Aug 12, 2011 12:58 am

yes, the sdl-config is a valid command.

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.

User avatar
blast
General
General
Posts: 4784
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Post by blast » Fri Aug 12, 2011 1:44 am

Shouldn't even have to rebuild as that's just a runtime package.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

anomaly
Private First Class
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

Post by anomaly » Fri Aug 12, 2011 11:52 am

You might have a look at this. It may provide some useful debugging info.
http://www.jeffsplace.net/node/12

User avatar
range-target
Private First Class
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

Post by range-target » Sat Aug 13, 2011 1:49 am

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.
I drive, I shoot, I jump, I die. Pretty simple stuff...

Will admin for food! May Tux bless you.

User avatar
blast
General
General
Posts: 4784
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: No sound Ubuntu11 64-bit bzflag 2.4 install

Post by blast » Sat Aug 13, 2011 5:54 am

~/.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.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

Post Reply