当前位置: 首页 > news >正文

RK3576编译buildroot编译到qt报错

说明

RK3576编译buildroot编译到qtlocation报错

报错:
alt text

2025-12-15T12:29:44 >>> qt5location 0ec8f5e82da7369a92824167c4d7331f6c502325 Building
Done in 39s  (error code: 2)
Failed to build rockchip_rk3576:
2025-12-15T12:29:52 |     ^~~~~~~~~~~
2025-12-15T12:29:52 |     ToFeatureType
2025-12-15T12:29:52 src/mbgl/annotation/annotation_tile.hpp:48:21: error: 'FeatureType' has not been declared
2025-12-15T12:29:52 48 |                     FeatureType,
2025-12-15T12:29:52 |                     ^~~~~~~~~~~
2025-12-15T12:29:52 src/mbgl/annotation/symbol_annotation_impl.cpp: In member function 'void mbgl::SymbolAnnotationImpl::updateLayer(const mbgl::CanonicalTileID&, mbgl::AnnotationTileLayer&) const':
2025-12-15T12:29:52 src/mbgl/annotation/symbol_annotation_impl.cpp:21:26: error: 'FeatureType' has not been declared
2025-12-15T12:29:52 21 |     layer.addFeature(id, FeatureType::Point, GeometryCollection {{ {{ tilePoint }} }}, featureProperties);
2025-12-15T12:29:52 |                          ^~~~~~~~~~~
2025-12-15T12:29:52 In file included from src/mbgl/style/properties.hpp:4,
2025-12-15T12:29:52 from src/mbgl/style/light_impl.hpp:7,
2025-12-15T12:29:52 from src/mbgl/renderer/render_light.hpp:3,
2025-12-15T12:29:52 from src/mbgl/renderer/renderer_impl.hpp:6,
2025-12-15T12:29:52 from src/mbgl/renderer/renderer_impl.cpp:2:
2025-12-15T12:29:52 src/mbgl/style/conversion/stringify.hpp:106:32: error: 'FeatureType' has not been declared
2025-12-15T12:29:52 106 | void stringify(Writer& writer, FeatureType type) {
2025-12-15T12:29:52 |                                ^~~~~~~~~~~
2025-12-15T12:29:52 src/mbgl/style/conversion/stringify.hpp: In function 'void mbgl::style::conversion::stringify(Writer&, int)':
2025-12-15T12:29:52 src/mbgl/style/conversion/stringify.hpp:108:10: error: 'FeatureType' has not been declared
2025-12-15T12:29:52 108 |     case FeatureType::Unknown:
2025-12-15T12:29:52 |          ^~~~~~~~~~~
2025-12-15T12:29:52 src/mbgl/style/conversion/stringify.hpp:111:10: error: 'FeatureType' has not been declared
2025-12-15T12:29:52 111 |     case FeatureType::Point:
2025-12-15T12:29:52 |          ^~~~~~~~~~~
2025-12-15T12:29:52 src/mbgl/style/conversion/stringify.hpp:114:10: error: 'FeatureType' has not been declared
2025-12-15T12:29:52 114 |     case FeatureType::LineString:
2025-12-15T12:29:52 |          ^~~~~~~~~~~
2025-12-15T12:29:52 src/mbgl/style/conversion/stringify.hpp:117:10: error: 'FeatureType' has not been declared
2025-12-15T12:29:52 117 |     case FeatureType::Polygon:
2025-12-15T12:29:52 |          ^~~~~~~~~~~
2025-12-15T12:29:52 src/mbgl/annotation/annotation_tile.cpp:25:31: error: 'FeatureType' has not been declared
2025-12-15T12:29:52 25 |                               FeatureType type_,
2025-12-15T12:29:52 |                               ^~~~~~~~~~~
2025-12-15T12:29:52 src/mbgl/annotation/annotation_tile.cpp:35:5: error: 'FeatureType' does not name a type; did you mean 'ToFeatureType'?
2025-12-15T12:29:52 35 |     FeatureType type;
2025-12-15T12:29:52 |     ^~~~~~~~~~~
2025-12-15T12:29:52 |     ToFeatureType
2025-12-15T12:29:52 src/mbgl/annotation/annotation_tile.cpp: In constructor 'mbgl::AnnotationTileFeatureData::AnnotationTileFeatureData(mbgl::AnnotationID, int, mbgl::GeometryCollection&&, std::unordered_map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >&&)':
2025-12-15T12:29:52 src/mbgl/annotation/annotation_tile.cpp:29:11: error: class 'mbgl::AnnotationTileFeatureData' does not have any field named 'type'
2025-12-15T12:29:52 29 |           type(type_),
2025-12-15T12:29:52 |           ^~~~
2025-12-15T12:29:52 src/mbgl/annotation/annotation_tile.cpp: At global scope:
2025-12-15T12:29:52 src/mbgl/annotation/annotation_tile.cpp:46:1: error: 'FeatureType' does not name a type; did you mean 'ToFeatureType'?
2025-12-15T12:29:52 46 | FeatureType AnnotationTileFeature::getType() const {
2025-12-15T12:29:52 | ^~~~~~~~~~~
2025-12-15T12:29:52 | ToFeatureType
2025-12-15T12:29:52 src/mbgl/annotation/annotation_tile.cpp:91:38: error: 'FeatureType' has not been declared
2025-12-15T12:29:52 91 |                                      FeatureType type,
2025-12-15T12:29:52 |                                      ^~~~~~~~~~~
2025-12-15T12:29:52 src/mbgl/annotation/annotation_tile.hpp:28:5: error: 'FeatureType' does not name a type; did you mean 'ToFeatureType'?
2025-12-15T12:29:52 28 |     FeatureType getType() const override;
2025-12-15T12:29:52 |     ^~~~~~~~~~~
2025-12-15T12:29:52 |     ToFeatureType
2025-12-15T12:29:52 src/mbgl/annotation/annotation_tile.hpp:48:21: error: 'FeatureType' has not been declared
2025-12-15T12:29:52 48 |                     FeatureType,
2025-12-15T12:29:52 |                     ^~~~~~~~~~~
2025-12-15T12:29:53 make[6]: *** [Makefile:12148: .obj/src/mbgl/annotation/line_annotation_impl.o] Error 1
2025-12-15T12:29:53 In file included from src/mbgl/geometry/feature_index.hpp:4,
2025-12-15T12:29:53 from src/mbgl/text/collision_index.hpp:3,
2025-12-15T12:29:53 from src/mbgl/text/placement.hpp:6,
2025-12-15T12:29:53 from src/mbgl/renderer/renderer_impl.hpp:14:
2025-12-15T12:29:53 src/mbgl/tile/geometry_tile_data.hpp: At global scope:
2025-12-15T12:29:53 src/mbgl/tile/geometry_tile_data.hpp:43:13: error: 'FeatureType' does not name a type; did you mean 'ToFeatureType'?
2025-12-15T12:29:53 43 |     virtual FeatureType getType() const = 0;
2025-12-15T12:29:53 |             ^~~~~~~~~~~
2025-12-15T12:29:53 |             ToFeatureType
2025-12-15T12:29:53 make[6]: *** [Makefile:10228: .obj/src/mbgl/annotation/fill_annotation_impl.o] Error 1
2025-12-15T12:29:53 In file included from src/mbgl/style/properties.hpp:4,
2025-12-15T12:29:53 from src/mbgl/style/paint_property.hpp:4,
2025-12-15T12:29:53 from src/mbgl/style/layers/symbol_layer_properties.hpp:7,
2025-12-15T12:29:53 from src/mbgl/style/layers/symbol_layer_impl.hpp:5,
2025-12-15T12:29:53 from src/mbgl/annotation/annotation_manager.cpp:10:
2025-12-15T12:29:53 src/mbgl/style/conversion/stringify.hpp:106:32: error: 'FeatureType' has not been declared
2025-12-15T12:29:53 106 | void stringify(Writer& writer, FeatureType type) {
2025-12-15T12:29:53 |                                ^~~~~~~~~~~
2025-12-15T12:29:53 src/mbgl/style/conversion/stringify.hpp: In function 'void mbgl::style::conversion::stringify(Writer&, int)':
2025-12-15T12:29:53 src/mbgl/style/conversion/stringify.hpp:108:10: error: 'FeatureType' has not been declared
2025-12-15T12:29:53 108 |     case FeatureType::Unknown:
2025-12-15T12:29:53 |          ^~~~~~~~~~~
2025-12-15T12:29:53 src/mbgl/style/conversion/stringify.hpp:111:10: error: 'FeatureType' has not been declared
2025-12-15T12:29:53 111 |     case FeatureType::Point:
2025-12-15T12:29:53 |          ^~~~~~~~~~~
2025-12-15T12:29:53 src/mbgl/style/conversion/stringify.hpp:114:10: error: 'FeatureType' has not been declared
2025-12-15T12:29:53 114 |     case FeatureType::LineString:
2025-12-15T12:29:53 |          ^~~~~~~~~~~
2025-12-15T12:29:53 src/mbgl/style/conversion/stringify.hpp:117:10: error: 'FeatureType' has not been declared
2025-12-15T12:29:53 117 |     case FeatureType::Polygon:
2025-12-15T12:29:53 |          ^~~~~~~~~~~
2025-12-15T12:29:53 make[6]: *** [Makefile:16446: .obj/src/mbgl/annotation/symbol_annotation_impl.o] Error 1
2025-12-15T12:29:54 make[6]: *** [Makefile:8308: .obj/src/mbgl/annotation/annotation_tile.o] Error 1
2025-12-15T12:29:54 make[6]: *** [Makefile:14490: .obj/src/mbgl/annotation/shape_annotation_impl.o] Error 1
2025-12-15T12:29:56 make[6]: *** [Makefile:4449: .obj/src/mbgl/annotation/annotation_manager.o] Error 1
2025-12-15T12:29:57 make[6]: *** [Makefile:35168: .obj/src/mbgl/renderer/renderer_impl.o] Error 1
2025-12-15T12:30:02 make[5]: *** [Makefile:203: sub-------3rdparty-mapbox-gl-native-make_first] Error 2
2025-12-15T12:30:02 make[4]: *** [Makefile:73: sub-geoservices-make_first] Error 2
2025-12-15T12:30:02 make[3]: *** [Makefile:234: sub-plugins-make_first] Error 2
2025-12-15T12:30:02 make[2]: *** [Makefile:49: sub-src-make_first] Error 2
2025-12-15T12:30:02 make[1]: *** [package/pkg-generic.mk:303: /home/yangx/linux2/yangx/RK3576/EMS-RK3576-stan-rkr6.2/buildroot/output/rockchip_rk3576/build/qt5location-0ec8f5e82da7369a92824167c4d7331f6c502325/.stamp_built] Error 2
2025-12-15T12:30:02 make: *** [Makefile:112: _all] Error 2

解决

sed -i '6i #include <cstdint>' qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/geometry.hpp
sed -i '7i #include <cstdint>' qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp
sed -i '4i #include <cstdint>' qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/gl/stencil_mode.hpp
# 在这几个文件里加上 #include <cstdint>
http://www.jsqmd.com/news/92825/

相关文章:

  • 2025资质齐全的店铺代运营公司推荐TOP5:店铺代运营哪家 - mypinpai
  • 鸿蒙与Flutter:全场景开发的技术协同与价值
  • 优化MySQL慢查询问题的识别与解决方法解析
  • 最新版抖音视频、图文自动批量发布工具软件
  • 文档处理能力分析
  • Web应用安全头部信息验证方法与测试实践
  • 酵母表达系统:纳米抗体(VHHs)高效表达的多元适配平台
  • 2025年中国十大无缝管加工厂推荐:无缝管价格靠谱厂家有哪些 - 工业推荐榜
  • 告别 0 曝光!TikTok 冷启动在算法丛林建信任营地
  • 前端可视化图表库精选与实战指南
  • 鼎捷 易飞ERP 9.3 ISO安装包 下载
  • 2025年信誉好的店铺代运营公司推荐:店铺代运营哪家实力强? - myqiye
  • 渗透测试信息收集阶段的技术实践与体系构建
  • Vite 现代前端构建工具深度解析
  • 论文写作全流程自动化:5个阶段的高效工具链构建
  • 医学论文写作革命:从临床数据到SCI发表,AI工具如何助力医学科研全流程
  • Git协作开发实战指南:从拉取代码到安全提交
  • 从焦虑到从容:这款AI工具如何帮我高效完成5万字硕士论文
  • 19、深入了解SMB协议:实现Linux与Windows的集成
  • 单链表逆转,c语言
  • tilelang-docs-l10n
  • Vue 3 从基础到高阶全攻略
  • Python开发:从基础到实战
  • 25、Linux 操作系统维护指南
  • 从零开始: C#图像验证码跨平台轻松实现
  • 20、深入了解 smbclient:实现 Linux 与 Windows 资源交互
  • 26、UNIX和Linux系统的安全、卸载及相关资源介绍
  • 终极突破:完美解决Vencord中ModView权限限制的完整指南
  • RSSPub:RSS聚合器及EPUB生成器
  • 机器视觉与运动控制:基于PC+EtherCAT总线的柔性产线上下料机器人集成案例教程