I am trying to create executable file(probably .so file) that can be used in my another julia project to access methods in it. I have tried to do it so using package compiler but getting below errors while using methods “create_sysimage” and “create_library”.
I would like to check if this is the right approach (or) better way of handling this?
My requirement is I have julia app which will have to run various package code based on the request so instead of adding all those modules as dependency I am trying to create them as executables so that I can directly run them from my app.
⡆ [00m:21s] PackageCompiler: compiling incremental system imageUndefRefError: access to undefined reference
Stacktrace:
[1] getproperty
@ .\Base.jl:37 [inlined]
[2] getindex
@ .\refvalue.jl:59 [inlined]
⠙ [00m:21s] PackageCompiler: compiling incremental system image_extract_common_kw_args(service::AWS.JSONService, args::Dict{String, Any})
@ AWS C:\Users\xxxxx\.julia\packages\AWS\SchLh\src\utilities\utilities.jl:53
⠸ [00m:21s] PackageCompiler: compiling incremental system image(::AWS.JSONService)(operation::String, args::Dict{String, Any}; aws_config::AWS.AWSConfig, feature_set::AWS.FeatureSet)
@ AWS C:\Users\xxxxx\.julia\packages\AWS\SchLh\src\AWS.jl:367
[5] JSONService
@ C:\Users\xxxxx\.julia\packages\AWS\SchLh\src\AWS.jl:356 [inlined]
[6] get_secret_value(SecretId::String; aws_config::AWS.AWSConfig)
@ myapp.Secrets_Manager C:\Users\xxxxx\.julia\packages\AWS\SchLh\src\services\secrets_manager.jl:465
[7] get_secret_value(SecretId::String)
@ myapp.Secrets_Manager C:\Users\xxxxx\.julia\packages\AWS\SchLh\src\services\secrets_manager.jl:464
[8] top-level scope
@ C:\Users\xxx\\src\dep.jl:87
[9] include(mod::Module, _path::String)
@ Base .\Base.jl:495
[10] include(x::String)
@ myapp C:\Users\xxxxx\src\myapp.jl:1
[11] top-level scope
@ C:\Users\xxx\\src\be.jl:32
[12] include(mod::Module, _path::String)
@ Base .\Base.jl:495
[13] _require(pkg::Base.PkgId, env::Nothing)
@ Base .\loading.jl:2014
[14] __require_prelocked(uuidkey::Base.PkgId, env::Nothing)
@ Base .\loading.jl:1812
[15] #invokelatest#2
@ .\essentials.jl:892 [inlined]
[16] invokelatest
@ .\essentials.jl:889 [inlined]
[17] _require_prelocked
@ .\loading.jl:1805 [inlined]
[18] _require_prelocked
@ .\loading.jl:1802 [inlined]
[19] macro expansion
@ .\lock.jl:267 [inlined]
[20] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:1797
[21] top-level scope
⢰ [00m:22s] PackageCompiler: compiling incremental system image