DayBreak-u / chineseocr_lite

超轻量级中文ocr,支持竖排文字识别, 支持ncnn、mnn、tnn推理 ( dbnet(1.8M) + crnn(2.5M) + anglenet(378KB)) 总模型仅4.7M
GNU General Public License v2.0
11.83k stars 2.26k forks source link

MAC上面编译报错 #373

Closed zhh8689 closed 3 years ago

zhh8689 commented 3 years ago

CMake Error at CMakeLists.txt:57 (find_package): By not providing "FindOnnxRuntime.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "OnnxRuntime", but CMake did not find one.

Could not find a package configuration file provided by "OnnxRuntime" with any of the following names:

OnnxRuntimeConfig.cmake
onnxruntime-config.cmake

Add the installation prefix of "OnnxRuntime" to CMAKE_PREFIX_PATH or set "OnnxRuntime_DIR" to a directory containing one of the above files. If "OnnxRuntime" provides a separate development package or SDK, be sure it has been installed.

cmake的版本跟openMP的版本都正确。求教怎么处理

image
MistEO commented 3 years ago

我也遇到了同样的问题,https://github.com/DayBreak-u/chineseocr_lite/issues/366#issuecomment-894703826

换onnx-1.6那个库,1.7的目录结构不对

zhh8689 commented 3 years ago

我也遇到了同样的问题,#366 (comment)

换onnx-1.6那个库,1.7的目录结构不对

换成1.6确实可以编译了