c++ - 无法构建 qtdeclarative(为 Raspberry Pi 零 W 交叉编译 Qt5):错误“PATH_MAX”未在此范围内声明
问题描述
我已经成功地为 Raspberry Pi 0 W 交叉编译了 qtbase(通过遵循 https://wiki.qt.io/RaspberryPi2EGLFS),但我无法构建子模块 QtDeclarative 以添加 QML 支持。使用 Qt5.15.0 我收到以下错误:
/qtdeclarative/src/3rdparty/masm/wtf/OSAllocatorPosix.cpp:86:14: error: ‘PATH_MAX’ was not declared in this scope
char buf[PATH_MAX];
我究竟做错了什么 ?
解决方案
推荐阅读
- html - 对齐网格底部的按钮
- kubernetes - 如何将文件内容传递给 Helm values.yaml
- django - 用于传递 securityheaders.com 的 Django Cookie 前缀
- django - 如何正确使用 django-cms apphooks
- python - 创建一个scrapy蜘蛛。NameError:名称“自我”未定义
- ruby - 什么是 Ruby 的 bsearch find-minimum 和 find-any 行为?
- gitlab-ci - 如何在 gitlab-ci 脚本中执行 git 命令
- javascript - 相机 LED 灯未在 JavaScript Web 应用程序中运行
- python - _csv.Error:迭代器应该返回字符串,而不是 int(您是否以文本模式打开文件?) sqlalchemy
- java - 在开关中使用滑行(在 DataFakeGenerator 类中)