maxruby / OpenCV.jl

The OpenCV (C++) interface for Julia
Other
104 stars 28 forks source link

"viz is not found in pkg-config" issue #39

Closed vishwesh5 closed 6 years ago

vishwesh5 commented 6 years ago

I have compiled OpenCV with OpenCV_contrib on Ubuntu 18.04 system. When I try using Julia and OpenCV, I get the following error:

julia> using OpenCV
viz is not found in pkg-config
ERROR: LoadError: could not load library "/usr/local/lib/libopencv_viz.so"
/usr/local/lib/libopencv_viz.so: cannot open shared object file: No such file or directory
Stacktrace:
 [1] dlopen(::String, ::UInt32) at ./libdl.jl:97
 [2] macro expansion at /home/hp/.julia/v0.6/OpenCV/src/OpenCV.jl:75 [inlined]
 [3] anonymous at ./<missing>:?
 [4] include_from_node1(::String) at ./loading.jl:576
 [5] eval(::Module, ::Any) at ./boot.jl:235
 [6] _require(::Symbol) at ./loading.jl:490
 [7] require(::Symbol) at ./loading.jl:405
while loading /home/hp/.julia/v0.6/OpenCV/src/OpenCV.jl, in expression starting on line 70

I went through a similar issue but I couldn't find a solution to resolve this. Is there any way to fix this without recompiling OpenCV?