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 개발 라이브러리를 컴파일할 수 없습니다.

좋은 웹페이지 즐겨찾기