How do I install lispbuilder-sdl with SBCL?

So I was reading some docs from the lispbuilder-sdl site and it seemed very confusing about the parts where it says "install: ..." Can anyone give me some detailed instructions on how to install lispbuilder-sdl from SBCL on Windows PC?

Documentation: https://code.google.com/p/lispbuilder/wiki/WindowsSBCL

+3


source to share


2 answers


Introduction

OK, since this LispBuilder might be really interesting, let's give it a try.

Here I am using Windows 7 and SBCL 1.2.1. Assuming SBCL has been successfully installed on your system, skip the Install SBCL step .

Installing CFFI and Dependencies

We need to install CFFI and its dependencies. Here are the tarballs . We need cffi_latest.tar.gz .

Next we need Babel . But what about him? The official download page displays "404 Not Found". Oh no. Get it as a zip archive from GitHub .

Get Alexandria . Since the other links are really out of date, get it builds GitHub as a zip archive.

We also need Trivial Functions . Again from GitHub. Since the authors of this library create releases, I prefer to download it from the release page .

OK, now unzip and unzip these four librarians. So, for example, I have the following directories:

alexandria-master
pandemonium-master
cffi_0.13.0
trivial-function-0.7

Then we have to move it all over to a "site" directed at SBCL. What is it and where is it located in Windows? I think "site" is something like "site-lisp" for Emacs. The SBCL documentation is n't kind enough to give a word of explanation about this directory. Perhaps it has nothing to do with SBCL. Well, let's just create it inside the SBCL installation directory like:

C: \ Program Files \ Steel Bank General Lisp \ 1.2.1 \ site \

Then add all of our stuff to that directory and rename the subdirectories as shown in the manual:

alexandria-master → alexandria
babel-master →
babylon cffi_0.13.0 → cffi
trivial-features-0.7 → trivial features

Install LISPBUILDER-SDL and binaries



OK, download LispBuilder from here . Lotsa here, I think we need this as well as this .

Disconnect these archives in the 'site' directory:

C: \ Program Files \ Steel Bank General Lisp \ 1.2.1 \ site \ lispbuilder-sdl \

Create SBCL System Initialization File

Create a file 'sbclrc' in the SBCL installation directory with the following content:

(require :asdf)

;; put all subdirectories of [SBCL]\site\ into asdf:*central-registry*
(dolist (dir (directory "[SBCL]\\site\\*\\"))
  (pushnew dir asdf:*central-registry* :test #'equal))

;; load lispbuilder-sdl
(asdf:operate 'asdf:load-op :lispbuilder-sdl)
(asdf:operate 'asdf:load-op :lispbuilder-sdl-binaries)

      

Try examples

This is my favorite part. Run SBCL and it should collect a lot of stuff. Wait a second. When you see something like:

;
; compilation unit finished
;   caught 502 STYLE-WARNING conditions
;   printed 13 notes
*

      

Time for fun:

* (asdf:operate 'asdf:load-op :lispbuilder-sdl-examples)

      

This command will compile and download the examples. The manual suggests this to try:

* (sdl-examples:mandelbrot)

      

Works. It looks like fractal graphics.

+4


source


Use Quicklisp :

(ql:system-apropos "lispbuilder")

      



shows the available (sub) systems. Install with ql:quickload

.

+1


source







All Articles