进入代码infer/mxbase目录执行bash build.sh 构建报错如下
root@ba344b43fd75:/data1/MindSpore/RefineDet/infer/mxbase# bash build.sh
Set ASCEND_VERSION to the default value: ascend-toolkit/latest
ARCH_PATTERN is set to the default value: ./
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /data1/MindSpore/RefineDet/infer/mxbase/build
Scanning dependencies of target refinedet
[ 33%] Building CXX object CMakeFiles/refinedet.dir/main.cpp.o
[ 66%] Building CXX object CMakeFiles/refinedet.dir/refinedetDetection/refinedetDetection.cpp.o
/data1/MindSpore/RefineDet/infer/mxbase/refinedetDetection/refinedetDetection.cpp: In member function 'APP_ERROR refinedetDetection::cvmat_to_tensorbase(const cv::Mat&, MxBase::TensorBase&)':
/data1/MindSpore/RefineDet/infer/mxbase/refinedetDetection/refinedetDetection.cpp:431:71: error: 'YUV444_RGB_WIDTH_NU' is not a member of 'MxBase'
const uint32_t dataSize = imageMat.cols * imageMat.rows * MxBase::YUV444_RGB_WIDTH_NU;
^~~~~~~~~~~~~~~~~~~
/data1/MindSpore/RefineDet/infer/mxbase/refinedetDetection/refinedetDetection.cpp:440:47: error: 'YUV444_RGB_WIDTH_NU' is not a member of 'MxBase'
std::vector<uint32_t> shape = {1, MxBase::YUV444_RGB_WIDTH_NU, static_cast<uint32_t>(imageMat.rows),
^~~~~~~~~~~~~~~~~~~
/data1/MindSpore/RefineDet/infer/mxbase/refinedetDetection/refinedetDetection.cpp:441:72: error: could not convert '{1, <expression error>, ((uint32_t)((int)imageMat.cv::Mat::rows)), ((uint32_t)((int)imageMat.cv::Mat::cols))}' from '<brace-enclosed initializer list>' to 'std::vector<unsigned int>'
static_cast<uint32_t>(imageMat.cols)};
^
CMakeFiles/refinedet.dir/build.make:75: recipe for target 'CMakeFiles/refinedet.dir/refinedetDetection/refinedetDetection.cpp.o' failed
make[2]: *** [CMakeFiles/refinedet.dir/refinedetDetection/refinedetDetection.cpp.o] Error 1
CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/refinedet.dir/all' failed
make[1]: *** [CMakeFiles/refinedet.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
二、软件版本:
--CANN 版本: (CANN 5.0.4.B065)
--MindSpore 版本: mindspore 1.6.1
--Python 版本: Python 3.7.5
--操作系统版本 (e.g., Ubuntu 18.04):Ubuntu 18.04
Please assign maintainer to check this issue.
请为此issue分配处理人。
@fangwenyi @chengxiaoli
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Please add labels (comp or sig), also you can visit https://gitee.com/mindspore/community/blob/master/sigs/dx/docs/labels.md to find more.
为了让代码尽快被审核,请您为Pull Request打上 组件(comp)或兴趣组(sig) 标签,打上标签的PR可直接推送给责任人进行审核。
更多的标签可以查看https://gitee.com/mindspore/community/blob/master/sigs/dx/docs/labels.md
以组件相关代码提交为例,如果你提交的是data组件代码,你可以这样评论:
//comp/data
当然你也可以邀请data SIG组来审核代码,可以这样写:
//sig/data
另外你还可以给这个PR标记类型,例如是bugfix或者是特性需求:
//kind/bug or //kind/feature
恭喜你,你已经学会了使用命令来打标签,接下来就在下面的评论里打上标签吧!
已处理
登录 后才可以发表评论