Code Monkey home page Code Monkey logo

Comments (4)

jiangjiajun avatar jiangjiajun commented on May 17, 2024

需要通过-L将lib路径加进来

建议参考example目录下的示例使用cmake

from fastdeploy.

xwang365 avatar xwang365 commented on May 17, 2024

参考了:FastDeploy/examples/vision/classification/paddleclas/cpp/README.md 这里的例子,同样也遇到了问题:1. https://bj.bcebos.com/paddlehub/fastdeploy/libs/0.2.0/fastdeploy-linux-x64-gpu-0.2.0.tgz 地址失效,换成https://bj.bcebos.com/fastdeploy/release/cpp/fastdeploy-linux-x64-0.2.0.tgz 可以解决,2.跑 ./infer_demo ResNet50_vd_infer ILSVRC2012_val_00000010.jpeg 0 的时候 会报错./infer_demo: error while loading shared libraries: libpaddle2onnx.so.1.0.0rc3: cannot open shared object file: No such file or directory

from fastdeploy.

jiangjiajun avatar jiangjiajun commented on May 17, 2024

@xwang365 Hi,谢谢你的反馈,这页文档地址先前确实写错了,已修改。

Linux下编译生成二进制后,如果执行出现上面的问题,属于库没找到的问题,你可以试下把库加到LD_LIBRARY_PATH中执行
例如

export LD_LIBRARY_PATH=/fastdeploy-linux-x64-0.2.0/third_libs/install/paddle2onnx/lib:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=/fastdeploy-linux-x64-0.2.0/third_libs/install/onnxruntime/lib:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=/fastdeploy-linux-x64-0.2.0/third_libs/install/opencv/lib:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=/fastdeploy-linux-x64-0.2.0/third_libs/install/paddle_inference/paddle/lib:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=/fastdeploy-linux-x64-0.2.0/third_libs/install/paddle_inference/third_party/install/mklml/lib:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=/fastdeploy-linux-x64-0.2.0/third_libs/install/paddle_inference/third_party/install/mkldnn/lib:${LD_LIBRARY_PATH}

通过如上方式,将FastDeploy中的库路径添加好,即可执行。

from fastdeploy.

jiangjiajun avatar jiangjiajun commented on May 17, 2024

此ISSUE由于一年未更新,将会关闭处理,如有需要,可再次更新打开。

from fastdeploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.