NHDaly / ApplicationBuilder.jl

[deprecated] Compile, bundle, and release julia software
MIT License
168 stars 15 forks source link

What wrong ? #59

Closed programistawpf closed 4 years ago

programistawpf commented 5 years ago

f my_code() is simply and wroking ;) But : After 1 step no my_julia_main.jl file in my disk. Dir /src is created in second step but is empty . What wrong ? (ARGS::Vector{String})::Cint must be edited ?

# my_julia_main.jl
include("my_code.jl")
Base.@ccallable function julia_main(ARGS::Vector{String})::Cint
    return my_code()
end

# build.jl
using ApplicationBuilder
build_app_bundle("src/my_julia_main.jl", appname="MyCode");

julia> build_app_bundle("src/my_julia_main.jl", appname="MyCode")
[ Info: Building at path D:\...\instalacja\src\builddir\MyCode
[ Info: Copying resources:
[ Info: Copying libraries
ERROR: Cannot find file: "D:\...\instalacja\src\my_julia_main.jl"
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] #static_julia#5(::Nothing, ::Bool, ::Bool, ::String, ::Nothing, ::Nothing, ::Bool, ::Bool, ::Bool, ::Bool,
::Bool, ::Bool, ::Bool, ::Bool, ::Nothing, ::Bool, ::Bool, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing
, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing,
::Nothing, ::Nothing, ::typeof(PackageCompiler.static_julia), ::String) at C:\Users\PC\.julia\packages\PackageCo
mpiler\oT98U\src\static_julia.jl:106
 [3] #static_julia at .\none:0 [inlined]
 [4] #build_executable#31 at C:\Users\PC\.julia\packages\PackageCompiler\oT98U\src\api.jl:104 [inlined]
 [5] #build_executable at .\none:0 [inlined] (repeats 2 times)
 [6] #build_app_bundle#4(::Array{String,1}, ::Array{String,1}, ::String, ::String, ::Bool, ::Function, ::String)
 at C:\Users\PC\.julia\packages\ApplicationBuilder\PzBv2\src\bundle.jl:20
 [7] (::getfield(ApplicationBuilder, Symbol("#kw##build_app_bundle")))(::NamedTuple{(:appname,),Tuple{String}},
::typeof(build_app_bundle), ::String) at .\none:0
 [8] top-level scope at none:0

Paul

NHDaly commented 4 years ago

It looks like the problem here was a bad filepath in the build.jl file, but I'm not certain with the information listed here. Sorry i didn't get back to you sooner. Feel free to reopen the issue if you're still having it!