"Julia program to a standalone executable"
Nov. 5th, 2021 08:38 amLast spring I could not figure out how to make a standalone executable in Julia. Which was not good (this prevented me from submitting an entry to a demo party).
Finally, someone has posted detailed instructions for Windows (likely to work on other platforms, but not tested), and they contain steps that I had no idea about:
www.linkedin.com/pulse/julia-program-standalone-executable-anders-persson/
Finally, someone has posted detailed instructions for Windows (likely to work on other platforms, but not tested), and they contain steps that I had no idea about:
www.linkedin.com/pulse/julia-program-standalone-executable-anders-persson/
no subject
Date: 2021-11-05 12:56 pm (UTC)using PackageCompiler create_app("helloWorld", "standalone", force=true)4) Invoke Julia like this
You will get a warning about a manifest-file that will be created, but it does not affect the standalone program in any way.
5) Now You can find in the folder
All the files in are required for the prototype to run, so to give away Your program simply Zip the folder and You are done.
Overall, pretty annoying actually. That's not the normally smooth experience I am used to in my Julia workflows.
But at least it's doable (yes, this does seem to be a case of missing documentation, at least as of Spring 2020; I should see if I can/should contribute to fixing this).
no subject
Date: 2021-11-05 01:55 pm (UTC)So it's enough to just
The just prevents you from seeing complaints.
--project[={|@.}] Set as the home project/environment. The default @. option will search through parent directories until a Project.toml or JuliaProject.toml file is found.(From https://docs.julialang.org/en/v1/manual/command-line-options/)