QT-4.8.6 编译配置过程

你。 提交于 2020-04-04 05:53:26

1、编译 TSLib

sudo apt-get install automake autogen libtool libtool-bin
./autogen.sh
./configure --host=arm-linux-gnueabihf CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ ac_cv_func_malloc_0_nonnull=yes --prefix=/opt/tslib-1.4
make
sudo make install
libtool --finish /opt/tslib-1.4/lib/ts/

2、linux-arm-g++ qmake.conf

#
# qmake configuration for building with arm-linux-g++
#

include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)

# modifications to g++.conf
QMAKE_CC = arm-linux-gnueabihf-gcc -lts
QMAKE_CXX = arm-linux-gnueabihf-g++ -lts
QMAKE_LINK = arm-linux-gnueabihf-g++ -lts
QMAKE_LINK_SHLIB = arm-linux-gnueabihf-g++ -lts

# modifications to linux.conf
QMAKE_AR = arm-linux-gnueabihf-ar cqs
QMAKE_OBJCOPY = arm-linux-gnueabihf-objcopy
QMAKE_STRIP = arm-linux-gnueabihf-strip

load(qt_config)

3、编译 qt-4.8.6
./configure --prefix=/opt/qt-4.8.6/arm -opensource -release -shared -fast -exceptions -little-endian -xmlpatterns -iconv -svg -webkit -armfpa -Declarative -DQT_QLOCALE_USES_FCVT -DQT_NO_QWS_CURSOR -qt-sql-sqlite -qt3support -qt-freetype -qt-zlib -qt-libtiff -qt-libpng -qt-libjpeg -qt-gfx-linuxfb -qt-gfx-transformed -qt-gfx-multiscreen -qt-kbd-linuxinput -qt-mouse-linuxtp -qt-mouse-tslib -no-largefile -no-glib -no-phonon -no-mmx -no-3dnow -no-sse -no-sse2 -no-nis -no-cups -no-dbus -no-gfx-vnc -no-gfx-qvfb -no-kbd-qvfb  -no-mouse-qvfb -no-pch -xplatform qws/linux-arm-g++ -embedded armv7 -depths 16,24,32 -make libs -make tools -make examples -make demos -make translations -make docs -I/opt/tslib-1.4/include -L/opt/tslib-1.4/lib -confirm-license

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!