qt4 6 4編譯筆記

2021-06-07 01:06:01 字數 1941 閱讀 1641

2.cd arm-qte/mkspec/qws/linux-arm-g++/

vi qmake.conf

qmake_cc                = arm-linux-gcc -lts

qmake_cxx               = arm-linux-g++ -lts

qmake_link              = arm-linux-g++ -lts

qmake_link_shlib        = arm-linux-g++ -lts

加上lts後,在編譯時應用程式時就不會出現ld: warning: libts-0.0.so.0, needed by /home/zhxt/qt_for_arm/qt-everywhere-opensource-src-4.6.2/lib/libqtgui.so,

not found (try using -rpath or -rpath-link)/home/zhxt/qt_for_arm/qt-everywhere-opensource-src-4.6.2/lib/libqtgui.so: undefined reference to `ts_read_raw'

這樣的問題

3.進入arm464-qte/src/gui/itemviews/qabstractitemview.cpp第2311行,將'key_backspace' 更改為將'key_backspace'

避免出現itemviews/qabstractitemview.cpp:2311: error: 'key_backspace' is not a member of 'qt'這樣的問題

4.配置

./configure -prefix /usr/local/arm481 -release -opensource -shared -fast -no-largefile -qt-sql-sqlite -no-exceptions -stl -no-qt3support -no-webkit -no-mmx -no-3dnow -no-sse -no-sse2 -no-svg -qt-libpng -qt-libjpeg -make libs -nomake examples -nomake docs -nomake demo -no-nis -no-cups -no-iconv -no-dbus -no-openssl -xplatform qws/linux-arm-g++ -embedded arm -little-endian -host-little-endian -qt-freetype -depths 8,16,24 -qt-gfx-linuxfb -no-gfx-vnc -no-gfx-qvfb -no-gfx-transformed -no-gfx-multiscreen -qt-mouse-tslib -i/usr/local/tslib/include -l/usr/local/tslib/lib -no-glib

5.gmake

gmake install

6.進入x86-qte

./configure ......-qt-mouse-qvfb -qt-gfx-qvfb -qt-kbd-qvfb -embedded x86 -xplatform qws/linux-x86-g++...去掉有關tslib的

gmake

gmake install

7.進入x11-qt

./configure -no-webkit -qvfb

gmake

gmake install

8. cd x11-qt/tools/qvfb

make

make install

如果出現x11/extensions/xtest.h:沒有那個檔案或目錄這樣的錯誤

redhat enterprise 6要安裝libxtst-1.0.99.2-3.el6.i686.rpm這個包

ubuntu執行命令:sudo apt-get install xorg-dev搞定

mklichee編譯筆記

環境 1 ubuntu16.04 lts x64 2 openjdk 1.7 依賴軟體列表 僅在ubuntu 16.04 x64上測試,其它版本可能不適用 sudo apt get install y git flex bison gperf build essential libncurses5 ...

android編譯筆記

清華大學映象 linaro映象 一 repo sync 是出現錯誤 error cannot fetch platform prebuilts qemu kernel fatal unable to connect to aosp.tuna.tsinghua.edu.cn aosp.tuna.tsi...

busybox編譯筆記

2.解壓 tar jxvf busybox 1.20.1.tar.bz 3.配置 1 進入解壓後的檔案busybox 1.20.1 cd busybox 1.20.1 2 進行預設配置 make defconfig 3 個別修改配置 make menuconfig busybox setting b...