longlene / cl-raylib

Common Lisp binding of raylib
MIT License
145 stars 21 forks source link

Have you managed to compile this for the web? #11

Open noloop opened 3 years ago

noloop commented 3 years ago

I'm thinking of using your system to speed up writing, but I'm afraid that I won't be able to compile it for the web, have you tried this before?

Because in the past I tried compile ECL together with emscripten and I couldn't this.

longlene commented 3 years ago

Sorry, I haven't tried it for web now.

noloop commented 3 years ago

And for the desktop how are you creating the executable?

longlene commented 3 years ago

For sbcl, try the following

  1. comment the (main) for examples/mouse.lisp
  2. load mouse.lisp and save to an executable
    (load "mouse.lisp")
    (sb-ext:save-lisp-and-die "mouse" :compression t :toplevel (lambda () (raylib-user::main) 0) :executable t)
longlene commented 3 years ago

@noloop and you can also use asdf:make to build the executable file once you write the .asd file for you project.