Tencent / ncnn

ncnn is a high-performance neural network inference framework optimized for the mobile platform
Other
20.56k stars 4.18k forks source link

Error in build armv7 library #479

Closed johnsoong closed 6 years ago

johnsoong commented 6 years ago

最后Make -j4的时候报错,求解决方案(T_T

[ 93%] Linking CXX executable ssdmobilenet /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_videostab.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_videostab.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_ml.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_ml.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_shape.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_shape.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_videoio.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_videoio.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_objdetect.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_objdetect.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_core.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_core.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_stitching.so.3.4.2: incompatible target/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_stitching.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_highgui.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_highgui.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgproc.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgproc.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_features2d.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_features2d.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_photo.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_photo.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_calib3d.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_calib3d.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgcodecs.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgcodecs.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_dnn.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_dnn.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_flann.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_flann.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_video.so.3.4.2: incompatible target/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_video.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_superres.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_superres.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_videostab.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_videostab.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_ml.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_ml.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_shape.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_shape.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_videoio.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_videoio.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_objdetect.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_core.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_objdetect.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_stitching.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_core.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_highgui.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_stitching.so.3.4.2: incompatible target/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgproc.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_highgui.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_features2d.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_photo.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgproc.so.3.4.2: incompatible target/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_calib3d.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgcodecs.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_features2d.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_dnn.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_photo.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_flann.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_calib3d.so.3.4.2: incompatible target/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_video.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_superres.so.3.4.2: incompatible target/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgcodecs.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_core.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_dnn.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_highgui.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_flann.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgproc.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgcodecs.so.3.4.2: incompatible target/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_video.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_features2d.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_superres.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_highgui.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_flann.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_core.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_videoio.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgcodecs.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_highgui.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_video.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgproc.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgproc.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgcodecs.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_core.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_features2d.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_highgui.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_flann.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_videoio.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgcodecs.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_video.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgproc.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_core.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_videostab.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_ml.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_shape.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_videoio.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_objdetect.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_core.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_stitching.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_highgui.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgproc.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_features2d.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_photo.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_calib3d.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgcodecs.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_dnn.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_flann.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_video.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_superres.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_videostab.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_ml.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_shape.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_videoio.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_objdetect.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_core.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_stitching.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_highgui.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgproc.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_features2d.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_photo.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_calib3d.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgcodecs.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_dnn.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_flann.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_video.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_superres.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_core.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_highgui.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgproc.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgcodecs.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_videostab.so.3.4.2: incompatible target/home/songyan/Document/opencv-3.4.2/release/lib/libopencv_features2d.so.3.4.2: incompatible target

/home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_highgui.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_ml.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_flann.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_shape.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_videoio.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_videoio.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgcodecs.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_objdetect.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_video.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_core.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgproc.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_stitching.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_core.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_highgui.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgproc.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_features2d.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_photo.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_calib3d.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgcodecs.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_dnn.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_flann.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_video.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_superres.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_videostab.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_ml.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_shape.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_videoio.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_objdetect.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_core.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_stitching.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_highgui.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgproc.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_features2d.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_photo.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_calib3d.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgcodecs.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_dnn.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_flann.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_video.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_superres.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_core.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_highgui.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgproc.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgcodecs.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_core.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_highgui.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_features2d.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_highgui.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_flann.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_videoio.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgcodecs.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_video.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_imgproc.so.3.4.2: incompatible target /home/songyan/Document/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /home/songyan/Document/opencv-3.4.2/release/lib/libopencv_core.so.3.4.2: incompatible target /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:602: error: undefined reference to 'cv::String::allocate(unsigned int)' /home/songyan/Document/ncnn-master/examples/squeezenet.cpp:80: error: undefined reference to 'cv::imread(cv::String const&, int)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:648: error: undefined reference to 'cv::String::deallocate()' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/mat.inl.hpp:808: error: undefined reference to 'cv::Mat::deallocate()' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/mat.inl.hpp:696: error: undefined reference to 'cv::fastFree(void)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:602: error: undefined reference to 'cv::String::allocate(unsigned int)' /home/songyan/Document/ncnn-master/examples/yolov2.cpp:139: error: undefined reference to 'cv::imread(cv::String const&, int)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:648: error: undefined reference to 'cv::String::deallocate()' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/mat.inl.hpp:768: error: undefined reference to 'cv::Mat::copyTo(cv::OutputArray const&) const' /home/songyan/Document/ncnn-master/examples/yolov2.cpp:108: error: undefined reference to 'cv::rectangle(cv::Mat&, cv::Rect, cv::Scalar_ const&, int, int, int)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:602: error: undefined reference to 'cv::String::allocate(unsigned int)' /home/songyan/Document/ncnn-master/examples/yolov2.cpp:114: error: undefined reference to 'cv::getTextSize(cv::String const&, int, double, int, int)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:648: error: undefined reference to 'cv::String::deallocate()' /home/songyan/Document/ncnn-master/examples/yolov2.cpp:123: error: undefined reference to 'cv::rectangle(cv::Mat&, cv::Rect, cv::Scalar const&, int, int, int)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:602: error: undefined reference to 'cv::String::allocate(unsigned int)' /home/songyan/Document/ncnn-master/examples/yolov2.cpp:127: error: undefined reference to 'cv::putText(cv::InputOutputArray const&, cv::String const&, cv::Point, int, double, cv::Scalar_, int, int, bool)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:648: error: undefined reference to 'cv::String::deallocate()' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:602: error: undefined reference to 'cv::String::allocate(unsigned int)' /home/songyan/Document/ncnn-master/examples/yolov2.cpp:131: error: undefined reference to 'cv::imshow(cv::String const&, cv::_InputArray const&)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:648: error: undefined reference to 'cv::String::deallocate()' /home/songyan/Document/ncnn-master/examples/yolov2.cpp:132: error: undefined reference to 'cv::waitKey(int)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/mat.inl.hpp:808: error: undefined reference to 'cv::Mat::deallocate()' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/mat.inl.hpp:696: error: undefined reference to 'cv::fastFree(void)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/mat.inl.hpp:808: error: undefined reference to 'cv::Mat::deallocate()' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/mat.inl.hpp:696: error: undefined reference to 'cv::fastFree(void)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:602: error: undefined reference to 'cv::String::allocate(unsigned int)' /home/songyan/Document/ncnn-master/examples/fasterrcnn.cpp:320: error: undefined reference to 'cv::imread(cv::String const&, int)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:648: error: undefined reference to 'cv::String::deallocate()' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/mat.inl.hpp:768: error: undefined reference to 'cv::Mat::copyTo(cv::OutputArray const&) const' /home/songyan/Document/ncnn-master/examples/fasterrcnn.cpp:289: error: undefined reference to 'cv::rectangle(cv::Mat&, cv::Rect, cv::Scalar const&, int, int, int)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:602: error: undefined reference to 'cv::String::allocate(unsigned int)' /home/songyan/Document/ncnn-master/examples/fasterrcnn.cpp:295: error: undefined reference to 'cv::getTextSize(cv::String const&, int, double, int, int*)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:648: error: undefined reference to 'cv::String::deallocate()' /home/songyan/Document/ncnn-master/examples/fasterrcnn.cpp:304: error: undefined reference to 'cv::rectangle(cv::Mat&, cv::Rect, cv::Scalar_ const&, int, int, int)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:602: error: undefined reference to 'cv::String::allocate(unsigned int)' /home/songyan/Document/ncnn-master/examples/fasterrcnn.cpp:308: error: undefined reference to 'cv::putText(cv::InputOutputArray const&, cv::String const&, cv::Point, int, double, cv::Scalar_, int, int, bool)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:648: error: undefined reference to 'cv::String::deallocate()' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:602: error: undefined reference to 'cv::String::allocate(unsigned int)' /home/songyan/Document/ncnn-master/examples/fasterrcnn.cpp:312: error: undefined reference to 'cv::imshow(cv::String const&, cv::InputArray const&)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:648: error: undefined reference to 'cv::String::deallocate()' /home/songyan/Document/ncnn-master/examples/fasterrcnn.cpp:313: error: undefined reference to 'cv::waitKey(int)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/mat.inl.hpp:808: error: undefined reference to 'cv::Mat::deallocate()' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/mat.inl.hpp:696: error: undefined reference to 'cv::fastFree(void)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/mat.inl.hpp:808: error: undefined reference to 'cv::Mat::deallocate()' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/mat.inl.hpp:696: error: undefined reference to 'cv::fastFree(void)' clang++: error: linker command failed with exit code 1 (use -v to see invocation) examples/CMakeFiles/squeezenet.dir/build.make:130: recipe for target 'examples/squeezenet' failed make[2]: [examples/squeezenet] Error 1 CMakeFiles/Makefile2:96: recipe for target 'examples/CMakeFiles/squeezenet.dir/all' failed make[1]: [examples/CMakeFiles/squeezenet.dir/all] Error 2 make[1]: *** 正在等待未完成的任务.... /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:602: error: undefined reference to 'cv::String::allocate(unsigned int)' /home/songyan/Document/ncnn-master/examples/ssd/ssdmobilenet.cpp:108: error: undefined reference to 'cv::imread(cv::String const&, int)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:648: error: undefined reference to 'cv::String::deallocate()' /home/songyan/Document/ncnn-master/examples/ssd/ssdmobilenet.cpp:85: error: undefined reference to 'cv::rectangle(cv::Mat&, cv::Rect, cv::Scalar const&, int, int, int)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.inl.hpp:81: error: undefined reference to 'cv::String::allocate(unsigned int)' /home/songyan/Document/ncnn-master/examples/ssd/ssdmobilenet.cpp:90: error: undefined reference to 'cv::getTextSize(cv::String const&, int, double, int, int*)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:648: error: undefined reference to 'cv::String::deallocate()' /home/songyan/Document/ncnn-master/examples/ssd/ssdmobilenet.cpp:91: error: undefined reference to 'cv::rectangle(cv::Mat&, cv::Rect, cv::Scalar_ const&, int, int, int)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.inl.hpp:81: error: undefined reference to 'cv::String::allocate(unsigned int)' /home/songyan/Document/ncnn-master/examples/ssd/ssdmobilenet.cpp:94: error: undefined reference to 'cv::putText(cv::InputOutputArray const&, cv::String const&, cv::Point, int, double, cv::Scalar_, int, int, bool)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:648: error: undefined reference to 'cv::String::deallocate()' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:602: error: undefined reference to 'cv::String::allocate(unsigned int)' /home/songyan/Document/ncnn-master/examples/ssd/ssdmobilenet.cpp:98: error: undefined reference to 'cv::imshow(cv::String const&, cv::_InputArray const&)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/cvstd.hpp:648: error: undefined reference to 'cv::String::deallocate()' /home/songyan/Document/ncnn-master/examples/ssd/ssdmobilenet.cpp:99: error: undefined reference to 'cv::waitKey(int)' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/mat.inl.hpp:808: error: undefined reference to 'cv::Mat::deallocate()' /home/songyan/Document/opencv-3.4.2/modules/core/include/opencv2/core/mat.inl.hpp:696: error: undefined reference to 'cv::fastFree(void*)' clang++: error: linker command failed with exit code 1 (use -v to see invocation) examples/CMakeFiles/yolov2.dir/build.make:130: recipe for target 'examples/yolov2' failed make[2]: [examples/yolov2] Error 1 CMakeFiles/Makefile2:170: recipe for target 'examples/CMakeFiles/yolov2.dir/all' failed make[1]: [examples/CMakeFiles/yolov2.dir/all] Error 2 clang++: error: linker command failed with exit code 1 (use -v to see invocation) examples/CMakeFiles/fasterrcnn.dir/build.make:130: recipe for target 'examples/fasterrcnn' failed make[2]: [examples/fasterrcnn] Error 1 CMakeFiles/Makefile2:133: recipe for target 'examples/CMakeFiles/fasterrcnn.dir/all' failed make[1]: [examples/CMakeFiles/fasterrcnn.dir/all] Error 2 clang++: error: linker command failed with exit code 1 (use -v to see invocation) examples/ssd/CMakeFiles/ssdmobilenet.dir/build.make:132: recipe for target 'examples/ssd/ssdmobilenet' failed make[2]: [examples/ssd/ssdmobilenet] Error 1 CMakeFiles/Makefile2:227: recipe for target 'examples/ssd/CMakeFiles/ssdmobilenet.dir/all' failed make[1]: [examples/ssd/CMakeFiles/ssdmobilenet.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2

nihui commented 6 years ago

for android build, do not include example dir

use a clean ncnn source checkout follow the instruction of build for andoird https://github.com/Tencent/ncnn/wiki/how-to-build

johnsoong commented 6 years ago

@nihui thx~