在RTT Only你们的新环境中,设置把所有example打开时会有报错

Viewed 57

请看看有什么问题么:
yolop_lane_seg
yolop_lane_seg 开始编译
~/canmv_k230_2/src/rtsmart/examples/ai_poc/out ~/canmv_k230_2/src/rtsmart/examples/ai_poc
-- The C compiler identification is GNU 12.0.1
-- The CXX compiler identification is GNU 12.0.1
-- Check for working C compiler: /home/wsr/.kendryte/k230_toolchains/riscv64-linux-musleabi_for_x86_64-pc-linux-gnu/bin/riscv64-unknown-linux-musl-gcc
-- Check for working C compiler: /home/wsr/.kendryte/k230_toolchains/riscv64-linux-musleabi_for_x86_64-pc-linux-gnu/bin/riscv64-unknown-linux-musl-gcc -- 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: /home/wsr/.kendryte/k230_toolchains/riscv64-linux-musleabi_for_x86_64-pc-linux-gnu/bin/riscv64-unknown-linux-musl-g++
-- Check for working CXX compiler: /home/wsr/.kendryte/k230_toolchains/riscv64-linux-musleabi_for_x86_64-pc-linux-gnu/bin/riscv64-unknown-linux-musl-g++ -- 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: /home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/out
Scanning dependencies of target yolop.elf
[ 20%] Building CXX object yolop_lane_seg/CMakeFiles/yolop.elf.dir/yolop_lane_seg.cc.obj
[ 60%] Building CXX object yolop_lane_seg/CMakeFiles/yolop.elf.dir/main.cc.obj
[ 60%] Building CXX object yolop_lane_seg/CMakeFiles/yolop.elf.dir/ai_base.cc.obj
[ 80%] Building CXX object yolop_lane_seg/CMakeFiles/yolop.elf.dir/utils.cc.obj
In file included from /home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/interpreter.h:18,
from /home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/ai_base.h:33,
from /home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/ai_base.cc:25:
/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/model.h:98:57: warning: multi-character character constant [-Wmultichar]
98 | NNCASE_INLINE_VAR constexpr uint32_t MODEL_IDENTIFIER = 'KMDL';
| ^~~~~~
In file included from /home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/runtime_tensor.h:18,
from /home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/k230/gnne_tile_utils.h:17,
from /home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/functional/ai2d/ai2d_builder.h:4,
from /home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.h:35,
from /home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:27:
/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/model.h:98:57: warning: multi-character character constant [-Wmultichar]
98 | NNCASE_INLINE_VAR constexpr uint32_t MODEL_IDENTIFIER = 'KMDL';
| ^~~~~~
In file included from /home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/runtime_tensor.h:18,
from /home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/k230/gnne_tile_utils.h:17,
from /home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/functional/ai2d/ai2d_builder.h:4,
from /home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.h:35,
from /home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/yolop_lane_seg.h:30,
from /home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/yolop_lane_seg.cc:26:
/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/model.h:98:57: warning: multi-character character constant [-Wmultichar]
98 | NNCASE_INLINE_VAR constexpr uint32_t MODEL_IDENTIFIER = 'KMDL';
| ^~~~~~
In file included from /home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/runtime_tensor.h:18,
from /home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/k230/gnne_tile_utils.h:17,
from /home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/functional/ai2d/ai2d_builder.h:4,
from /home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.h:35,
from /home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/main.cc:28:
/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/model.h:98:57: warning: multi-character character constant [-Wmultichar]
98 | NNCASE_INLINE_VAR constexpr uint32_t MODEL_IDENTIFIER = 'KMDL';
| ^~~~~~
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc: In static member function 'static void Utils::resize(FrameCHWSize, std::vector&, nncase::runtime::runtime_tensor&)':
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:153:27: warning: ignoring returned value of type 'nncase::result', declared with attribute 'nodiscard' [-Wunused-result]
153 | builder.build_schedule();
| ^~
/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/functional/ai2d/ai2d_builder.h:95:26: note: in call to 'nncase::result nncase::F::k230::ai2d_builder::build_schedule()', declared here
95 | result build_schedule();
| ^

In file included from /home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/../object.h:20,
from /home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/datatypes.h:16,
from /home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/runtime_tensor.h:16:
/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/result.h:304:36: note: 'nncase::result' declared here
304 | template <> class NNCASE_NODISCARD result {
| ^
~~
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc: In static member function 'static void Utils::resize(std::unique_ptr&, nncase::runtime::runtime_tensor&, nncase::runtime::runtime_tensor&)':
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:170:28: warning: ignoring returned value of type 'nncase::result', declared with attribute 'nodiscard' [-Wunused-result]
170 | builder->build_schedule();
| ^~
/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/functional/ai2d/ai2d_builder.h:95:26: note: in call to 'nncase::result nncase::F::k230::ai2d_builder::build_schedule()', declared here
95 | result build_schedule();
| ^

/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/result.h:304:36: note: 'nncase::result' declared here
304 | template <> class NNCASE_NODISCARD result {
| ^
~
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc: In static member function 'static void Utils::crop_resize(FrameCHWSize, std::vector&, Bbox&, nncase::runtime::runtime_tensor&)':
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:186:50: warning: narrowing conversion of 'crop_info.Bbox::x' from 'float' to 'int32_t' {aka 'int'} [-Wnarrowing]
186 | ai2d_crop_param_t crop_param{true, crop_info.x, crop_info.y, crop_info.w, crop_info.h};
| ~~~~~~~~~~^
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:186:63: warning: narrowing conversion of 'crop_info.Bbox::y' from 'float' to 'int32_t' {aka 'int'} [-Wnarrowing]
186 | ai2d_crop_param_t crop_param{true, crop_info.x, crop_info.y, crop_info.w, crop_info.h};
| ~~~~~~~~~~^
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:186:76: warning: narrowing conversion of 'crop_info.Bbox::w' from 'float' to 'int32_t' {aka 'int'} [-Wnarrowing]
186 | ai2d_crop_param_t crop_param{true, crop_info.x, crop_info.y, crop_info.w, crop_info.h};
| ~~~~~~~~~~^
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:186:89: warning: narrowing conversion of 'crop_info.Bbox::h' from 'float' to 'int32_t' {aka 'int'} [-Wnarrowing]
186 | ai2d_crop_param_t crop_param{true, crop_info.x, crop_info.y, crop_info.w, crop_info.h};
| ~~~~~~~~^
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:194:27: warning: ignoring returned value of type 'nncase::result', declared with attribute 'nodiscard' [-Wunused-result]
194 | builder.build_schedule();
| ^~
/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/functional/ai2d/ai2d_builder.h:95:26: note: in call to 'nncase::result nncase::F::k230::ai2d_builder::build_schedule()', declared here
95 | result build_schedule();
| ^

/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/result.h:304:36: note: 'nncase::result' declared here
304 | template <> class NNCASE_NODISCARD result {
| ^

/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc: In static member function 'static void Utils::crop_resize(Bbox&, std::unique_ptr&, nncase::runtime::runtime_tensor&, nncase::runtime::runtime_tensor&)':
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:202:50: warning: narrowing conversion of 'crop_info.Bbox::x' from 'float' to 'int32_t' {aka 'int'} [-Wnarrowing]
202 | ai2d_crop_param_t crop_param{true, crop_info.x, crop_info.y, crop_info.w, crop_info.h};
| ~~~~~~~~~~^
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:202:63: warning: narrowing conversion of 'crop_info.Bbox::y' from 'float' to 'int32_t' {aka 'int'} [-Wnarrowing]
202 | ai2d_crop_param_t crop_param{true, crop_info.x, crop_info.y, crop_info.w, crop_info.h};
| ~~~~^
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:202:76: warning: narrowing conversion of 'crop_info.Bbox::w' from 'float' to 'int32_t' {aka 'int'} [-Wnarrowing]
202 | ai2d_crop_param_t crop_param{true, crop_info.x, crop_info.y, crop_info.w, crop_info.h};
| ^
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:202:89: warning: narrowing conversion of 'crop_info.Bbox::h' from 'float' to 'int32_t' {aka 'int'} [-Wnarrowing]
202 | ai2d_crop_param_t crop_param{true, crop_info.x, crop_info.y, crop_info.w, crop_info.h};
| ^
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:211:28: warning: ignoring returned value of type 'nncase::result', declared with attribute 'nodiscard' [-Wunused-result]
211 | builder->build_schedule();
| ^~
/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/functional/ai2d/ai2d_builder.h:95:26: note: in call to 'nncase::result nncase::F::k230::ai2d_builder::build_schedule()', declared here
95 | result build_schedule();
| ^

/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/result.h:304:36: note: 'nncase::result' declared here
304 | template <> class NNCASE_NODISCARD result {
| ^

/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc: In static member function 'static void Utils::padding_resize(FrameCHWSize, std::vector&, FrameSize, nncase::runtime::runtime_tensor&, cv::Scalar)':
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:234:43: warning: narrowing conversion of 'ori_h' from 'int' to 'long unsigned int' [-Wnarrowing]
234 | dims_t in_shape{1, ori_shape.channel, ori_h, ori_w};
| ^

/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:234:43: warning: narrowing conversion of 'ori_h' from 'int' to 'long unsigned int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:234:50: warning: narrowing conversion of 'ori_w' from 'int' to 'long unsigned int' [-Wnarrowing]
234 | dims_t in_shape{1, ori_shape.channel, ori_h, ori_w};
| ^

/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:234:50: warning: narrowing conversion of 'ori_w' from 'int' to 'long unsigned int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:244:147: warning: narrowing conversion of 'padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'double' to 'int' [-Wnarrowing]
244 | ai2d_pad_param_t pad_param{true, {{0, 0}, {0, 0}, {top, bottom}, {left, right}}, ai2d_pad_mode::constant, {padding[0], padding[1], padding[2]}};
| ^
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:244:147: warning: narrowing conversion of 'padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'double' to 'int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:244:147: warning: narrowing conversion of 'padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'double' to 'int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:244:147: warning: narrowing conversion of 'padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'double' to 'int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:244:147: warning: narrowing conversion of 'padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'double' to 'int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:244:147: warning: narrowing conversion of 'padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'double' to 'int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:250:27: warning: ignoring returned value of type 'nncase::result', declared with attribute 'nodiscard' [-Wunused-result]
250 | builder.build_schedule();
| ^~
/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/functional/ai2d/ai2d_builder.h:95:26: note: in call to 'nncase::result nncase::F::k230::ai2d_builder::build_schedule()', declared here
95 | result build_schedule();
| ^

/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/result.h:304:36: note: 'nncase::result' declared here
304 | template <> class NNCASE_NODISCARD result {
| ^

/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc: In static member function 'static void Utils::padding_resize_one_side(FrameCHWSize, std::vector&, FrameSize, nncase::runtime::runtime_tensor&, cv::Scalar)':
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:273:43: warning: narrowing conversion of 'ori_h' from 'int' to 'long unsigned int' [-Wnarrowing]
273 | dims_t in_shape{1, ori_shape.channel, ori_h, ori_w};
| ^

/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:273:43: warning: narrowing conversion of 'ori_h' from 'int' to 'long unsigned int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:273:50: warning: narrowing conversion of 'ori_w' from 'int' to 'long unsigned int' [-Wnarrowing]
273 | dims_t in_shape{1, ori_shape.channel, ori_h, ori_w};
| ^

/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:273:50: warning: narrowing conversion of 'ori_w' from 'int' to 'long unsigned int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:283:147: warning: narrowing conversion of 'padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'double' to 'int' [-Wnarrowing]
283 | ai2d_pad_param_t pad_param{true, {{0, 0}, {0, 0}, {top, bottom}, {left, right}}, ai2d_pad_mode::constant, {padding[0], padding[1], padding[2]}};
| ^
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:283:147: warning: narrowing conversion of 'padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'double' to 'int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:283:147: warning: narrowing conversion of 'padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'double' to 'int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:283:147: warning: narrowing conversion of 'padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'double' to 'int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:283:147: warning: narrowing conversion of 'padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'double' to 'int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:283:147: warning: narrowing conversion of 'padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'double' to 'int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:289:27: warning: ignoring returned value of type 'nncase::result', declared with attribute 'nodiscard' [-Wunused-result]
289 | builder.build_schedule();
| ^~
/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/functional/ai2d/ai2d_builder.h:95:26: note: in call to 'nncase::result nncase::F::k230::ai2d_builder::build_schedule()', declared here
95 | result build_schedule();
| ^

/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/result.h:304:36: note: 'nncase::result' declared here
304 | template <> class NNCASE_NODISCARD result {
| ^

/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc: In static member function 'static void Utils::padding_resize(FrameCHWSize, FrameSize, std::unique_ptr&, nncase::runtime::runtime_tensor&, nncase::runtime::runtime_tensor&, cv::Scalar)':
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:315:147: warning: narrowing conversion of '(double)padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'double' to 'int' [-Wnarrowing]
315 | ai2d_pad_param_t pad_param{true, {{0, 0}, {0, 0}, {top, bottom}, {left, right}}, ai2d_pad_mode::constant, {padding[0], padding[1], padding[2]}};
| ^
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:315:147: warning: narrowing conversion of 'padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'const double' to 'int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:315:147: warning: narrowing conversion of '(double)padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'double' to 'int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:315:147: warning: narrowing conversion of 'padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'const double' to 'int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:315:147: warning: narrowing conversion of '(double)padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'double' to 'int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:315:147: warning: narrowing conversion of 'padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'const double' to 'int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:322:28: warning: ignoring returned value of type 'nncase::result', declared with attribute 'nodiscard' [-Wunused-result]
322 | builder->build_schedule();
| ^~
/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/functional/ai2d/ai2d_builder.h:95:26: note: in call to 'nncase::result nncase::F::k230::ai2d_builder::build_schedule()', declared here
95 | result build_schedule();
| ^

/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/result.h:304:36: note: 'nncase::result' declared here
304 | template <> class NNCASE_NODISCARD result {
| ^

/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc: In static member function 'static void Utils::padding_resize_one_side(FrameCHWSize, FrameSize, std::unique_ptr&, nncase::runtime::runtime_tensor&, nncase::runtime::runtime_tensor&, cv::Scalar)':
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:348:147: warning: narrowing conversion of '(double)padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'double' to 'int' [-Wnarrowing]
348 | ai2d_pad_param_t pad_param{true, {{0, 0}, {0, 0}, {top, bottom}, {left, right}}, ai2d_pad_mode::constant, {padding[0], padding[1], padding[2]}};
| ^
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:348:147: warning: narrowing conversion of 'padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'const double' to 'int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:348:147: warning: narrowing conversion of '(double)padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'double' to 'int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:348:147: warning: narrowing conversion of 'padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'const double' to 'int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:348:147: warning: narrowing conversion of '(double)padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'double' to 'int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:348:147: warning: narrowing conversion of 'padding.cv::Scalar_::.cv::Vec<double, 4>::operator' from 'const double' to 'int' [-Wnarrowing]
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:355:28: warning: ignoring returned value of type 'nncase::result', declared with attribute 'nodiscard' [-Wunused-result]
355 | builder->build_schedule();
| ^~
/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/functional/ai2d/ai2d_builder.h:95:26: note: in call to 'nncase::result nncase::F::k230::ai2d_builder::build_schedule()', declared here
95 | result build_schedule();
| ^

/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/result.h:304:36: note: 'nncase::result' declared here
304 | template <> class NNCASE_NODISCARD result {
| ^

/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc: In static member function 'static void Utils::affine(FrameCHWSize, std::vector&, float*, nncase::runtime::runtime_tensor&)':
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:382:27: warning: ignoring returned value of type 'nncase::result', declared with attribute 'nodiscard' [-Wunused-result]
382 | builder.build_schedule();
| ^~
/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/functional/ai2d/ai2d_builder.h:95:26: note: in call to 'nncase::result nncase::F::k230::ai2d_builder::build_schedule()', declared here
95 | result build_schedule();
| ^

/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/result.h:304:36: note: 'nncase::result' declared here
304 | template <> class NNCASE_NODISCARD result {
| ^

/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc: In static member function 'static void Utils::affine(float*, std::unique_ptr&, nncase::runtime::runtime_tensor&, nncase::runtime::runtime_tensor&)':
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/utils.cc:400:28: warning: ignoring returned value of type 'nncase::result', declared with attribute 'nodiscard' [-Wunused-result]
400 | builder->build_schedule();
| ^~
/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/functional/ai2d/ai2d_builder.h:95:26: note: in call to 'nncase::result nncase::F::k230::ai2d_builder::build_schedule()', declared here
95 | result build_schedule();
| ^

/home/wsr/canmv_k230_2/src/rtsmart/libs/nncase/riscv64/nncase/include/nncase/runtime/result.h:304:36: note: 'nncase::result' declared here
304 | template <> class NNCASE_NODISCARD result {
| ^

/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/yolop_lane_seg.cc: In member function 'void SEG::pre_process(cv::Mat)':
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/yolop_lane_seg.cc:75:36: warning: narrowing conversion of 'ori_img.cv::Mat::channels()' from 'int' to 'size_t' {aka 'long unsigned int'} [-Wnarrowing]
75 | Utils::resize({ori_img.channels(), ori_img.rows, ori_img.cols}, chw_vec, ai2d_out_tensor_);
| ~~~~~~~~~~~~~~~~^~
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/yolop_lane_seg.cc:75:48: warning: narrowing conversion of 'ori_img.cv::Mat::rows' from 'int' to 'size_t' {aka 'long unsigned int'} [-Wnarrowing]
75 | Utils::resize({ori_img.channels(), ori_img.rows, ori_img.cols}, chw_vec, ai2d_out_tensor_);
| ~~~~~^
/home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/yolop_lane_seg/yolop_lane_seg.cc:75:62: warning: narrowing conversion of 'ori_img.cv::Mat::cols' from 'int' to 'size_t' {aka 'long unsigned int'} [-Wnarrowing]
75 | Utils::resize({ori_img.channels(), ori_img.rows, ori_img.cols}, chw_vec, ai2d_out_tensor_);
| ~~~~~^
[100%] Linking CXX executable yolop.elf
[100%] Built target yolop.elf
[100%] Built target yolop.elf
Install the project...
-- Install configuration: "Release"
-- Installing: /home/wsr/canmv_k230_2/src/rtsmart/examples/ai_poc/out/bin/yolop.elf
yolop_lane_seg 编译完成
~/canmv_k230_2/src/rtsmart/examples/ai_poc
Copying k230_bin to /home/wsr/canmv_k230_2//src/rtsmart/examples/elf/ai_poc/
Make AI samples done.
make[3]: *** No rule to make target 'check_build_dir', needed by 'all'. Stop.
make[2]: *** [Makefile:22: all] Error 1
make[1]: *** [Makefile:78: .rtt_samples] Error 2
make: *** [Makefile:88: rtsmart] Error 2

1 Answers

你好,这个历程编译出错已经修复,不过在使能全部历程之后,会导致生成镜像失败,如果有需求可暂时手动将镜像配置里的sdcard分区改大一些。