PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

Server-side C++ Inference error

Open Sandwiches97 opened this issue 9 months ago • 1 comments

请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem

已经将cmakelist 74line 的小写o改成了大写O 编译失败 image

  • 系统环境/System Environment:Ubuntu 22.04.3 LTS, python 3.8.19
Package                Version
---------------------- -----------
annotated-types        0.6.0
anyio                  4.3.0
astor                  0.8.1
asttokens              2.4.1
attrdict               2.0.1
Babel                  2.15.0
backcall               0.2.0
bce-python-sdk         0.9.9
beautifulsoup4         4.12.3
blinker                1.8.2
cachetools             5.3.3
certifi                2024.2.2
charset-normalizer     3.3.2
click                  8.1.7
comm                   0.2.2
contourpy              1.1.1
cssselect              1.2.0
cssutils               2.10.3
cycler                 0.12.1
Cython                 3.0.10
debugpy                1.6.7
decorator              5.1.1
dnspython              2.6.1
email_validator        2.1.1
et-xmlfile             1.1.0
exceptiongroup         1.2.1
executing              2.0.1
fastapi                0.111.0
fastapi-cli            0.0.3
fire                   0.6.0
Flask                  3.0.3
flask-babel            4.0.0
fonttools              4.51.0
future                 1.0.0
gevent                 24.2.1
greenlet               3.0.3
gunicorn               22.0.0
h11                    0.14.0
httpcore               1.0.5
httptools              0.6.1
httpx                  0.27.0
idna                   3.7
imageio                2.34.1
imgaug                 0.4.0
importlib_metadata     7.1.0
importlib_resources    6.4.0
ipykernel              6.29.3
ipython                8.12.2
itsdangerous           2.2.0
jedi                   0.19.1
Jinja2                 3.1.4
jupyter_client         8.6.1
jupyter_core           5.7.2
kiwisolver             1.4.5
lazy_loader            0.4
lmdb                   1.4.1
lxml                   5.2.2
markdown-it-py         3.0.0
MarkupSafe             2.1.5
matplotlib             3.7.5
matplotlib-inline      0.1.7
mdurl                  0.1.2
nest_asyncio           1.6.0
networkx               3.1
numpy                  1.24.4
opencv-contrib-python  4.6.0.66
opencv-python          4.6.0.66
opencv-python-headless 4.9.0.80
openpyxl               3.1.2
opt-einsum             3.3.0
orjson                 3.10.3
packaging              24.0
paddleocr              2.7.3
paddlepaddle           2.6.1
pandas                 2.0.3
parso                  0.8.4
pdf2docx               0.5.8
pexpect                4.9.0
phone                  0.4.5
phonenumbers           8.13.36
pickleshare            0.7.5
pillow                 10.3.0
pip                    24.0
platformdirs           4.2.1
premailer              3.10.0
prometheus_client      0.20.0
prompt-toolkit         3.0.42
protobuf               5.26.1
psutil                 5.9.8
ptyprocess             0.7.0
pure-eval              0.2.2
pyclipper              1.3.0.post5
pycryptodome           3.20.0
pydantic               2.7.1
pydantic_core          2.18.2
Pygments               2.18.0
PyMuPDF                1.24.3
PyMuPDFb               1.24.3
pyparsing              3.1.2
python-dateutil        2.9.0
python-docx            1.1.2
python-dotenv          1.0.1
python-multipart       0.0.9
pytz                   2024.1
PyWavelets             1.4.1
PyYAML                 6.0.1
pyzmq                  25.1.2
rapidfuzz              3.9.0
rarfile                4.2
requests               2.31.0
rich                   13.7.1
scikit-image           0.21.0
scipy                  1.10.1
setuptools             69.5.1
shapely                2.0.4
shellingham            1.5.4
six                    1.16.0
sniffio                1.3.1
soupsieve              2.5
stack-data             0.6.2
starlette              0.37.2
starlette_exporter     0.21.0
termcolor              2.4.0
tifffile               2023.7.10
tornado                6.4
tqdm                   4.66.4
traitlets              5.14.3
typer                  0.12.3
typing_extensions      4.11.0
tzdata                 2024.1
ujson                  5.10.0
urllib3                2.2.1
uvicorn                0.29.0
uvloop                 0.19.0
visualdl               2.5.3
watchfiles             0.21.0
wcwidth                0.2.13
websockets             12.0
Werkzeug               3.0.3
wget                   3.2
wheel                  0.43.0
zipp                   3.17.0
zope.event             5.0
zope.interface         6.3
  • 版本号/Version:paddleOCR-main branch
  • Paddle:2.6.1
  • PaddleOCR:2.7.3
  • 问题相关组件/Related components:编译PaddleOCR C++预测demo
  • 运行指令/Command Code:tools/build.sh
  • 完整报错/Complete Error Message:
-- The CXX compiler identification is GNU 11.4.0
-- The C compiler identification is GNU 11.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found OpenCV: /root/workspace/kefu-nas/fangc/git-proj/PaddleOCR-main/deploy/cpp_infer/opencv-3.4.7/opencv3 (found version "3.4.7") 
cmake cxx flags -g -O3 -fopenmp -std=c++11
-- Found Git: /usr/bin/git (found version "2.34.1") 
default cmake for auto_log, no need to compile
-- Configuring done
-- Generating done
-- Build files have been written to: /root/workspace/kefu-nas/fangc/git-proj/PaddleOCR-main/deploy/cpp_infer/build
make[2]: *** No rule to make target '../paddle_inference/third_party/install/mkldnn/lib/libmkldnn.so.0', needed by 'ppocr'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[ 78%] Building CXX object CMakeFiles/ppocr.dir/src/paddleocr.cpp.o
[ 78%] Building CXX object CMakeFiles/ppocr.dir/src/ocr_cls.cpp.o
[ 78%] Building CXX object CMakeFiles/ppocr.dir/src/clipper.cpp.o
[ 78%] Building CXX object CMakeFiles/ppocr.dir/src/ocr_det.cpp.o
[ 78%] Building CXX object CMakeFiles/ppocr.dir/src/main.cpp.o
[ 78%] Building CXX object CMakeFiles/ppocr.dir/src/postprocess_op.cpp.o
[ 78%] Building CXX object CMakeFiles/ppocr.dir/src/ocr_rec.cpp.o
[ 78%] Building CXX object CMakeFiles/ppocr.dir/src/args.cpp.o
[ 78%] Building CXX object CMakeFiles/ppocr.dir/src/paddlestructure.cpp.o
[ 92%] Building CXX object CMakeFiles/ppocr.dir/src/structure_layout.cpp.o
[ 92%] Building CXX object CMakeFiles/ppocr.dir/src/preprocess_op.cpp.o
[ 92%] Building CXX object CMakeFiles/ppocr.dir/src/utility.cpp.o
[ 92%] Building CXX object CMakeFiles/ppocr.dir/src/structure_table.cpp.o
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/ppocr.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Sandwiches97 avatar May 16 '24 03:05 Sandwiches97