Beaglebone Compiler Error

asked 2015-03-25 17:25:26 -0500

skipi4 gravatar image

When i try to compile my program it is giving me some strange errors that I cannot fix:

root@beaglebone:~# g++ `pkg-config --cflags opencv` `pkg-config --libs opencv` RedDetect.cpp -o RedDetect -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_videoio
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.7.3/../../../../arm-angstrom-linux-gnueabi/bin/ld: warning: libopencv_core.so.3.0, needed by //usr/local/lib/libopencv_videoio.so, may conflict with libopencv_core.so.2.4
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.7.3/../../../../arm-angstrom-linux-gnueabi/bin/ld: warning: libopencv_core.so.3.0, needed by //usr/local/lib/libopencv_videoio.so, may conflict with libopencv_core.so.2.4
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.7.3/../../../../arm-angstrom-linux-gnueabi/bin/ld: /tmp/ccOydwPR.o: undefined reference to symbol '_ZNK2cv11_InputArray12getOGlBufferEv'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.7.3/../../../../arm-angstrom-linux-gnueabi/bin/ld: note: '_ZNK2cv11_InputArray12getOGlBufferEv' is defined in DSO //usr/local/lib/libopencv_core.so.3.0 so try adding it to the linker command line
//usr/local/lib/libopencv_core.so.3.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status

I've tried a lot of trouble shooting on the internet but still can't get anywhere, any help would really be appreciated! Thanks in advance

edit retag flag offensive close merge delete