Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

海思3559 交叉编译 报错 #378

Open
GanSidong opened this issue Jul 22, 2024 · 1 comment
Open

海思3559 交叉编译 报错 #378

GanSidong opened this issue Jul 22, 2024 · 1 comment
Assignees

Comments

@GanSidong
Copy link

使用海思3559交叉编译工具链对Demo(Paddle-Lite-Demo/image_classification/linux/mobilenet_v3)进行build,报错内容如下:

[ 50%] Building CXX object CMakeFiles/mobilenet_full_api.dir/mobilenet_full_api.cc.o
[100%] Linking CXX executable mobilenet_full_api
CMakeFiles/mobilenet_full_api.dir/mobilenet_full_api.cc.o:在函数‘RunModel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<std::vector<long, std::allocator<long> >, std::allocator<std::vector<long, std::allocator<long> > > > const&, unsigned long, unsigned long, unsigned long)’中:
mobilenet_full_api.cc:(.text+0x24514):对‘std::shared_ptr<paddle::lite_api::PaddlePredictor> paddle::lite_api::CreatePaddlePredictor<paddle::lite_api::CxxConfig>(paddle::lite_api::CxxConfig const&)’未定义的引用
mobilenet_full_api.cc:(.text+0x245d0):对‘paddle::lite_api::Tensor::Resize(std::vector<long, std::allocator<long> > const&)’未定义的引用
mobilenet_full_api.cc:(.text+0x2467c):对‘void paddle::lite_api::Tensor::CopyFromCpu<float, (paddle::lite_api::TargetType)1>(float const*)’未定义的引用
mobilenet_full_api.cc:(.text+0x24ba4):对‘paddle::lite_api::Tensor::shape() const’未定义的引用
mobilenet_full_api.cc:(.text+0x24bb0):对‘float const* paddle::lite_api::Tensor::data<float>() const’未定义的引用
mobilenet_full_api.cc:(.text+0x24de4):对‘float const* paddle::lite_api::Tensor::data<float>() const’未定义的引用
mobilenet_full_api.cc:(.text+0x24e80):对‘float const* paddle::lite_api::Tensor::data<float>() const’未定义的引用
CMakeFiles/mobilenet_full_api.dir/mobilenet_full_api.cc.o:在函数‘paddle::lite_api::CxxConfig::CxxConfig()’中:
mobilenet_full_api.cc:(.text._ZN6paddle8lite_api9CxxConfigC2Ev[_ZN6paddle8lite_api9CxxConfigC5Ev]+0x18):对‘paddle::lite_api::ConfigBase::ConfigBase(paddle::lite_api::PowerMode, int)’未定义的引用
collect2: 错误: ld 返回 1
CMakeFiles/mobilenet_full_api.dir/build.make:94: recipe for target 'mobilenet_full_api' failed
make[2]: *** [mobilenet_full_api] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/mobilenet_full_api.dir/all' failed
make[1]: *** [CMakeFiles/mobilenet_full_api.dir/all] Error 2
Makefile:83: recipe for target 'all' failed

@zhupengyang
Copy link
Contributor

    1. 检查下 Paddle-Lite 预测库是否同样用海思3559交叉编译工具链的
    1. 尝试在目标机器上编译
    1. 如果以上都不行,可以找海思官方咨询交叉编译工具链的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants