-
Notifications
You must be signed in to change notification settings - Fork 1
Building and running the engine for Arch Linux
Install the needed packages:
- glfw-x11 - X11 version of GLFW. For graphics, input, and windo handling.
- binutils - Collection of tools (like GCC) needed for building
- chicken - For lisp scheme scripting
# pacman -S glfw-x11 binutils assimp chicken
Install the needed dependencies for scripting:
# chicken-install -v bind srfi-1 foreigners
Clone the repository and enter the directory:
$ git clone [email protected]:accidentalrebel/rebel-game-engine.git
$ cd rebel-game-engine/
Also make sure that the following directories are present (output, tmp, libs). If not, create them.
Build the engine as a library:
$ make build PLATFORM=linux
Run the engine (Runs whatever code is in scripts/game.scm
):
$ make PLATFORM=linux
Congratulations, you are now ready to start working!
Note: To avoid having to specify
PLATFORM
every time you make a build, you can change the variablePLATFORM=
inside theMakefile
.
Because of package naming conflicts, the chicken
package may be invoked with csc
or chicken-csc
. To test, try the command below:
$ csc -version
If the above command outputs the following:
Microsoft (R) Visual C# Compiler version 3.3.1-beta4-19462-11 (66a912c9)
Then it means that it's picking up the wrong binary.
To fix this, open the Makefile
and change the value of CSC = csc
to CSC = chicken-csc
. Then run make
again.
make PLATFORM=linux