LispGameDev
From Arwiki
I highly recommend using "clbuild" to install stuff ( just google it )
See also:
Contents |
clbuild
http://common-lisp.net/project/clbuild/
Zero to game-dev
sudo apt-get install darcs subversion mercurial curl git-core libsdl-mixer1.2-dev cd ~ darcs get http://common-lisp.net/project/clbuild/clbuild cd clbuild chmod 755 clbuild ./clbuild check
If clbuild complains that it is missing anything, then try to track down whats missing and install it.
Build a recent copy of sbcl
./clbuild update sbcl ./clbuild compile-implementation sbcl
Now install slime
./clbuild install slime
Install lispbuilder-sdl and friends
./clbuild install lispbuilder-sdl ./clbuild install lispbuilder-sdl-mixer ./clbuild install lispbuilder-sdl-image ./clbuild install lispbuilder-sdl-gfx
Launch emacs with the slime and sbcl from clbuild
./clbuild slime
Launch the clbuild version of sbcl from the command line
Put this in your .bashrc and then . .bashrc
export SBCL_HOME=/home/ryan/clbuild/target/lib/sbcl alias sbcl=/home/ryan/clbuild/target/bin/sbcl
Then sbcl should launch it.
---
./clbuild lisp (asdf:operate 'asdf:load-op 'lispbuilder-sdl) (asdf:operate 'asdf:load-op 'lispbuilder-sdl-examples) (lispbuilder-sdl-examples:mandelbrot)
To set up clbuild with .sbclrc
(require :asdf) (push "/home/ryan/clbuild/systems/" asdf:*central-registry*) ;; Note: you MUST have a trailing slash on the systems path
To Launch slime from emacs:
M-x slime
