maxruby / OpenCV.jl

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

Correcting a typo (?) for libs in linux #5

Closed romainFr closed 9 years ago

romainFr commented 9 years ago

At least in Ubuntu 14.04. I was getting the ERROR: LoadError: No pre-installed libraries. Set path manually or install OpenCV. before that.

After this correction, I'm still getting the following error though:

ERROR: LoadError: UndefVarError: RTLD_GLOBAL not defined
 in anonymous at ./no file:76
 in include at ./boot.jl:250
 in include_from_node1 at ./loading.jl:129
 in reload_path at ./loading.jl:153
 in _require at ./loading.jl:68
 in require at ./loading.jl:52
while loading ~/.julia/v0.4/OpenCV/src/OpenCV.jl, in expression starting on line 71
maxruby commented 9 years ago

Sorry to hear that you are having trouble loading the OpenCV libs in Ubuntu. Have you seen the discussion in #3? I never had a chance to finalize a more generic script for loading the libs for Linux or Windows, simply because I mainly work on OSX. However, we can try to find a more general solution if I understand what the problem actually is. What is the path of your OpenCV libs in Ubuntu? Is your OpenCV installation working already in your system?

romainFr commented 9 years ago

OpenCV is working, and the libraries are found (with the correction). The extra error was due to a recent change in Julia (https://github.com/JuliaLang/julia/pull/10328) : dlopen and RTLD_GLOBAL should be Libdl.dlopen and Libdl.RTLD_GLOBAL throughout. I'm still getting core dumps past that, though, I'll try to investigate them when I get the time.

maxruby commented 9 years ago

OK. I will merge your PR after checking, but it will be good to find out what else is preventing a smooth use of OpenCV.jl in Ubuntu.