Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please provide example of using with save-lisp-and-die #4

Open
bigos opened this issue Dec 14, 2023 · 7 comments
Open

Please provide example of using with save-lisp-and-die #4

bigos opened this issue Dec 14, 2023 · 7 comments

Comments

@bigos
Copy link

bigos commented Dec 14, 2023

I have a problem when I try to run the generated executable. It happens on Windows and Linux.

debugger invoked on a SB-PCL::NO-APPLICABLE-METHOD-ERROR in thread
#<THREAD tid=34879 "main thread" RUNNING {10024D0003}>:
There is no applicable method for the generic function
#<STANDARD-GENERIC-FUNCTION GIR::NSGET (6)>
when called with arguments
(NIL GTK4::NEW).

That may be a clue leading to a solution, but it needs more examples.
andy128k/cl-gobject-introspection#78

@bohonghuang
Copy link
Owner

Does (asdf:make :cl-gtk4/example) not work on your system?

@bigos
Copy link
Author

bigos commented Dec 14, 2023

https://github.com/bohonghuang/cl-gtk4/blob/96125a79b2d5c96c44b486fc29c4129d6f114627/cl-gtk4.asd#L16
The above may be the missing link I needed.

I will try it and let you know if I can successfully create a working executable or if I have more questions.

@bigos
Copy link
Author

bigos commented Dec 14, 2023

do you know how to declare sbcl compression levels?

@bigos
Copy link
Author

bigos commented Dec 14, 2023

lisp-tips/lisp-tips#20

maybe this is the answer

@bohonghuang
Copy link
Owner

lisp-tips/lisp-tips#20

maybe this is the answer

This is the answer, adding this code snippet to the ASD file is exactly the approach I am currently using.

@richardwesthaver
Copy link

richardwesthaver commented Mar 2, 2024

do you know how to declare sbcl compression levels?

you can use an integer instead of a boolean for the :compression keyword:

(sb-ext:save-lisp-and-die "x"
                          :toplevel #'compile-prelude
                          :executable t
                          :save-runtime-options t
                          :compression 19)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants