SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > SRB2 Discussion

Thread Tools Search this Thread
Old 12-07-2018   #1
Default Linux and macOS Ports

Linux and macOS Ports

For macOS users: jump to the end of the post.

As of SRB2 v2.1.21, we have brought back Linux builds for Ubuntu and Debian-based users. You may install SRB2 via our APT PPA respository.

SRB2 is installed to "/usr/games/SRB2" and a program icon is added to your Application Manager. You may place addons into your home directory .srb2 folder: "~/.srb2"

Here's how to install the game:

If you are using Ubuntu:

Ubuntu has built-in support for PPA repositories, so all you need to do is install using your terminal:

sudo add-apt-repository ppa:stjr/srb2
sudo apt-get update
sudo apt-get install srb2
If you are using a Debian-based distro:

Debian can run the same packages that are provided in the repository. You may need to add the PPA manually.

The simple way, using add-apt-repository:

If you are using Debian Jessie or earlier, skip to the next section. Do not use this method.

To use the add-apt-repository command, you need to install the following package:

Debian Stretch and later:

sudo apt-get install software-properties-common
Now add the PPA repository and install SRB2.

sudo add-apt-repository ppa:stjr/srb2
sudo apt-get update
sudo apt-get install srb2
The long way, if you cannot use add-apt-repository:

First, install dirmngr so you can retreive the PPA signing key.

sudo apt-get install dirmngr
Next, add the following lines to /etc/apt/sources.list

Debian Buster or later, add these lines to sources.list:

deb cosmic main
deb-src cosmic main
Debian Stretch, add these lines to sources.list:

deb bionic main
deb-src bionic main
Debian Jessie or earlier, add these lines to sources.list:

deb trusty main
deb-src trusty main
Now, retrieve the PPA signing key for the repository.

sudo apt-key adv --keyserver hkp:// --recv-keys 0B1702D71499D9C25F986507F240F4449D3B0EC6
Finally, update your apt listings and install SRB2.

sudo apt-get update
sudo apt-get install srb2
If SRB2 does not work when you install it, try building from the source package:

This assumes that you added the PPA repository, as above.

PHP Code:
# Install build dependencies

sudo apt-get build-dep srb2 srb2-data

# Change to a folder of your choice, where the binary packages will be built

mkdir ~/Packages

# Build the SRB2 package

apt source -t bionic --build srb2
apt source 
-t bionic --build srb2-data

# Install the SRB2 package
# Replace [version] and [i386/amd64] with appropriate strings.

sudo dpkg -i srb2_[version]_[i386/amd64].deb
sudo dpkg 
-i srb2-data_[version]_all.deb 
If you are using a non-Debian distro:

You are welcome to build SRB2 from the source code. Download a copy of the source from GitLab, and see Source code compiling from the SRB2 Wiki.

macOS Port

Download the macOS DMG Installer here.

When the DMG image is finished download, double-click on it to mount it. To install SRB2, click and drag the SRB2 icon to the Applications folder or a location of your choice.

Your game data and mods will be located in your home folder: "~/srb2"

If SRB2 is not allowed to run:

You may get a message that states SRB2 is not allowed to run.

You can run SRB2 by going to System Preferences > Security & Privacy

Click on "Open anyway".

If that prompt doesn't show up, you may need to select "Allow apps downloaded from App Store and identified developers". Then try running the program again and open this settings page again to trigger this prompt.

Last edited by Digiku; 12-08-2019 at 01:37 PM.
Digiku is offline   Reply With Quote
Old 12-25-2018   #2

I'm getting a crash every-time on the mac version.
Blur is offline   Reply With Quote
Old 03-08-2019   #3
blankzmusic's Avatar

The Mac version won't open. It installed perfectly but unfortunately when I open the application the game doesn't start. The only thing that pops up is "Sonic Robo Blast 2 quit unexpectedly".
New album coming soon on all platforms.
blankzmusic is offline   Reply With Quote
Old 08-23-2019   #4

not sure how specific this issue is but i feel i should mention it for potential documentation. when i first installed srb2 on my laptop running xubuntu, it wouldn't start at first. running the executable just gave me nothing but running it from the terminal told me i was missing the 'libpng16' dependency so i had to enter 'sudo apt-get install libpng-dev' in the terminal to install that dependency and srb2 ran fine afterwards. i'm assuming other distros might come with it out-of-the-box or something but for anyone else in the position i was, that should fix it.

Last edited by tabu; 08-23-2019 at 04:53 AM.
tabu is offline   Reply With Quote
Old 12-07-2019   #5
espectalll123's Avatar

Hi, thank you for the new release! I've tried to install it on my Debian Sid (which tried to act as Ubuntu Focal), but that wasn't available, so I changed to Eoan, but the libopenmpt dependency couldn't be found. I try to go back version by version, editing the sources.list.d file, and it finally worked with Cosmic... which actually had SRB2 2.1. Oops?

On one hand, I think there's a Debian-specific issue due to it calling the package "libopenmpt0" in its official repos instead of "libopenmpt". On the other hand, I've already seen someone else dealing with a similar issue in Ubuntu Eoan. What could be done here, then?

Thank you in advance! ^_^

P.S.: hey, if any forum admin is there, would it be possible to change my username, please? Just saying...

Last edited by espectalll123; 12-07-2019 at 11:30 PM.
espectalll123 is offline   Reply With Quote
Old 12-08-2019   #6

I fixed the packages to accept "libopenmpt0". Refresh your APT and try installing SRB2 again.
Digiku is offline   Reply With Quote
Old 12-08-2019   #7
espectalll123's Avatar

Originally Posted by Digiku View Post
I fixed the packages to accept "libopenmpt0". Refresh your APT and try installing SRB2 again.

Great, I can confirm it works now after setting it to Eoan! Thanks a lot!!!
espectalll123 is offline   Reply With Quote
Old 12-30-2019   #8
sks316's Avatar

Can the person in charge of distributing the Linux port please please PLEASE distribute separately for Debian instead of relying solely on the PPAs? Or at least as an AppImage? Ubuntu PPAs aren't meant to be used with standard Debian! Using the PPA on Debian installations can lead to broken packages, which will ultimately result in a FrankenDebian!
Originally Posted by DontBreakDebian - Debian Wiki
Repositories that can create a FrankenDebian if used with Debian Stable:
  • Debian testing release (currently bullseye)
  • Debian unstable release (also known as sid)
  • Ubuntu, Mint or other derivative repositories are not compatible with Debian!
  • Ubuntu PPAs

Source: DontBreakDebian - Debian Wiki
sks316 is offline   Reply With Quote
Old 3 Weeks Ago   #9
Moose the Fat Cat

Hello! Is there an estimate on when the latest version 2.2.2 will be ported to Mac OSX?

I only recently played this game for the first time a few weeks ago (2.2.0) and I absolutely adore the game and I'm very eager to play with the new Simple controls.

Thank you to the people who have put the work in doing this for our enjoyment! I appreciate this!!
Moose the Fat Cat is offline   Reply With Quote
Old 3 Weeks Ago   #10
Rob's Avatar

The problem with a 2.2.2 Mac port is actually a lack of anyone on the team able/willing to build it. It sounds dumb on the surface, I know, but there are two very good reasons for this.

1) Lack of 32-bit support. This is huge, and the only guy on the team with a Mac doesn't want to upgrade his OS for that reason, meaning that a 2.2.2 build might not be able to be run on current Mac software.

2) SRB2 64-bit build has a weird bug we can't identify the cause of, but it outright will not generate crash reports. The attempts to figure out why have failed to result in any success. The obvious problem here is that we can't actually properly support a 64-bit build because we can not solve problems that come up with it without those reports.

I've been asking around for anyone I know who might have a Mac and the ability to make a build so we can at least release the 64-bit build with a disclaimer of "Don't report bugs using this, we can't support this properly" but the amount of people I know who own a Mac, nevermind the technical skills to actually make a workstation and build the game, is very small.

Last edited by Rob; 3 Weeks Ago at 06:14 AM.
Rob is offline   Reply With Quote
Old 3 Weeks Ago   #11
Moose the Fat Cat

That makes sense, thanks for the explanation. I wish I could help instead of just requesting! I don't know any programmers.
Moose the Fat Cat is offline   Reply With Quote
Old 2 Weeks Ago   #12

I can chip in with the Mac build.
Zenya is offline   Reply With Quote
Old 2 Weeks Ago   #13
JakeAmations's Avatar

When exactly is 2.2.2 gonna get ported to Linux?
It's a me, unoriginality!
JakeAmations is offline   Reply With Quote
Old 1 Week Ago   #14

PPA builds are ported to 2.2.2 since the day following Windows release. Support for some versions can be dropped so that must be the cause.
Lamibe is offline   Reply With Quote
Old 1 Day Ago   #15
the Food
Cheese's Avatar

Not sure if this info will be helpful to anyone, but maybe some tech-savvy Mac users can make their own build until an official version is available.

I managed to build 2.2.2 on macOS Catalina, using SDL2 frameworks and installing any other dependencies with homebrew.

But for the moment, you have to disable GME in src/CMakeLists.txt Line 223.

To use the SDL2 and SDL2_mixer frameworks, in src/sdl/CMakeLists.txt change line 151-164 to:
		find_library(CORE_LIB CoreFoundation)
		target_link_libraries(SRB2SDL2 PRIVATE
			"-framework SDL2"
			"-framework SDL2_mixer"
	        set_target_properties(SRB2SDL2 PROPERTIES LINK_FLAGS "-F/Library/Frameworks")
Although only the OpenGL renderer works. But that's the only renderer I ever use, so I'm happy with it.
Cheese is offline   Reply With Quote
Old 1 Day Ago   #16
nanananananananananananan a
Lach's Avatar

Cheese—are you on our Discord server? We have a Mac-users channel there with Catalina users who would love it if you could share your build with them. I have been sending them builds from my machine, but they do not work on Catalina as I am running Mojave. I can walk you through packaging the application into an installer. Ping me if you are online there!
Lach is offline   Reply With Quote

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 05:38 PM.

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