Open zhengzhe97 opened 4 years ago
I received the same error. Did you find a way to fix the issue?
/usr/bin/ld: skipping incompatible /home/ubuntu/Face-Detector-1MB-with-landmark/Face_Detector_ncnn/ncnn/lib/libncnn.a when searching for -lncnn
/usr/bin/ld: cannot find -lncnn
collect2: error: ld returned 1 exit status
CMakeFiles/FaceDetector.dir/build.make:119: recipe for target 'FaceDetector' failed
make[2]: *** [FaceDetector] Error 1
CMakeFiles/Makefile2:94: recipe for target 'CMakeFiles/FaceDetector.dir/all' failed
make[1]: *** [CMakeFiles/FaceDetector.dir/all] Error 2
Makefile:102: recipe for target 'all' failed
make: *** [all] Error 2```
@mingquanyuan @zhengzhe97
You need to recompile the ncnn for the specific platform,and then substitute the libncnn.a under the lib folder with the libncnn.a you compile for the platform under the ncnn project folder.Here is the reference link:https://github.com/Tencent/ncnn/wiki/how-to-build
I run the demo on jetson nano, but it has an error when I built project:
/usr/bin/ld : skipping incompatible /........./Face-Detector-1MB-with-landmark/Face_Detector_ncnn/ncnn/lib/libncnn.a when searching for -lncnn /usr/bin/ld : cannot find -lncnn
have any solution for this error?