I am following the https://visualgdb.com/tutorials/raspberry/opencv/build/ tutorial to cross compile to a raspberry pi. I am using Open CV 4.1.1. and Visual Studio 19. I get to step 13 and I get these errors showing up. Can anyone let me know what to do to remedy the errors?
Severity Code Description Project File Line Suppression State
Error undefined reference to `__atomic_load_8' LinuxProject1 c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/8/../../../../arm-linux-gnueabihf/bin/ld.exe: ../../lib/libopencv_core.so.4.1.1
Severity Code Description Project File Line Suppression StateError undefined reference to `__atomic_fetch_add_8' LinuxProject1 c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/8/../../../../arm-linux-gnueabihf/bin/ld.exe: ../../lib/libopencv_core.so.4.1.1
Severity Code Description Project File Line Suppression State
Error undefined reference to `__atomic_compare_exchange_8' LinuxProject1 c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/8/../../../../arm-linux-gnueabihf/bin/ld.exe: ../../lib/libopencv_core.so.4.1.1
Severity Code Description Project File Line Suppression State
Error undefined reference to `__atomic_store_8' LinuxProject1 c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/8/../../../../arm-linux-gnueabihf/bin/ld.exe: ../../lib/libopencv_core.so.4.1.1
Severity Code Description Project File Line Suppression State
Error undefined reference to `__atomic_fetch_sub_8' LinuxProject1 c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/8/../../../../arm-linux-gnueabihf/bin/ld.exe: ../../lib/libopencv_core.so.4.1.1
Thanks,
Andrew
This topic was modified 5 years ago by support. Reason: formatting
This looks like some sort of incompatibility between a specific version of the toolchain and a specific version of OpenCV.
Unfortunately, as both components are outside of our control, we are not able to cover this with our regular technical support, so our best advice would be to try asking on the OpenCV forums if anyone has encountered similar errors before.