QT 嵌入式编译出错:cc1: fatal error: .pch/release-shared-emb-arm/QtGui: No such file or directory 解决方案:

configure参数:

./configure -confirm-license -release -shared -opensource -embedded arm -xplatform qws/linux-arm-g++ -little-endian -qt-sql-sqlite -no-qt3support -no-webkit -no-javascript-jit -no-script -no-scripttools -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -qt-freetype -depths 8,16,24,32 -qt-gfx-linuxfb -qt-mouse-tslib -qt-kbd-linuxinput -I /usr/local/tslib/include -L /usr/local/tslib/lib -nomake examples,demos,docs

后面增加: -no-pch


收集其他错误:

libts-0.0.so.0 need by libQtGui.so: not found(try using -rpath or -rpath-link)
在mkspecs/common/linux.conf中进行修改:
QMAKE_LIBS_THREAD = -lpthread -lts


由于老的arm-linux-gnu工具链不支持64位,因此需要安装32位库

sudo apt-get install lsb-core

注意:

1.在编译本地(PC 64)环境时,不要-no-*几项,会导致QML开发库无法编译。

你可能感兴趣的:(嵌入式,解决方案,qt,ARM)