Page 1 of 2

The sounds won't work

Posted: Sat Dec 30, 2017 4:26 pm
by milsu
I have reinstalled my Ubuntu 16.04, and installed Freeciv GTK+ 2 version 2.5.3-1, and also installed the sounds from terminal with "sudo apt-get install freeciv-client-gtk freeciv-sound". It worked before, but now when I do this and turn the sounds on, it won't work.

Re: The sounds won't work

Posted: Sat Dec 30, 2017 9:18 pm
by cazfi
Maybe you have 'none' in Game -> Options -> Local Client -> Sound -> Sound Plugin? Change it to 'sdl', save settings, and restart client.

Re: The sounds won't work

Posted: Sun Dec 31, 2017 3:31 pm
by milsu
cazfi wrote:Maybe you have 'none' in Game -> Options -> Local Client -> Sound -> Sound Plugin? Change it to 'sdl', save settings, and restart client.

No, I have changed it to "sdl", but I still have no sound.

Re: The sounds won't work

Posted: Mon Jan 01, 2018 8:36 am
by milsu
Oh, I have found the solution! I have used the "sudo apt-get install freeciv-client-gtk freeciv-sound" code before, but it seems that it does not work anymore. I have found a new one. First "sudo apt update", and then "sudo apt install freeciv-sound-standard". Now I have a sound.

Re: The sounds won't work

Posted: Fri May 18, 2018 11:50 pm
by Steve R.
Ran "sudo apt install freeciv-sound-standard", but still no sound. I suspect that it might have to do with the (absence) of the "sdl" plugin? The "sdl' plugin does not show up as a drop-down option. I have entered "sdl" manually to no effect. If the absence of "sdl" plugin is the problem, how is it installed.

I am running Ubuntu 16.04. I have freeciv version 2.6.0-beta3 installed.

Re: The sounds won't work

Posted: Sat May 19, 2018 2:42 am
by cazfi
Steve R. wrote:I am running Ubuntu 16.04. I have freeciv version 2.6.0-beta3 installed.

Have you compiled it yourself? If not, where you got it?

Re: The sounds won't work

Posted: Sat May 19, 2018 3:22 am
by Steve R.
cazfi wrote:
Steve R. wrote:I am running Ubuntu 16.04. I have freeciv version 2.6.0-beta3 installed.

Have you compiled it yourself? If not, where you got it?


Downloaded from here: http://www.freeciv.org/download.html

Then followed the directions from this website: http://linuxg.net/how-to-install-freeci ... e-systems/

Re: The sounds won't work

Posted: Sat May 19, 2018 8:29 am
by cazfi
Steve R. wrote:
cazfi wrote:Have you compiled it yourself? If not, where you got it?

Then followed the directions from this website: http://linuxg.net/how-to-install-freeci ... e-systems/

...which is about compiling it yourself.

You probably have no libsdl2-mixer development files, so configure decides not to build sdl plugin. Try to install those before running configure.

Code: Select all

apt-get install libsdl2-mixer-dev


Note that S2_6 is the first branch that uses SDL2 mixer, for S2_5 and earlier branches you should install libsdl-mixer1.2-dev.

Re: The sounds won't work

Posted: Sat May 19, 2018 1:24 pm
by Steve R.
Thanks. Ran

Code: Select all

apt-get install libsdl2-mixer-dev

Then re-compiled the program. Just did a quick check and now have sound.

Re: The sounds won't work

Posted: Sun May 20, 2018 9:51 pm
by cazfi
Steve R. wrote:Then followed the directions from this website: http://linuxg.net/how-to-install-freeci ... e-systems/
btw. I don't recommend that way of building and installing, since there's no easy way to uninstall. Even if you are fine having some version of freeciv permanently in your system, this can cause trouble also when "updating". If there are some files in the older version that are not in the newer version, those are left to the system when overwriting stuff with the new version. There has been some cases in the past where such leftover files with old (incompatible with current freeciv installation) file formats have caused problems.
The way I recommend one to do compilations can be seen from viewtopic.php?f=8&t=89944