name | about | labels |
---|---|---|
Bug Report | Use this template for reporting a bug | kind/bug |
执行官网教程文档C++极简推理demo执行build.sh文件后报2个cmake相关的错误
Ascend
/GPU
/CPU
) / 硬件环境: CPUPlease delete the backend not involved / 请删除不涉及的后端:
/device ascend/GPU/CPU/kirin/等其他芯片cpu
Software Environment / 软件环境 (Mandatory / 必填):
-- MindSpore version (e.g., 1.7.0.Bxxx) :1.7
-- Python version (e.g., Python 3.7.5) :3.8.1
-- OS platform and distribution (e.g., Linux Ubuntu 16.04):unbantu 18.04
-- GCC/Compiler version (if compiled from source): 7.5
Excute Mode / 执行模式 (Mandatory / 必填)(PyNative
/Graph
):
Please delete the mode not involved / 请删除不涉及的模式:
/mode pynative
/mode graph
NA
按教程将自动下载MindSpore Lite推理框架库以及文模型文件并编译Demo
#实际结果
运行build.sh失败,报了2个cmake相关的错误,脚本意外中止
Consolidate compiler generated dependencies of target mindspore_quick_start_cpp
[ 50%] Building CXX object CMakeFiles/mindspore_quick_start_cpp.dir/main.cc.o
[100%] Linking CXX executable mindspore_quick_start_cpp
CMakeFiles/mindspore_quick_start_cpp.dir/main.cc.o:在函数‘QuickStart(int, char const**)’中:
main.cc:(.text+0xc2d):对‘mindspore::Model::Build(void const*, unsigned long, mindspore::ModelType, std::shared_ptrmindspore::Context const&)’未定义的引用
collect2: error: ld returned 1 exit status
CMakeFiles/mindspore_quick_start_cpp.dir/build.make:96: recipe for target 'mindspore_quick_start_cpp' failed
make[2]: *** [mindspore_quick_start_cpp] Error 1
CMakeFiles/Makefile2:82: recipe for target 'CMakeFiles/mindspore_quick_start_cpp.dir/all' failed
make[1]: *** [CMakeFiles/mindspore_quick_start_cpp.dir/all] Error 2
Makefile:90: recipe for target 'all' fai
代码和demo请同步适配
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
之前是下包失败的原因,现已OK
登录 后才可以发表评论