No sound if from source code
No sound if from source code
I downloaded and Compiled the source code but one issue. No sound at all.
At Settings -> Audio Settings, it reports back for sound volume Unavailable.
Any ideas?
Also please tell me if you need the output from the commands that is/are used to make from source code.
Please and thank you.
At Settings -> Audio Settings, it reports back for sound volume Unavailable.
Any ideas?
Also please tell me if you need the output from the commands that is/are used to make from source code.
Please and thank you.
Re: No sound if from source code
Does the version string show -SDL or -SDL2 at the end? What operating system is this?
Re: No sound if from source code
#1
Because all it shows is
---
#3 When I issued the command /usr/games/bzflag -version
it reported back
While I know how to get the version, how do I get that string to show?
Because all it shows is
#2BZFlag client 2.4.18.20200423-MAINT-linux-gnu (protocol 0221) http://BZFlag.org/
Copyright (c) 1993-2018 Tim Riker
Last of the LTS that support 32bit on Lubuntu. So that is Lubuntu 18.04.4 LTS.
---
#3 When I issued the command /usr/games/bzflag -version
it reported back
but that is not from source code and the sounds works. That is from using Synaptic Package Manager or for sudo apt-get bzflag for my OS.BZFlag client 2.4.12.20171104-MAINT-linux-gnu-SDL (protocol 0221) http://BZFlag.org/
Copyright (c) 1993-2017 Tim Riker
Re: No sound if from source code
When you open up the client, the top row in the message box should start with a red text saying:
The line should end with either SDL or SDL2.
Code: Select all
BZFlag version: ...
Re: No sound if from source code
Because the version string doesn't end with -SDL or -SDL2, that means you're using native Linux platform code. This hasn't been tested in years and likely doesn't work well. Install the SDL2 development files and re-run configure and make.
I'd also suggest purging the installed bzflag packages so you don't have the old version lying around. BZFlag version 2.4.20 is also out now.
Code: Select all
sudo apt-get install automake autoconf g++ libtool make libc-ares-dev libcurl3-dev libgl1-mesa-dev libglu1-mesa-dev libncurses-dev libsdl2-dev zlib1g-dev libglew-dev
./configure
make
Re: No sound if from source code
I tried that but now
I do not want to issue make install at this time, since it is now doing this.
Code: Select all
user@pc-name:~/Downloads/bzflag/bzflag-2.4.20/src/bzflag$ /home/user/Downloads/bzflag/bzflag-2.4.20/src/bzflag/bzflag
dbus[32505]: arguments to dbus_message_new_method_call() were incorrect, assertion "path != NULL" failed in file ../../../dbus/dbus-message.c line 1362.
This is normally a bug in some application using the D-Bus library.
D-Bus not built with -rdynamic so unable to print a backtrace
Aborted (core dumped)
user@pc-name:~/Downloads/bzflag/bzflag-2.4.20/src/bzflag$ ./bzflag
dbus[32644]: arguments to dbus_message_new_method_call() were incorrect, assertion "path != NULL" failed in file ../../../dbus/dbus-message.c line 1362.
This is normally a bug in some application using the D-Bus library.
D-Bus not built with -rdynamic so unable to print a backtrace
Aborted (core dumped)
user@pc-name:~/Downloads/bzflag/bzflag-2.4.20/src/bzflag$
Re: No sound if from source code
I've never seen that error before. We don't call any dbus functions, so that may be a bug in whatever version of SDL2 is packaged with your Lubuntu. Also, if you're running the game from the source clone, you should run src/bzflag/bzflag from the root of the source, not ./bzflag from the src/bzflag directory.
Re: No sound if from source code
Ok.
#1 How do I know it is a bug with the version of SDL2 is packaged with my Lubuntu?
#2 I tried to run bzflag with src/bzflag/bzflag from the root source and I got the same result.
#1 How do I know it is a bug with the version of SDL2 is packaged with my Lubuntu?
#2 I tried to run bzflag with src/bzflag/bzflag from the root source and I got the same result.
Re: No sound if from source code
You could try building with SDL1 to see if it works better.
Code: Select all
sudo apt-get install libsdl1.2-dev libsdl-sound1.2-dev
make clean
./configure --with-SDL=1
make
Re: No sound if from source code
That worked, thank you.