We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting up the files like:
#build.jl build_app_bundle("./src/julia_main.jl", appname="MyCode");
#julia_main.jl Base.@ccallable function julia_main(ARGS::Vector{String})::Cint return 0 end
throws the following error:
julia> include("build.jl") Using calculated bundle_identifier: 'com.lackner.mycode' ~~~~~~ Creating mac app in "/Users/lackner/Documents/Julia/Tests/AppBuilding/builddir/MyCode.app" ~~~~~~~ ~~~~~~ Compiling a binary from './src/julia_main.jl'... ~~~~~~~ Julia program file: "/Users/lackner/Documents/Julia/Tests/AppBuilding/builddir/MyCode.app/Contents/MacOS/applicationbuilderutils.jl" C program file: "/Users/lackner/.julia/packages/ApplicationBuilder/PzBv2/src/program.c" Build directory: "/Users/lackner/Documents/Julia/Tests/AppBuilding/builddir/MyCode.app/Contents/MacOS" ERROR: LoadError: LoadError: UndefVarError: include not defined Stacktrace: [1] top-level scope at none:0 (repeats 3 times) in expression starting at /Users/lackner/Documents/Julia/Tests/AppBuilding/builddir/MyCode.app/Contents/MacOS/applicationbuilderutils.jl:1 in expression starting at /Users/lackner/.julia/packages/PackageCompiler/oT98U/sysimg/run_julia_code.jl:10 ERROR: LoadError: failed process: Process(`/Users/lackner/Apps/Julia-1.1.app/Contents/Resources/julia/bin/julia --cpu-target=x86-64 --optimize=3 -g0 --output-o=julia_main.a --track-allocation=none --code-coverage=none --history-file=yes --inline=yes --math-mode=ieee --startup-file=no --compile=yes --track-allocation=none --sysimage-native-code=yes --sysimage=/Users/lackner/Apps/Julia-1.1.app/Contents/Resources/julia/lib/julia/sys.dylib --compiled-modules=yes --optimize=0 /Users/lackner/.julia/packages/PackageCompiler/oT98U/sysimg/run_julia_code.jl`, ProcessExited(1)) [1] Stacktrace: [1] pipeline_error at ./process.jl:785 [inlined] [2] #run#515(::Bool, ::Function, ::Cmd) at ./process.jl:726 [3] run at ./process.jl:724 [inlined] [4] #run_julia#1 at /Users/lackner/.julia/packages/PackageCompiler/oT98U/src/compiler_flags.jl:225 [inlined] [5] #run_julia at ./none:0 [inlined] [6] (::getfield(PackageCompiler, Symbol("##13#14")){Base.Iterators.Pairs{Symbol,Any,NTuple{14,Symbol},NamedTuple{(:sysimage, :startup_file, :handle_signals, :sysimage_native_code, :compiled_modules, :depwarn, :warn_overwrite, :compile, :cpu_target, :optimize, :debug_level, :inline, :check_bounds, :math_mode),Tuple{Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,String,String,String,Nothing,Nothing,Nothing}}},String})() at /Users/lackner/.julia/packages/PackageCompiler/oT98U/src/static_julia.jl:262 [7] cd(::getfield(PackageCompiler, Symbol("##13#14")){Base.Iterators.Pairs{Symbol,Any,NTuple{14,Symbol},NamedTuple{(:sysimage, :startup_file, :handle_signals, :sysimage_native_code, :compiled_modules, :depwarn, :warn_overwrite, :compile, :cpu_target, :optimize, :debug_level, :inline, :check_bounds, :math_mode),Tuple{Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,String,String,String,Nothing,Nothing,Nothing}}},String}, ::String) at ./file.jl:96 [8] #build_object#12(::Base.Iterators.Pairs{Symbol,Any,NTuple{14,Symbol},NamedTuple{(:sysimage, :startup_file, :handle_signals, :sysimage_native_code, :compiled_modules, :depwarn, :warn_overwrite, :compile, :cpu_target, :optimize, :debug_level, :inline, :check_bounds, :math_mode),Tuple{Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,String,String,String,Nothing,Nothing,Nothing}}}, ::Function, ::String, ::String, ::String, ::Bool) at /Users/lackner/.julia/packages/PackageCompiler/oT98U/src/static_julia.jl:261 [9] #build_object at ./none:0 [inlined] [10] build_object(::String, ::String, ::String, ::Bool, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::String, ::String, ::String, ::Nothing, ::Nothing, ::Nothing) at /Users/lackner/.julia/packages/PackageCompiler/oT98U/src/static_julia.jl:240 [11] #static_julia#5(::String, ::Bool, ::Bool, ::String, ::String, ::Nothing, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Nothing, ::Bool, ::Bool, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::String, ::String, ::String, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Cmd, ::typeof(PackageCompiler.static_julia), ::String) at /Users/lackner/.julia/packages/PackageCompiler/oT98U/src/static_julia.jl:161 [12] #static_julia at ./tuple.jl:0 [inlined] [13] #build_executable#31 at /Users/lackner/.julia/packages/PackageCompiler/oT98U/src/api.jl:104 [inlined] [14] (::getfield(PackageCompiler, Symbol("#kw##build_executable")))(::NamedTuple{(:builddir, :verbose, :optimize, :snoopfile, :debug, :cpu_target, :cc_flags),Tuple{String,Bool,String,Nothing,String,String,Cmd}}, ::typeof(PackageCompiler.build_executable), ::String, ::String, ::String) at ./none:0 [15] (::getfield(ApplicationBuilder, Symbol("##2#7")){Bool,String})() at /Users/lackner/.julia/packages/ApplicationBuilder/PzBv2/src/ApplicationBuilder.jl:164 [16] withenv(::getfield(ApplicationBuilder, Symbol("##2#7")){Bool,String}, ::Pair{String,String}, ::Vararg{Pair{String,String},N} where N) at ./env.jl:148 [17] #build_app_bundle#1(::String, ::String, ::Array{String,1}, ::Array{String,1}, ::Bool, ::Nothing, ::String, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Bool, ::Bool, ::typeof(build_app_bundle), ::String) at /Users/lackner/.julia/packages/ApplicationBuilder/PzBv2/src/ApplicationBuilder.jl:160 [18] (::getfield(ApplicationBuilder, Symbol("#kw##build_app_bundle")))(::NamedTuple{(:appname,),Tuple{String}}, ::typeof(build_app_bundle), ::String) at ./none:0 [19] top-level scope at none:0 [20] include at ./boot.jl:326 [inlined] [21] include_relative(::Module, ::String) at ./loading.jl:1038 [22] include(::Module, ::String) at ./sysimg.jl:29 [23] include(::String) at ./client.jl:403 [24] top-level scope at none:0 in expression starting at /Users/lackner/Documents/Julia/Tests/AppBuilding/build.jl:1
julia> versioninfo() Julia Version 1.1.0 Commit 80516ca202 (2019-01-21 21:24 UTC) Platform Info: OS: macOS (x86_64-apple-darwin14.5.0) CPU: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.1 (ORCJIT, broadwell) Environment: JULIA_EDITOR = atom -a JULIA_NUM_THREADS = 2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Setting up the files like:
throws the following error:
The text was updated successfully, but these errors were encountered: