-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Undefined references to various __atomic macros when building opencv 4.1.1 #15192
Copy link
Copy link
Closed
Description
System information (version)
- OpenCV => 4.1.1
- Operating System / Platform => Raspbian Buster armv71
- Compiler => gcc v8.3.0
Output log
[ 40%] Linking CXX executable ../../bin/opencv_perf_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'
Here's my build config:
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local/ \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-master/modules/ \
-D ENABLE_NEON=ON \
-D ENABLE_VFPV3=ON \
-D ENABLE_LTO=ON \
-D CPU_BASELINE=NEON \
-D WITH_TBB=ON \
-D WITH_OPENCL=ON \
-D WITH_GSTREAMER=ON \
-D BUILD_EXAMPLES=OFF \
-D BUILD_TESTS=OFF \
-D BUILD_SHARED=OFF ..
make
Any ideas how I might resolve this issue?
Reactions are currently unavailable