Ask Your Question

Revision history [back]

Unable to cross compiling OpenCV based application program(face detection) for RISCV architecture

I have cross compiled OpenCV library to support multi core execution with "-DWITH_OPENMP=ON" option, cmake was built successfully but when i am going to cross compiling OpenCV applications (face detection) I am getting some errors.

Error:

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_ml.a when searching for -lopencv_ml

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_videostab.a when searching for -lopencv_videostab

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_stitching.a when searching for -lopencv_stitching

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_calib3d.a when searching for -lopencv_calib3d

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_shape.a when searching for -lopencv_shape

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_objdetect.a when searching for -lopencv_objdetect

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_features2d.a when searching for -lopencv_features2d

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_flann.a when searching for -lopencv_flann

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_superres.a when searching for -lopencv_superres

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_highgui.a when searching for -lopencv_highgui

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_videoio.a when searching for -lopencv_videoio

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_imgcodecs.a when searching for -lopencv_imgcodecs

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_photo.a when searching for -lopencv_photo

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_video.a when searching for -lopencv_video

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_imgproc.a when searching for -lopencv_imgproc

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_core.a when searching for -lopencv_core

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/share/OpenCV/3rdparty/lib/libzlib.a when searching for -lzlib

/usr/bin/ld: cannot find -lzlib

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/share/OpenCV/3rdparty/lib/liblibjpeg.a when searching for -llibjpeg

/usr/bin/ld: cannot find -llibjpeg

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux /riscv_build/install/share/OpenCV/3rdparty/lib/liblibwebp.a when searching for -llibwebp

/usr/bin/ld: cannot find -llibwebp

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/share/OpenCV/3rdparty/lib/liblibtiff.a when searching for -llibtiff

/usr/bin/ld: cannot find -llibtiff

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/share/OpenCV/3rdparty/lib/liblibjasper.a when searching for -llibjasper /usr/bin/ld: cannot find -llibjasper collect2: error: ld returned 1 exit status <builtin>: recipe for target 'facedetect' failed make: * [facedetect] Error 1

can any one please help me to resolve this errors

Thanks in Advance