Game Music file formats fail to play in Linux

Status
Not open for further replies.
Game music formats such as SPC and GYM do not play in Linux builds of SRB2. Instead it seems SRB2 is misidentifying them, sometimes as midis or mp3s.

Test case: SUGOI's title screen. O_TITLES is in SPC format.
Result: No Music
Expected Result: Music

My OS: Ubuntu 14.04 64-bit
SRB2 Version: 2.1.16 [git revision e62c0794dce5df2c73374edcc73d8575e1d10a26]
Fails on both 32-bit and 64-bit compilations.

libGME version: 0.5.5-2

I'm willing to test fixes and provide more information as needed.

EDIT: Turns out GME isn't being properly detected during compilation. Looks like an Ubuntu issue, investigating further.

EDIT 2: YEP, not an SRB2 Bug. Please close as invalid.

EDIT 3: Here's the fix for end users suffering this issue. Do note that it's for Ubuntu 14.04, so if you have another Linux you'll have to tweak it a bit and you are on your own.
When compiling, add HAVE_LIBGME=1 to the compile line so that it looks something like
make -C src LINUX64=1 HAVE_LIBGME=1 -j4
If you get an error about pkg-config, first make sure you have libgme0 and libgme-dev installed. If it still complains, you'll need to create a pkg-config file for libgme. Just use the command below to open the file in a text editor, and copy and paste the contents of the code block.
sudo nano /usr/lib/pkgconfig/libgme.pc
Code:
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: libgme
Description: The libGME file playing library.
Version: 0.5.5-2
Requires:
Libs: -L${libdir} -lgme -lz
Libs.private: -lstdc++ -lm
Cflags: -I${includedir}

SRB2 should now compile without issue, and game music will now work.
 
Last edited:
That weird, you should be using CMake, not Makefile.....
 
That weird, you should be using CMake, not Makefile.....

"CMake 3.0 or higher is required. You are running version 2.8.12.2"

And that's as good of a reason as any to keep using the Makefile. No support for Ubuntu 14.04. Sorry to disappoint you.

Also, CMakeLists.txt says SRB2 is still version 2.1.14. May want to update that to 2.1.16.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top