biubug6 / Face-Detector-1MB-with-landmark

1M人脸检测模型(含关键点)
MIT License
1.03k stars 270 forks source link

run demo on jetson nano #21

Open zhengzhe97 opened 4 years ago

zhengzhe97 commented 4 years ago

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?

mingquanyuan commented 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```
Jumponthemoon commented 3 years ago

@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