dhoegh / BuildExecutable.jl

Build a standalone executables from a Julia script
Other
156 stars 21 forks source link

UndefVarError #17

Open sfchen opened 8 years ago

sfchen commented 8 years ago

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

dhoegh commented 8 years ago

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

sfchen commented 8 years ago

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 commented 8 years ago

This issue is gone after use Module.func()

But got another error:

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

dhoegh commented 8 years ago

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