使用的stm32mp157pro的ubuntu环境,使用arm-buildroot-linux-gnueabihf-g++、arm-buildroot-linux-gnueabihf-gcc工具链交叉编译QT源码时,报错如下:
qfilesystemengine_unix.o: In function qt_real_statx(int, char const*, int, statx*)': /home/book/qt/qt-everywhere-src-5.14.2/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:311: undefined reference to
statx’
qfilesystemengine_unix.o: In function QFileSystemEngine::renameFile(QFileSystemEntry const&, QFileSystemEntry const&, QSystemError&)': /home/book/qt/qt-everywhere-src-5.14.2/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:1228: undefined reference to
renameat2’
collect2: error: ld returned 1 exit status
Makefile:192: recipe for target ‘…/bin/qmake’ failed
make: *** […/bin/qmake] Error 1
找不到statx和renameat2,请问是什么原因导致的?是交叉编译工具不对还是,qt版本不对啊,qt我用的是5.14.2