chineseocr_lite版本:https://github.com/ouyanghuiyu/chineseocr_lite.git
最重要的电脑环境:v100服务器,cuda10,python3.6 (环境对了就成功90%,另本环境是cuda10的,cuda9请自测)
编译报错
错误:lto-wrapper: fatal error: g++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
Makefile:12: recipe for target 'pse.so' failed
make: *** [pse.so] Error 1
解决:在pse路径下执行 python3-config --cflags,将执行的结果路径替换Makefile里面的 $(shell python3-config --cflags)
再执行会报:g++: error: unrecognized command line option ‘-fno-plt’
g++: error: unrecognized command line option ‘-fno-plt’
Makefile:13: recipe for target 'pse.so' failed
make: *** [pse.so] Error 1
解决:将上面的执行结果中删除-fno-plt