qn1553823811

qn1553823811

0个粉丝

2

问答

0

专栏

0

资料

qn1553823811  发布于  2019-03-29 16:09:12
采纳率 0%
2个问答
1158

编译dronecodesdk失败

 
[root@localhost build-arm]# make
[  2%] Built target gtest
[  3%] Built target gtest_main
[  5%] Built target tinyxml2_static
[ 15%] Built target zlibstatic
[ 15%] Built target version
[ 15%] Building CXX object core/CMakeFiles/dronecode_sdk.dir/system_impl.cpp.o
/home/russ/tempsdk/DronecodeSDK/core/system_impl.cpp: In member function ‘std::pair dronecode_sdk::SystemImpl::get_param_float(const string&)’:
/home/russ/tempsdk/DronecodeSDK/core/system_impl.cpp:646:97: error: invalid use of incomplete type ‘class std::promise >’
     auto prom = std::promise>();
                                                                                                 ^
In file included from /home/russ/tempsdk/DronecodeSDK/core/system_impl.h:20:0,
                 from /home/russ/tempsdk/DronecodeSDK/core/system_impl.cpp:5:
/opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/include/c++/4.8.3/future:122:11: error: declaration of ‘class std::promise >’
     class promise;
           ^
/home/russ/tempsdk/DronecodeSDK/core/system_impl.cpp: In member function ‘std::pair dronecode_sdk::SystemImpl::get_param_int(const string&)’:
/home/russ/tempsdk/DronecodeSDK/core/system_impl.cpp:668:95: error: invalid use of incomplete type ‘class std::promise >’
     auto prom = std::promise>();
                                                                                               ^
In file included from /home/russ/tempsdk/DronecodeSDK/core/system_impl.h:20:0,
                 from /home/russ/tempsdk/DronecodeSDK/core/system_impl.cpp:5:
/opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/include/c++/4.8.3/future:122:11: error: declaration of ‘class std::promise >’
     class promise;
           ^
/home/russ/tempsdk/DronecodeSDK/core/system_impl.cpp: In member function ‘std::pair dronecode_sdk::SystemImpl::get_param_ext_float(const string&)’:
/home/russ/tempsdk/DronecodeSDK/core/system_impl.cpp:690:97: error: invalid use of incomplete type ‘class std::promise >’
     auto prom = std::promise>();
                                                                                                 ^
In file included from /home/russ/tempsdk/DronecodeSDK/core/system_impl.h:20:0,
                 from /home/russ/tempsdk/DronecodeSDK/core/system_impl.cpp:5:
/opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/include/c++/4.8.3/future:122:11: error: declaration of ‘class std::promise >’
     class promise;
           ^
/home/russ/tempsdk/DronecodeSDK/core/system_impl.cpp: In member function ‘std::pair dronecode_sdk::SystemImpl::get_param_ext_int(const string&)’:
/home/russ/tempsdk/DronecodeSDK/core/system_impl.cpp:713:95: error: invalid use of incomplete type ‘class std::promise >’
     auto prom = std::promise>();
                                                                                               ^
In file included from /home/russ/tempsdk/DronecodeSDK/core/system_impl.h:20:0,
                 from /home/russ/tempsdk/DronecodeSDK/core/system_impl.cpp:5:
/opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/include/c++/4.8.3/future:122:11: error: declaration of ‘class std::promise >’
     class promise;
           ^
/home/russ/tempsdk/DronecodeSDK/core/system_impl.cpp: In member function ‘std::pair dronecode_sdk::SystemImpl::get_param_float(const string&)’:
/home/russ/tempsdk/DronecodeSDK/core/system_impl.cpp:664:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
/home/russ/tempsdk/DronecodeSDK/core/system_impl.cpp: In member function ‘std::pair dronecode_sdk::SystemImpl::get_param_int(const string&)’:
/home/russ/tempsdk/DronecodeSDK/core/system_impl.cpp:686:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
/home/russ/tempsdk/DronecodeSDK/core/system_impl.cpp: In member function ‘std::pair dronecode_sdk::SystemImpl::get_param_ext_float(const string&)’:
/home/russ/tempsdk/DronecodeSDK/core/system_impl.cpp:709:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
/home/russ/tempsdk/DronecodeSDK/core/system_impl.cpp: In member function ‘std::pair dronecode_sdk::SystemImpl::get_param_ext_int(const string&)’:
/home/russ/tempsdk/DronecodeSDK/core/system_impl.cpp:732:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1plus: all warnings being treated as errors
make[2]: *** [core/CMakeFiles/dronecode_sdk.dir/system_impl.cpp.o] 错误 1
make[1]: *** [core/CMakeFiles/dronecode_sdk.dir/all] 错误 2
make: *** [all] 错误 2


有没有什么建议??
我来回答
回答1个
时间排序
认可量排序

qn1553823811

0个粉丝

2

问答

0

专栏

0

资料

qn1553823811 2019-03-29 16:10:39
认可0
#/bin/sh
export CC=arm-hisiv400-linux-gcc
export CXX=arm-hisiv400-linux-g++

工具是arm-hisiv400-linux
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区