How to create standalone applications for Windows with a [G]UI in Julia 1.11 or 1.12

Section split into PackageCompiler hang

Thanks. I gave it a try, and the result is disappointing: I took the example as it is and followed the instructions but it hang up at compiling a “nonincremental system image”. (I have no clue what that term actually means.)

Also, [Package Compiler] installed the mingw compiler despite I have the MSVC compiler installed that I use for ally my C++ projects. I could not tell PackageCompiler.jl to use that compiler.

I was also not able to understand how the example was created. There are many different files without a documentation. For example what is the file “generate_precompile.jl” for? Or what “precompilation” actually means. There is also a file “additional_precompile.jl”. What is that for, is it necessary and if yes, for what? Why can’t it be part of generate_precompile.jl, …

So in the end a spend a lot of time and nothing is clear to me. I just need to compile my Julia module to a DLL, no fancy stuff, no precompilation or whatever.

I searched for other docs and videos but cannot find something that helps me. There are only technical talks about PackageCompiler not step by step example of to create a DLL out of a module.

It seems I did not yet really understand the concept of Julia. How do people use Julia for real-life applications? I mean at the end of the day you must deliver a program that can be used by users. And with users I mean normal persons that cannot read or handle program code. I cannot give a user a script he has to execute.

1 Like