All, I have been trying to use create-embedding-executable
instead of raco exe
on the command line and first attempt was a complete failure because my code would not run, the resulting exe looked like a bloated racket
, etc. So I looked at the raco exe
code.
I know what most of it is about but I am confused about this line: #:modules (cons (quasiquote (#%mzc: (file ,source-file) (main configure-runtime)))
What I don’t get is why (#%mzc: ...)
and (main configure-runtime)
. Why is this needed at all?
Still, even with it I am having issues which I don’t get with raco exe
. Currently when I execute my binary I get: no module instance found: #<resolved-module-path:'#%embedded:g849:misc> 0
Have no idea where this comes from.
@pocmatos The #%mzc:
is needed so that the embedded main module has a predictable name; that name is used by the #:early-literal-expression
and #:literal-expression
arguments. The (main configure-runtime)
part specifies that those submodules should be included, if they exist. I don’t have a good guess at where the “no module instance found” error comes from, though. Do you have a small-ish example?