Assuming you have Racket downloaded and installed for your platform, you can install
$ raco pkg install r-cade
Once that’s done, you will need to install a few 3rd party dynamic libraries as well, specific to your platform:
For some of these packages, you may need to choose between 32- and 64-bit. If you don’t know which to choose, simply execute this at the command line to find out:
$ racket -e "(system-type 'word)"
NOTE: I develop on Windows, so if any of the instructions here for MacOS X or Linux are incorrect or could be better, please send me an email!
Once you have completed the setup, feel free to head over to the tutorials.
On Windows, after installing all the dynamic libraries, please make sure you update your
PATH environment variable to include the locations of the DLL files. Once done, you will need to close any terminals or DrRacket and relaunch them so they get the updated environment.
Download CSFML library, and unzip it anywhere you want (I personally unzipped it to C:). Then edit your environment variables and add
<path-to-CSFML>\bin to your
PATH. This will ensure that the dynamic libraries can be found.
Head over to libsndfile and download the installer and run it. By default, this will install libsndfile (64-bit) to
C:\Program Files\Mega-Nerd\libsndfile (the 32-bit version will install to
Program Files (x86). You will need to add the
<path-to-libsndfile>\bin to your
PATH environment variable.
On MacOS X, all the appropriate dependencies can be installed using Homebrew:
$ brew install csfml $ brew install openal-soft $ brew install libsndfile
NOTE: On Linux, installing SFML/CSFML from a package system (e.g.
yum) installs a bugged version that will not work with R-cade. Instead, you need to download, compile, and install it yourself manually. Instructions for this can be found here:
A special shout-out to @elephanter for this!
The page linked above isn’t 100% complete as it doesn’t cover RedHat/CentOS very well. As I get more information, I’ll update this page appropriately.
$ sudo apt-get install libopenal-dev $ sudo apt-get install libsndfile1
$ sudo yum install openal-soft $ sudo yum install libsndfile