Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

conflict between opencv libraries

I have the following warning and errors on Qt:

:-1: warning: libopencv_core.so.3.1, needed by //usr/local/lib/libopencv_cudafeatures2d.so, may conflict with libopencv_core.so.2.4

:-1: error: algorithmes.o: undefined reference to symbol '_ZN2cv8internal18WriteStructContextC1ERNS_11FileStorageERKNS_6StringEiS6_'

/usr/local/lib/libopencv_core.so.3.1:-1: error: error adding symbols: DSO missing from command line

:-1: error: collect2: error: ld returned 1 exit status

I imagine that the errors are due to the potential conflict mentioned in the warning. What should I do in my .pro LIBS to put the right lopencv_core library ?