2.4K Star 8.2K Fork 4.4K

GVPMindSpore / mindspore

 / 详情

[MS][LITE][Doc]ubantu官网文档教程C++极简推理demo执行build.sh文件后报2个cmake相关的错误

DONE
Bug-Report
创建于  
2022-04-25 11:47
name about labels
Bug Report Use this template for reporting a bug kind/bug

Describe the current behavior / 问题描述 (Mandatory / 必填)

执行官网教程文档C++极简推理demo执行build.sh文件后报2个cmake相关的错误

Environment / 环境信息 (Mandatory / 必填)

  • Hardware Environment(Ascend/GPU/CPU) / 硬件环境: CPU

Please 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

Related testcase / 关联用例 (Mandatory / 必填)

NA

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

  1. https://www.mindspore.cn/lite/docs/zh-CN/master/quick_start/quick_start_cpp.html进行C++极简推理demo操作
  2. 执行mindspore/lite/examples/quick_start_cpp目录下执行build脚本

Describe the expected behavior / 预期结果 (Mandatory / 必填)

按教程将自动下载MindSpore Lite推理框架库以及文模型文件并编译Demo
#实际结果
运行build.sh失败,报了2个cmake相关的错误,脚本意外中止

Related log / screenshot / 日志 / 截图 (Mandatory / 必填)

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

Special notes for this issue/备注 (Optional / 选填)

附件

评论 (2)

zhouguangyang 创建了Bug-Report
zhouguangyang 上传了附件quick_start_cpp包错.png
zhouguangyang 优先级设置为次要
zhouguangyang 修改了描述
linzhengshu 里程碑设置为B-SIG-MSLite
linzhengshu 关联仓库设置为MindSpore/mindspore
linzhengshu 关联分支设置为master
linzhengshu 添加了
 
v1.8.0
标签
linzhengshu 添加了
 
sig/doc
标签
zhouguangyang 修改了标题
zhouguangyang 修改了标题
展开全部操作日志

代码和demo请同步适配

linzhengshu 添加协作者linzhengshu
linzhengshu 负责人linzhengshu 修改为sunsuodong

之前是下包失败的原因,现已OK

sunsuodong 任务状态TODO 修改为REJECTED
zhouguangyang 任务状态REJECTED 修改为DONE

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
7627817 dash0225 1596251054
Python
1
https://gitee.com/mindspore/mindspore.git
git@gitee.com:mindspore/mindspore.git
mindspore
mindspore
mindspore

搜索帮助