BuildExecutable.jl icon indicating copy to clipboard operation
BuildExecutable.jl copied to clipboard

UndefVarError

Open sfchen opened this issue 8 years ago • 4 comments

I met UndefVarError(:alk) error after I run the built binary.

alk() is definied by my module, and I've import the module before main()

If I call main() in REPL everything works well, but it fails if I run the executable

OS: Mac OSX Julia v0.5

sfchen avatar Apr 19 '16 05:04 sfchen

Do you call the function like: MyModule.alk(). Full qualification of the objects in a module is necessary see https://github.com/dhoegh/BuildExecutable.jl/blob/master/README.md

dhoegh avatar Apr 19 '16 06:04 dhoegh

I didn't use Module.func(), trying now... thanks.

Another issue, the built executable dir is very big (> 200MB), which makes it not convenient to deploy. Is there any way to make a small and clean build (like < 30 MB)

sfchen avatar Apr 19 '16 06:04 sfchen

This issue is gone after use Module.func()

But got another error:

SystemError("mkdir",17,"alk")

sfchen avatar Apr 19 '16 06:04 sfchen

Do you still have an issue, if so could you provide more information?

dhoegh avatar Jul 21 '16 17:07 dhoegh