The sounds won't work

You can get help here if Freeciv doesn't start on your computer, or if you keep getting fatal errors while playing etc.
User avatar
milsu
Posts: 22
Joined: Wed Feb 27, 2013 8:42 am
Location: Belgrade, Serbia

The sounds won't work

Postby milsu » Sat Dec 30, 2017 4:26 pm

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.

cazfi
Elite
Posts: 1710
Joined: Tue Jan 29, 2013 6:54 pm

Re: The sounds won't work

Postby cazfi » Sat Dec 30, 2017 9:18 pm

Maybe you have 'none' in Game -> Options -> Local Client -> Sound -> Sound Plugin? Change it to 'sdl', save settings, and restart client.

User avatar
milsu
Posts: 22
Joined: Wed Feb 27, 2013 8:42 am
Location: Belgrade, Serbia

Re: The sounds won't work

Postby milsu » Sun Dec 31, 2017 3:31 pm

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.

User avatar
milsu
Posts: 22
Joined: Wed Feb 27, 2013 8:42 am
Location: Belgrade, Serbia

Re: The sounds won't work

Postby milsu » Mon Jan 01, 2018 8:36 am

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.

User avatar
Steve R.
Posts: 25
Joined: Thu May 21, 2015 7:40 pm
Location: Morehead City, NC
Contact:

Re: The sounds won't work

Postby Steve R. » Fri May 18, 2018 11:50 pm

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.

cazfi
Elite
Posts: 1710
Joined: Tue Jan 29, 2013 6:54 pm

Re: The sounds won't work

Postby cazfi » Sat May 19, 2018 2:42 am

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?

User avatar
Steve R.
Posts: 25
Joined: Thu May 21, 2015 7:40 pm
Location: Morehead City, NC
Contact:

Re: The sounds won't work

Postby Steve R. » Sat May 19, 2018 3:22 am

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/

cazfi
Elite
Posts: 1710
Joined: Tue Jan 29, 2013 6:54 pm

Re: The sounds won't work

Postby cazfi » Sat May 19, 2018 8:29 am

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.

User avatar
Steve R.
Posts: 25
Joined: Thu May 21, 2015 7:40 pm
Location: Morehead City, NC
Contact:

Re: The sounds won't work

Postby Steve R. » Sat May 19, 2018 1:24 pm

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.

cazfi
Elite
Posts: 1710
Joined: Tue Jan 29, 2013 6:54 pm

Re: The sounds won't work

Postby cazfi » Sun May 20, 2018 9:51 pm

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