- SDL2
- SDL2_mixer
- CMake 3.16 or later
- GL libraries and headers (e.g., mesa, libgl, or similar) for OpenGL support
- OpenCV library for extracting PCX images in SPEC files using
abuse-tool
On Arch Linux, install these packages:
sudo pacman -S sdl2 sdl2_mixer opencv cmake dpkg rpm-tools
For other distributions, use the equivalent packages from your package manager.
macOS should have many of the necessary tools already. The easiest method for installing CMake, SDL, and SDL_mixer is using Homebrew:
brew install cmake
brew install sdl
brew install sdl_mixer
Clone this repository.
git clone https://github.com/metinc/Abuse_1996
Enter the repository and configure the build:
cmake -B build
Next, build and install:
sudo cmake --build ./build --target install
(If you prefer a local installation, omit sudo and specify a custom prefix:
cmake -B build -DCMAKE_INSTALL_PREFIX=$HOME/.local
)
Once installed, you can run the game:
abuse
Note: If you’re using Visual Studio Code, you can use CMake Tools to build and run the project more conveniently.
The CMake setup includes some CPack configurations to enable building installers. Under Windows, it will create a WIX installer and a .zip file. Under Linux, it will create .deb, .rpm, and .tar.gz packages. Under macOS, it will create .dmg and .tgz files.
To build them under Linux or macOS, run:
make package
from inside the build
folder (or ninja package
if you're using the Ninja generator).
If appimagetool
is installed on your system, an AppImage will be built automatically. You can download appimagetool
from the AppImageKit releases page. Make sure to make it executable and in your PATH.
To build the AppImage (if appimagetool
is installed):
make appimage
This will create an Abuse-${PROJECT_VERSION}.AppImage
file in the build directory. You can then run this file to play the game.