JuliaImages / ImageSegmentation.jl

Partitioning images into meaningful regions
Other
47 stars 23 forks source link

Trouble to compile ImageSegmentation on Julia 1 #27

Closed Navrique closed 5 years ago

Navrique commented 5 years ago

Hi all, Everything is in the title. I cannot compile JuliaSegmentation.

[ Info: Precompiling ImageSegmentation [80713f31-8817-5129-9cf8-209ff8fb23e1]
ERROR: LoadError: LoadError: syntax: unsupported `const` declaration on local variable around /home/eduranda/.julia/packages/ImageSegmentation/R01Ph/src/region_growing.jl:68
Stacktrace:
 [1] include at ./boot.jl:317 [inlined]
 [2] include_relative(::Module, ::String) at ./loading.jl:1038
 [3] include at ./sysimg.jl:29 [inlined]
 [4] include(::String) at /home/eduranda/.julia/packages/ImageSegmentation/R01Ph/src/ImageSegmentation.jl:3
 [5] top-level scope at none:0
 [6] include at ./boot.jl:317 [inlined]
 [7] include_relative(::Module, ::String) at ./loading.jl:1038
 [8] include(::Module, ::String) at ./sysimg.jl:29
 [9] top-level scope at none:2
 [10] eval at ./boot.jl:319 [inlined]
 [11] eval(::Expr) at ./client.jl:389
 [12] top-level scope at ./none:3
in expression starting at /home/eduranda/.julia/packages/ImageSegmentation/R01Ph/src/region_growing.jl:65
in expression starting at /home/eduranda/.julia/packages/ImageSegmentation/R01Ph/src/ImageSegmentation.jl:23
ERROR: Failed to precompile ImageSegmentation [80713f31-8817-5129-9cf8-209ff8fb23e1] to /home/eduranda/.julia/compiled/v1.1/ImageSegmentation/khx7z.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] macro expansion at ./logging.jl:313 [inlined]
 [3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1184
 [4] _require(::Base.PkgId) at ./logging.jl:311
 [5] require(::Base.PkgId) at ./loading.jl:852
 [6] macro expansion at ./logging.jl:311 [inlined]
 [7] require(::Module, ::Symbol) at ./loading.jl:834
timholy commented 5 years ago

Fixed by #28 and #29