Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Unable to build qtdeclarative (cross-compiling Qt5 for Raspberry Pi zero W): Error ‘PATH_MAX’ was not declared in this scope
glamis last edited by
I have successfully cross-compiled qtbase for Raspberry Pi 0 W (by following https://wiki.qt.io/RaspberryPi2EGLFS) , but I'm unable to build the sub-module QtDeclarative for adding QML support. With Qt5.15.0 I'm getting the following error :
/qtdeclarative/src/3rdparty/masm/wtf/OSAllocatorPosix.cpp:86:14: error: ‘PATH_MAX’ was not declared in this scope char buf[PATH_MAX];
What am I doing wrong ?
@glamis I'm not sure why PATH_MAX isn't found in your source code, but this post should help you understand what it is: https://stackoverflow.com/questions/9449241/where-is-path-max-defined-in-linux