我正在尝试学习如何使用 ApplicationBuilder.jl 为 Windows 构建独立的完全独立的应用程序。例如,以下函数可能是应用程序的代码:
function Hello()
println("Hello World")
end
Run Code Online (Sandbox Code Playgroud)
然后根据 ApplicationBuilder 文档,整个事情应该围绕一个 main 函数,如下所示:
include("helloexe.jl") #address of the file containing the above Hello() function
Base.@ccallable function julia_main(ARGS::Vector{String})::Cint
return Hello()
end
Run Code Online (Sandbox Code Playgroud)
当我运行
using ApplicationBuilder
build_app_bundle("D:\\Julia\\my_julia_main.jl", appname="Hello")
Run Code Online (Sandbox Code Playgroud)
它给了我以下错误:
build_app_bundle("D:\\Julia\\my_julia_main.jl", appname="Hello")
[ Info: Building at path D:\Julia\builddir\Hello
[ Info: Copying resources:
[ Info: Copying libraries
ERROR: UndefVarError: build_executable not defined
Stacktrace:
[1] build_app_bundle(::String; resources::Array{String,1}, libraries::Array{String,1}, builddir::String, appname::String, create_installer::Bool) at C:\Users\Reza\.julia\packages\ApplicationBuilder\kMUzZ\src\bundle.jl:44
[2] top-level scope at REPL[25]:1
Run Code Online (Sandbox Code Playgroud)
“build_executable 未定义”是什么意思以及如何修复它?
julia ×1