PaddlePaddle / Paddle-Lite-Demo

lib, demo, model, data
Apache License 2.0
686 stars 286 forks source link

海思3559 交叉编译 报错 #378

Open GanSidong opened 4 months ago

GanSidong commented 4 months ago

使用海思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 commented 4 months ago