<br><br><div class="gmail_quote">On Sun, Jun 27, 2010 at 15:19, Matthew Flatt <span dir="ltr"><<a href="mailto:mflatt@cs.utah.edu">mflatt@cs.utah.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Does your call to `create-embedding-executable' work if you disable<br>
debugging in DrRacket or if you run from command-line Racket?<br></blockquote><div><br>It works, thank you!<br>Maybe it could be a good idea to add an example like this one in the docs, because it took quite some time to find out (but not really understand) that one.<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
I think the problem is that DrRacket configures the compiler to add<br>
errortrace-debugging instrumentation and to use ".zo" files that are<br>
instrumented, and that is interfering with executable creation. See<br>
also<br>
<br>
<a href="http://lists.racket-lang.org/users/archive/2010-May/039505.html" target="_blank">http://lists.racket-lang.org/users/archive/2010-May/039505.html</a><br>
<br>
Offhand, I'm not sure whether to blame errortrace for failing to set up<br>
appropriate dependencies or `create-embedding-executable' for not<br>
setting up a separate enough environment when building an executable.<br>
We'll have to work on this more.<br></blockquote><div><br>Maybe this is stupid, but could it be possible to disable debugging dynamically to parameterize the call to `create-embedding-executable' ?<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5"><br>
At Sun, 27 Jun 2010 13:01:43 +0200, Laurent wrote:<br>
> Hi,<br>
><br>
> I'm trying to use `create-embedding-executable' (DrRacket 5.0, WinXP and<br>
> Vista), with this little module:<br>
><br>
> #lang racket/gui<br>
><br>
> (define f (new frame% [label "Test"]))<br>
> (send f show #t)<br>
><br>
><br>
> But I don't know exactly how to set the arguments to produce the same result<br>
> as "raco exe --gui", which works fine.<br>
> Going through the collections I found little help.<br>
> The best I could do is this:<br>
><br>
> (create-embedding-executable<br>
> "test.exe"<br>
> #:modules '((#f "test.rkt"))<br>
> #:configure-via-first-module? #t<br>
> #:literal-expression<br>
> (parameterize ([current-namespace (make-base-namespace)])<br>
> (compile `(namespace-require ''test)))<br>
> #:gracket? #t<br>
> #:collects-path (current-library-collection-paths)<br>
> #:verbose? #t<br>
> )<br>
><br>
> which effectively creates test.exe, but running the latter fails on:<br>
><br>
> link: namespace mismatch; reference (phase 0) to a module "M:\Program<br>
> Files\Rack<br>
> et\collects\errortrace\errortrace-key.rkt" that is not available (phase<br>
> level 0)<br>
> ; reference appears in module: 'test in: init-test-coverage<br>
><br>
> === context ===<br>
> test: [running body]<br>
> loop<br>
><br>
> I have absolutely no clue of what is going on here.<br>
> Can someone help me with this?<br>
><br>
> Thanks,<br>
> Laurent<br>
</div></div>> _________________________________________________<br>
> For list-related administrative tasks:<br>
> <a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
</blockquote></div><br>