首页 > 解决方案 > 无法构建 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];

我究竟做错了什么 ?

标签: c++linuxqtraspberry-picross-compiling

解决方案


推荐阅读