编译环境:ubuntu12.04 arm-linux-gcc-4.4.3
1编译tslib1.4
tar xf tslib-1.4.tar.gz
cd tslib
./autogen.sh
如果出现autoconf not find,则安装下面的工具
sudo apt-get install autoconf automake autolibtool
echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
mkdir tmp
./configure --host=arm-linux --cache-file=arm-linux.cache --prefix=$(pwd)/tmp
make
make install
2编译qt-4.8.5 arm版本
tar xf qt-everywhere-opensource-src-4.8.5.tar.gz
mv qt-everywhere-opensource-src-4.8.5 arm-qt-4.8.5-source
cd arm-qt-4.8.5-source
mkdir /home/work/myself/QtE-4.8.5_443
./configure -prefix /home/work/myself/QtE-4.8.5_443 -embedded arm -release -shared -fast -no-largefile -qt-sql-sqlite -qt3support -no-xmlpatterns -no-glib -no-phonon -no-mmx -no-3dnow -no-sse -no-sse2 -no-svg -webkit -qt-zlib -qt-libtiff -qt-libpng -qt-libjpeg -make libs -nomake examples -nomake docs -nomake demo -no-nis -no-cups -iconv -no-dbus -openssl -xplatform qws/linux-arm-g++ -little-endian -qt-freetype -depths 4,8,12,16,24,32 -qt-gfx-linuxfb -qt-gfx-transformed -qt-gfx-multiscreen -no-gfx-vnc -no-gfx-qvfb -qt-kbd-linuxinput -no-kbd-qvfb -armfpa -no-mouse-qvfb -no-pch -qt-mouse-linuxtp -qt-mouse-tslib -DQT_QLOCALE_USES_FCVT -I/home/work/myself/source/tslib/tmp/include -L/home/work/myself/source/tslib/tmp/lib
如果提示:g++ can not find:sudo apt-get install g++
配置提示:
OpenSSL support cannot be enabled due to functionality tests!
Turn on verbose messaging (-v) to ./configure to see the final report.
If you believe this message is in error you may use the continue
switch (-continue) to ./configure to continue.
这里需要再加上-continue选项
./configure -prefix /home/work/myself/QtE-4.8.5_443 -embedded arm -release -shared -fast -no-largefile -qt-sql-sqlite -qt3support -no-xmlpatterns -no-glib -no-phonon -no-mmx -no-3dnow -no-sse -no-sse2 -no-svg -webkit -qt-zlib -qt-libtiff -qt-libpng -qt-libjpeg -make libs -nomake examples -nomake docs -nomake demo -no-nis -no-cups -iconv -no-dbus -openssl -xplatform qws/linux-arm-g++ -little-endian -qt-freetype -depths 4,8,12,16,24,32 -qt-gfx-linuxfb -qt-gfx-transformed -qt-gfx-multiscreen -no-gfx-vnc -no-gfx-qvfb -qt-kbd-linuxinput -no-kbd-qvfb -armfpa -no-mouse-qvfb -no-pch -qt-mouse-linuxtp -qt-mouse-tslib -DQT_QLOCALE_USES_FCVT -I/home/work/myself/source/tslib/tmp/include -L/home/work/myself/source/tslib/tmp/lib -continue
配置完成:
Qt is now configured for building. Just run 'make'.
Once everything is built, you must run 'make install'.
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余1页未读,立即下载