make opencv-4.1.1 fails

asked 2019-10-08 10:30:49 -0600

zbbhhb gravatar image

updated 2019-10-09 00:52:39 -0600

berak gravatar image

[ 28%] Linking CXX executable ../../bin/opencv_test_core /usr/bin/ld: ../../lib/libopencv_core.so.4.1.1: undefined reference to __atomic_fetch_add_8' /usr/bin/ld: ../../lib/libopencv_core.so.4.1.1: undefined reference to__atomic_fetch_sub_8' /usr/bin/ld: ../../lib/libopencv_core.so.4.1.1: undefined reference to __atomic_store_8' /usr/bin/ld: ../../lib/libopencv_core.so.4.1.1: undefined reference to__atomic_load_8' /usr/bin/ld: ../../lib/libopencv_core.so.4.1.1: undefined reference to `__atomic_compare_exchange_8' collect2: error: ld returned 1 exit status make[2]: * [modules/core/CMakeFiles/opencv_test_core.dir/build.make:571: bin/opencv_test_core] Error 1 make[1]: [CMakeFiles/Makefile2:1404: modules/core/CMakeFiles/opencv_test_core.dir/all] Error 2 make: ** [Makefile:163: all] Error 2

edit retag flag offensive close merge delete

Comments

I had same problem as your stopped @ 28%. It because I installed wrong libraries. But now I'm using OpenCV 4.1.2-pre. using raspberry pi 4B took me 90 minutes.and make -j4 too Which link did you downloaded?

supra56 gravatar imagesupra56 ( 2019-10-08 22:00:58 -0600 )edit
berak gravatar imageberak ( 2019-10-09 00:52:02 -0600 )edit

@zbbhhb. Is rpi 3b/b+ or rpi 4B?

supra56 gravatar imagesupra56 ( 2019-10-09 06:03:22 -0600 )edit

@supra56 Rpi 4B

zbbhhb gravatar imagezbbhhb ( 2019-10-09 23:59:01 -0600 )edit