Problems using OpenCV

julia> import OpenCV
Precompiling OpenCV
        Info Given OpenCV was explicitly requested, output will be shown live 
ERROR: LoadError: InitError: could not load library "/home/o/.julia/artifacts/beeb384c8ba60497d81e26a28f74ed99aef88791/lib/libcxxwrap_julia.so"V_jll
/home/o/.julia/artifacts/beeb384c8ba60497d81e26a28f74ed99aef88791/lib/libcxxwrap_julia.so: undefined symbol: small_typeof, version JL_LIBJULIA_1.10
Stacktrace:
  [1] dlopen(s::String, flags::UInt32; throw_error::Bool)
    @ Base.Libc.Libdl ./libdl.jl:117
  [2] dlopen(s::String, flags::UInt32)

No idea how to fix it … or what information to provide in order to get the right hints what might be the problem (Linux Mint 21.2 Xfce , Julia Version 1.10.4 )

This is known issue Precompile error on Julia 1.10 · Issue #36 · JuliaImages/OpenCV.jl · GitHub

Use Julia 1.9

1 Like

This issue resolved in Bump package version, CXXWrap, and some small fixes by ViralBShah · Pull Request #47 · JuliaImages/OpenCV.jl · GitHub.

Now, OpenCV works fine in new versions of julia.

4 Likes