首页 PaddleCV 帖子详情
【编译错误】官方docker编译paddleDetection的C++预测库报错
收藏
快速回复
PaddleCV 问答图像分类 1059 1
【编译错误】官方docker编译paddleDetection的C++预测库报错
收藏
快速回复
PaddleCV 问答图像分类 1059 1
  • 版本、环境信息:
       1)PaddlePaddle版本:PaddlePaddle版本v1.6.3,PaddleDetection版本0.1
       2)CPU:
       3)GPU:K80,CUDA 9.0,CUDNN7.6.5
       4)系统环境:官方docker ubuntu16.04,使用其中的python3进行paddleDetection的安装,GCC5.4

  • 安装方式信息:
    3)docker编译:请提供docker镜像,编译命令   
    docker pull hub.baidubce.com/paddlepaddle/paddle:1.6.3-gpu-cuda9.0-cudnn7       

  • 复现信息:如为报错,请给出复现环境、复现步骤

  • 问题描述:请详细描述您的问题,同步贴出报错信息、日志/代码关键片段

进入官方docker,下载cudnn-9.0-linux-x64-v7.6.5.32.tgz后,把解压开的文件放到相应位置(参考https://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html#installlinux-tar,如果不做这一步,则后续make预测库时候会报错缺失usr/local/cuda/lib64/libcudnn.so文件)

安装cmake随后再官方docker里根据
https://github.com/PaddlePaddle/PaddleDetection/blob/release/0.1/inference/docs/linux_build.md 里的描述一步步操作,只是在cmake opencv的时候,把-DCMAKE_INSTALL_LIBDIR=lib64这个参数去掉,否则会导致make预测库的时候报错缺失libopencv_imgcodes.a这个文件。随后一切按照文档里的步骤执行到make预测库会报错如下:

image

Thank you for contributing to PaddlePaddle.
Before submitting the issue, you could search issue in Github in case that there was a similar issue submitted or resolved before.
If there is no solution,please make sure that this is an installation issue including the following details:
System information
-PaddlePaddle version (eg.1.1)or CommitID
-CPU: including CPUMKL/OpenBlas/MKLDNN version
-GPU: including CUDA/CUDNN version
-OS Platform (eg. Mac OS 10.14)
-Python version

  • Install method: pip install/install with docker/build from source(without docker)/build within docker
  • Other special cases that you think may be related to this problem, eg. offline install, special internet condition  
    To Reproduce
    Steps to reproduce the behavior
    Describe your current behavior
    Code to reproduce the issue
    Other info / logs
0
收藏
回复
全部评论(1)
时间顺序
AIStudio792101
#2 回复于2020-02

发现原因是官方docker的gcc是5.4,而提供的其他库使用4.8编译的,因此出错

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户