xiangweizeng / mobile-lpr

Mobile-LPR 是一个面向移动端的准商业级车牌识别库,以NCNN作为推理后端,使用DNN作为算法核心,支持多种车牌检测算法,支持车牌识别和车牌颜色识别。
606 stars 143 forks source link

/usr/bin/ld: bnll.cpp:(.text+0xed): undefined reference to `__logf_finite' #28

Open lvxiaojie111 opened 3 years ago

lvxiaojie111 commented 3 years ago

hello, when i use your command to complie,have some issues when " cmake .. " no errors when "mkae " have error as follow: make install Scanning dependencies of target mlpr [ 6%] Building CXX object src/CMakeFiles/mlpr.dir/base.cpp.o [ 13%] Building CXX object src/CMakeFiles/mlpr.dir/lpc_recognizer.cpp.o [ 20%] Building CXX object src/CMakeFiles/mlpr.dir/lpr_recognizer.cpp.o [ 26%] Building CXX object src/CMakeFiles/mlpr.dir/detector/mtcnn_align.cpp.o [ 33%] Building CXX object src/CMakeFiles/mlpr.dir/detector/mtcnn_proposal.cpp.o [ 40%] Building CXX object src/CMakeFiles/mlpr.dir/detector/mtcnn_base.cpp.o [ 46%] Building CXX object src/CMakeFiles/mlpr.dir/detector/mtcnn_plate_detector.cpp.o [ 53%] Building CXX object src/CMakeFiles/mlpr.dir/detector/ssd_plate_detector.cpp.o [ 60%] Building CXX object src/CMakeFiles/mlpr.dir/detector/lffd.cpp.o [ 66%] Building CXX object src/CMakeFiles/mlpr.dir/detector/lffd_plate_detector.cpp.o [ 73%] Building CXX object src/CMakeFiles/mlpr.dir/detector/align_plate_detector.cpp.o [ 80%] Building CXX object src/CMakeFiles/mlpr.dir/plate_petector.cpp.o [ 86%] Linking CXX static library libmlpr.a [ 86%] Built target mlpr Scanning dependencies of target run_plate [ 93%] Building CXX object example/CMakeFiles/run_plate.dir/main.cpp.o [100%] Linking CXX executable run_plate /usr/bin/ld: /home/ljj/Downloads/mobile-lpr-master/deps/ncnn/lib/libncnn.a(bnll.cpp.o): in function ncnn::BNLL::forward_inplace(ncnn::Mat&, ncnn::Option const&) const [clone ._omp_fn.0]': bnll.cpp:(.text+0xe0): undefined reference toexpf_finite' /usr/bin/ld: bnll.cpp:(.text+0xed): undefined reference to __logf_finite' /usr/bin/ld: bnll.cpp:(.text+0x101): undefined reference toexpf_finite' /usr/bin/ld: bnll.cpp:(.text+0x10e): undefined reference to __logf_finite' /usr/bin/ld: /home/ljj/Downloads/mobile-lpr-master/deps/ncnn/lib/libncnn.a(convolution.cpp.o): in functionncnn::Convolution::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const [clone ._omp_fn.2]': convolution.cpp:(.text+0x434): undefined reference to __expf_finite' /usr/bin/ld: /home/ljj/Downloads/mobile-lpr-master/deps/ncnn/lib/libncnn.a(deconvolution.cpp.o): in functionncnn::Deconvolution::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const [clone ._omp_fn.0]': deconvolution.cpp:(.text+0x492): undefined reference to `__expf_finite' how to solve it ?????? i search internet,some says use libm.so ,but not solve. my platform is : ubuntu 20.04, gcc9.3 . hope to solve it.

victorming666 commented 2 years ago

downgrade your gcc to 7.5.0, and re-compile ncnn. It'll be ok.

lvxiaojie111 commented 2 years ago

您的邮件已经收到。谢谢!                                          吕

zmwtal commented 1 year ago

同样的问题,按上面说的降低gcc到7.5.0版本,为什么 重新make install 还是报错,还是同样的问题

lvxiaojie111 commented 1 year ago

您的邮件已经收到。谢谢!                                          吕

zmwtal commented 1 year ago

@victorming666

同样的问题,按上面说的降低gcc到7.5.0版本,为什么 重新make install 还是报错,还是同样的问题