Closed arnaudmgh closed 7 years ago
I may add that I am NOT using the master branch of the Cxx package, I switched to the bug branch as advised by Keno. Also, I did not compile openCV, I was hoping to use the shared library shipping with openCV.jl.
I will have a look soon at this since I could get past the RTLD_GLOBAL (I was travelling).
I went through the julia/Cxx/OpenCV/OpenCV.jl build+install sequence today and am seeing a similar problem:
julia> using OpenCV
libopencv_viz.3.0.0 is not found in pkg-config
ERROR: LoadError: UndefVarError: RTLD_GLOBAL not defined
while loading /Users/adare/.julia/v0.4/OpenCV/src/OpenCV.jl, in expression starting on line 71
The libopencv_viz issue may be completely unrelated (but I'm not sure, so I won't open a separate issue). I'm noticing just now that the viz module was listed as "Unavailable" when I ran CMake for my OpenCV installation. Maybe viz depends on VTK, and it doesn't look like I have that installed. If OpenCV.jl will not load without libopencv_viz, would it be worth mentioning these prerequisites in the installation directions?
That is correct, viz requires VTK flag switched on. See e.g., this link. Regarding, the dependencies for loading OpenCV.jl, this is unfortunately affected by changes made in Julia base or Cxx. I am not sure we can have full protection from these changes. I am hoping that once v0.4 is released, it will be easier to maintain OpenCV.jl as a stable package. But I agree we could have more clearly stated all the requirements for OpenCV.jl and if you want to add these yourself, I welcome suggestions in a PR. Thank you.
Thanks for the info. I'd be happy to write a PR once I sort it out. In the meantime, I'll cope with the warning that libopencv_viz is not being loaded and get back to the topic of this issue: if I qualify a few names with Libdl, I get past this error. Specifically,
RTLD_GLOBAL
--> Libdl.RTLD_GLOBAL
and dlopen_e(...)
--> Libdl.dlopen_e(...)
in OpenCV.jldlopen(...)
--> Libdl.dlopen(...)
in deps/Qt_support.jlNow I'm having Qt problems, so on to that....
Just an update: after installing Qt 5.4 and changing the hard-coded paths in Qt_support.jl to that version, OpenCV.jl seems to work. I can run all the tests, goat video and all. When I first load OpenCV, I do see this:
Warning: requiring "OpenCV" did not define a corresponding module.
But I'm not sure what to make of it, since my preliminary trials seem to indicate things are working.
Great. That message is related to Cxx.jl
not being packaged as a module.