首页 Paddle框架 帖子详情
【编译错误】ubuntu16.04 编译paddleDetection的C++预测库报错
收藏
快速回复
Paddle框架 问答深度学习 1107 3
【编译错误】ubuntu16.04 编译paddleDetection的C++预测库报错
收藏
快速回复
Paddle框架 问答深度学习 1107 3

opencv的cmake命令如下:
image

预测库的cmake命令如下:
image

  • 问题描述:请详细描述您的问题,同步贴出报错信息、日志/代码关键片段
    在C++预测库cmake成功完成后,使用make命令报错如下,显示安装的opencv中少个文件:
    image

opencv之前已经成功安装在/home/wushengjian/release-p-test/opencv如下:
image

另外在make预测库的时候,还会出现很多warning如下:
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
收藏
回复
全部评论(3)
时间顺序
AIStudio792101
#2 回复于2020-02

试了一下,在ubuntu16的官方docker中按照上述方法编译后,同样会有这个错误,最后链接的时候缺少文件,怀疑是不是文档里给的cmake opencv的命令参数不正确导致?

0
回复
AIStudio812023
#3 回复于2020-02
@1224wxwx

hi, 麻烦检查一下是不是opencv的缺失的这个lib在opencv/lib64目录下, 如果是需要修改下cmake里面这个路径。

这块的适配我们会优化一下。

0
回复
AIStudio792101
#4 回复于2020-02
@sjtubinlong

对的,是的,发现在cmake的时候去掉-DCMAKE_INSTALL_LIBDIR=lib64这个就好了

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