SRB2 Message Board  

Go Back   SRB2 Message Board > Archived > SRB2 Forum Archives > Bug Reports (2.1.X)

Thread Tools Search this Thread
Old 09-09-2016   #1
Default Game Music file formats fail to play in Linux

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

Name: libgme
Description: The libGME file playing library.
Version: 0.5.5-2
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 by ForgiveThisNewb; 09-09-2016 at 05:54 AM.
ForgiveThisNewb is offline  
Old 09-09-2016   #2
SteelT's Avatar

I have made changes to the makefile so it gets detected properly.

Last edited by SteelT; 09-09-2016 at 08:56 PM.
SteelT is offline  
Old 09-09-2016   #3
AlamGBC's Avatar

That weird, you should be using CMake, not Makefile.....
"remember, hacking SRB2 is a good thing, cracking it's save games is not" - Alam and Logan Arias

3DS FC: 0473-7778-0919
AlamGBC is offline  
Old 09-09-2016   #4

Originally Posted by AlamGBC View Post
That weird, you should be using CMake, not Makefile.....
"CMake 3.0 or higher is required. You are running version"

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.
ForgiveThisNewb is offline  
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 02:25 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.