Opencv C++ compilation error anonymous namespace ::hlineResize

asked 2019-05-30 05:08:31 -0600

mirhanu gravatar image

I have Opencv 3.4.3 installed on my Raspberry Pi. When I try to compile a simple C++ script with "g++ -std=c++0x -o runnable removeRedEyes.cpp pkg-config --libs --cflags opencv" it throws me the error given below. Opencv built succesfully without error. What woulde be the cause?

Thanks.

/usr/local/lib/libopencv_imgproc.so: undefined reference to void (anonymous namespace)::hlineResize<unsigned char, (anonymous namespace)::ufixedpoint16, 2, false>(unsigned char*, int, int*, (anonymous namespace)::ufixedpoint16*, (anonymous namespace)::ufixedpoint16*, int, int, int)' /usr/local/lib/libopencv_imgproc.so: undefined reference tovoid (anonymous namespace)::hlineResize<signed char,="" (anonymous="" namespace)::fixedpoint32,="" 2,="" false="">(signed char, int, int, (anonymous namespace)::fixedpoint32, (anonymous namespace)::fixedpoint32, int, int, int)' /usr/local/lib/libopencv_imgproc.so: undefined reference to void (anonymous namespace)::hlineResizeCn<unsigned short, (anonymous namespace)::ufixedpoint32, 2, true, 4>(unsigned short*, int, int*, (anonymous namespace)::ufixedpoint32*, (anonymous namespace)::ufixedpoint32*, int, int, int)' /usr/local/lib/libopencv_imgproc.so: undefined reference tovoid (anonymous namespace)::hlineResizeCn<int, (anonymous="" namespace)::fixedpoint64,="" 2,="" true,="" 3="">(int, int, int, (anonymous namespace)::fixedpoint64, (anonymous namespace)::fixedpoint64, int, int, int)' collect2: ld returned 1 exit status

edit retag flag offensive close merge delete

Comments

I have Opencv 3.4.3 installed on my Raspberry Pi.

how, exactly ? are there any previous opencv versions on your box ?

pkg-config

try to avoid that, since you can't control / see what is going on.

berak gravatar imageberak ( 2019-05-31 00:14:17 -0600 )edit

No, there aint any opencv installed. I have no idea why it throws this error.

mirhanu gravatar imagemirhanu ( 2019-05-31 01:36:24 -0600 )edit