Installing RGBDS on Windows
The install instructions are a bit different depending on the environment in which you wish to use RGBDS.
- WSL
- Cygwin / MSYS2
- None of those
Using WSL is recommended if your version of Windows supports it (which Windows 10 and 11 do).
Please refer to the install instructions for your WSL's running Linux distribution.
You can check what your WSL distribution is by running wsl -l -v
in the Command Prompt.
(The default Linux distribution on WSL is Ubuntu, whose package manager is apt
.)
-
Go the latest release (or pick a specific version from the list).
-
Under "Assets" at the bottom, download either
rgbds-<version>-win32.zip
(for 32-bit Windows) orrgbds-<version>-win64.zip
(for 64-bit Windows). (For example, version 0.7.0 for 64-bit Windows would havergbds-0.7.0-win64.zip
). -
Unzip the .zip file. It should give you the RGBDS
.exe
files and a couple of.dll
files. -
Copy all of those
.exe
and.dll
files to the/usr/local/bin
directory of your Cygwin/MSYS2 installation. (You can learn its equivalent Windows path by runningcygpath -w /usr/local/bin
in the Cygwin terminal.)cautionDo not put them in a subdirectory (e.g.
/usr/local/bin/rgbds/
)! This would not work.
After that, you should be able to use RGBDS from within the Cygwin/MSYS2 terminal, which you can confirm by running rgbasm -V
.
If rgbasm -V
doesn't work, check that /usr/local/bin
is listed in your Cygwin/MSYS2 PATH
(run echo $PATH
to check).
If it isn't listed, you must add it (e.g. run echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bashrc
, then close your Cygwin terminal and open a new one).
If you can choose between using Cygwin or MSYS2, be advised that Cygwin is slower and has been reported to cause a bit of trouble to some.
- Go the latest release (or pick a specific version from the list)
- Under "Assets" at the bottom, download either
rgbds-<version>-win32.zip
(for 32-bit Windows) orrgbds-<version>-win64.zip
(for 64-bit Windows). (For example, version 0.7.0 for 64-bit Windows would havergbds-0.7.0-win64.zip
). - Unzip the .zip file.
It should give you the RGBDS
.exe
files and a couple of.dll
files. - Either:
-
...put all of the files in a directory, then add that directory to Windows'
PATH
. This will permanently allow you to use RGBDS from any directory.- Graphically
- Command Prompt
- PowerShell
- Open the Environment Variables dialog for your account.
You can do this by either:
- ...typing "edit environment variables for your account" in the Start menu's Search box and clicking the Control Panel item that's found.
- ...opening the Control Panel, clicking its "User Accounts" item, clicking the "User Accounts" heading in that item, and clicking "Change my environment variables" in the sidebar.
- Click the "Path" line in the top panel to highlight it.
- Click "Edit..." to open the "Edit environment variable" dialog for "Path".
- Click "Browse...", select the folder that the RGBDS files are in, and click OK.
- The folder should be added to the bottom of the "Path" list. Make sure that the new entry (which should be highlighted) is at the bottom of the list; if not, click on "Move Down" until it is.
- Click "OK" to finish the "Edit environment variable" dialog, and again for the "Environment Variables" dialog.
Run the command
setx PATH "%PATH%<rgbds_path>;"
, replacing<rgbds_path>
with the path to the directory that containsrgbasm.exe
,rgblink.exe
, etc. Then close the Command Prompt and open a new one for the changes to take effect.If you only want to modify the
PATH
temporarily, instead of the permanentsetx
command, you can use the temporaryset
.Run the command
setx PATH ${Env:PATH}<rgbds_path>;
, replacing<rgbds_path>
with the path to the directory that containsrgbasm.exe
,rgblink.exe
, etc. Then close the PowerShell window and open a new one for the changes to take effect.If you only want to modify the
PATH
temporarily, instead of the permanentsetx
command, you can use the temporaryset
. -
...or put all of the files in your project's directory.
-
...or put all of the files in a directory already in the
PATH
.
-
- RGBDS can now be used from your favorite command line (most likely the Command prompt or PowerShell).
You can test it by running
rgbasm -V
, which should print the version you installed!