cl-raylib icon indicating copy to clipboard operation
cl-raylib copied to clipboard

Have you managed to compile this for the web?

Open noloop opened this issue 4 years ago • 4 comments

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.

noloop avatar Mar 23 '21 21:03 noloop

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

longlene avatar Mar 29 '21 03:03 longlene

And for the desktop how are you creating the executable?

noloop avatar Mar 30 '21 23:03 noloop

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 avatar Apr 01 '21 04:04 longlene

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

longlene avatar Apr 01 '21 06:04 longlene