|
StandAloneCLISP
Creating standalone executables in CLISP
Introduction
Tutorial #1This is a how-to for building a distributable game(standalone executable) using CLISP and lispbuilder-SDL on Windows.
[1]> (asdf:operate 'asdf:load-op :lispbuilder-sdl-examples) ... lots of loading text ... 0 errors, 0 warnings NIL [2]> (sdl-examples:mandelbrot) NIL
[3]> (ext:make-dir "C:\\appz\\") T [4]> (ext:make-dir "C:\\appz\\mandelbrot\\") T
[5]> (defun mandelbrot-main ()
"Mandelbrot: main entry function"
(cffi:define-foreign-library sdl
(t (:default "SDL")))
(cffi:use-foreign-library sdl)
(sdl:with-init ()
(sdl-examples:mandelbrot))
(ext:quit))
MANDELBROT-MAIN
[6]> (ext:saveinitmem "c:\\appz\\mandelbrot\\mandelbrot.exe"
:init-function #'mandelbrot-main
:NORC t
:script t
:executable t
:quiet t)
2881776 ;
720444
[7]> (ext:copy-file "C:\\clisp-2.41\\full\\*.dll" "C:\\appz\\mandelbrot\\") ((#P"C:\\<CLISP installation directory>\\full\\libiconv-2.dll" #P"C:\\appz\\mandelbrot\\libiconv-2.dll" 1410765) (#P"C:\\<CLISP installation directory>\\full\\libintl-8.dll" #P"C:\\appz\\mandelbrot\\libintl-8.dll" 1888606) (#P"C:\\<CLISP installation directory>\\full\\readline5.dll" #P"C:\\appz\\mandelbrot\\readline5.dll" 229888)) [8]> (ext:copy-file "C:\\windows\\system32\\SDL.dll" "C:\\appz\\mandelbrot\\") ((#P"C:\\WINDOWS\\system32\\SDL.dll" #P"C:\\appz\\mandelbrot\\SDL.dll" 258048))
| |
► Sign in to add a comment