OpenCV Libaries not found. [closed]

asked 2017-09-14 23:12:40 -0600

I am working with the kdenlive video editor and it seems as if the opencv libaries are not found, making the program work incorrectly, etc. Here is my GDB debug session code: https://hastebin.com/enuxajelog.go

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-12-05 16:02:08.107379

Comments

which opencv version is this using, and how did you install it ?

_ZN2cv7Tracker4initERKNS_3MatERKNS_5Rect_IdEE means, it's using the tracking module from here

you probably have to rebuild the opencv libs with opencv_contrib

berak gravatar imageberak ( 2017-09-15 01:30:09 -0600 )edit
1

Ok I willy try and see if this works but how would i do that. BTW thank you for helping me and I wanted to also let you know that the link is broken.

NV-PCMR gravatar imageNV-PCMR ( 2017-09-20 09:18:14 -0600 )edit

apologies, link fixed !

berak gravatar imageberak ( 2017-09-20 09:24:43 -0600 )edit

So in this instance im just building extra opencv modules?? If so, how does this work im such a n00b when it comes to opencv libaries....

NV-PCMR gravatar imageNV-PCMR ( 2017-09-20 10:48:49 -0600 )edit

no, this will build ALL of opencv, including the contrib modules

berak gravatar imageberak ( 2017-09-20 10:58:50 -0600 )edit

Ok I tried building multiple times on Arch Linux and it isnt working. It either usually says it cant find any modules even though I have all dependencies needed and have explicitly told cmake where the modules are, or it gives this:

`CMake Error at CMakeLists.txt:11 (message):

FATAL: In-source builds are not allowed.

     You should create a separate directory for build files.

-- Configuring incomplete, errors occurred! `

NV-PCMR gravatar imageNV-PCMR ( 2017-09-21 01:15:32 -0600 )edit

don't worry.

you're supposed to make a "build" folder somewhere, and start cmake from there (do not start cmake from the opencv root folder).

then pass the path to the opencv root folder as last argument to cmake

(you're not allowed to build in the root folder, because it is impossible, to clean it up or revert properly)

berak gravatar imageberak ( 2017-09-21 01:29:55 -0600 )edit

ok i got it to finally make the configuration/make file but I get this error when I actually make/build it(code was waaay to long so ill link it): 'https://hastebin.com/axapuyaqam.rb'

EDIT: Ok after playing around with cuda and setting it to the coreect version i get an nvcc failure : nvcc fatal : redefinition of argument 'compiler-bindir' CMake Error at cuda_compile_generated_gpu_mat.cu.o.cmake:208 (message): Error generating /home/louie/Downloads/opencv-master/build/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_gpu_mat.cu.o

Another thing to add is that I get an nvcc failure after setting cuda(8.0.61) to the right version in my system. I also see the gcc failure a couple of lines up before the problems acutally occur, got any ideas?

NV-PCMR gravatar imageNV-PCMR ( 2017-09-21 17:09:25 -0600 )edit

And also here is the command I am using with cmake before building it:

cmake -D WITH_TBB=ON -D INSTALL_C_EXAMPLES=ON -D WITH_EIGEN=OFF -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D CMAKE_BUILD_TYPE=RELEASE -D CUDA_NVCC_FLAGS="-ccbin gcc-5" -D CUDA_HOST_COMPILER:FILEPATH=/usr/bin/gcc-5 -D OPENCV_EXTRA_MODULES_PATH=~/Downloads/opencv_contrib-master/modules ..

EDIT: Ok after setting the version to gcc5.4 it still does not make a difference.

NV-PCMR gravatar imageNV-PCMR ( 2017-09-21 18:52:00 -0600 )edit