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

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

collect2: error: ld returned 1 exit status #52

Open chaotianjiao opened 3 years ago

chaotianjiao commented 3 years ago

大佬好!这是我见过的最牛逼的仓库之一,感谢大佬的伟大贡献,当我在ncnn哪里执行 make -j4 i的时候每次到100%就报错了:

[100%] Linking CXX executable FaceDetector
...
detectionoutput.cpp:(.text+0x3af): undefined reference to `__expf_finite'
/usr/bin/ld: detectionoutput.cpp:(.text+0x3cb): undefined reference to `__expf_finite'
/usr/bin/ld: /home/felix/PycharmProjects/Face-Detector-1MB-with-landmark/Face_Detector_ncnn/ncnn/lib/libncnn.a(deconvolutiondepthwise.cpp.o): in function `ncnn::DeconvolutionDepthWise::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const [clone ._omp_fn.0]':
deconvolutiondepthwise.cpp:(.text+0x6c6): undefined reference to `__expf_finite'
/usr/bin/ld: /home/felix/PycharmProjects/Face-Detector-1MB-with-landmark/Face_Detector_ncnn/ncnn/lib/libncnn.a(deconvolutiondepthwise.cpp.o):deconvolutiondepthwise.cpp:(.text+0xee9): more undefined references to `__expf_finite' follow
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/FaceDetector.dir/build.make:120:FaceDetector] error 1
make[1]: *** [CMakeFiles/Makefile2:83:CMakeFiles/FaceDetector.dir/all] error2
make: *** [Makefile:91:all] error2

环境是ubuntu20.04,ncnn,vulkan,opencv均已正确安装,大佬可以指点下这个是哪里出了问题吗?

cuongngm commented 3 years ago

I had a same issue. Please help me fix it if you found the solution. Tks

Maping1026 commented 3 years ago

@chaotianjiao @cuongngm @biubug6 Me too............Can you help me fix it if you found the solution. Thanks a lot!

zcb2016 commented 2 years ago

自行重新编译ncnn,替换掉libncnn.a和所有的.h文件,测试问题解决