linux下搭建QT开发环境及编译QT demo

1、下载QT源码
2、配置编译环境
	$ ./configure -embedded arm -qt-gfx-qvfb -qt-kbd-qvfb -qt-mouse-qvfb -qt-libpng  -qt-libmng -qt-libjpeg -qt-libtiff -qt-gif -qt-zlib
3、编译
	$ make
4、安装QT
	$ sudo make install
	
5、编译QT demo for x86
	$ qmake -project
	$ qmake
	$ make
	
6、编译QT demo for arm
	$ export QTDIR=/usr/local/Trolltech/QtEmbedded-4.7.3-arm/
	$ export QTEDIR=$QTDIR
	$ export PATH=$QTDIR/bin:$PATH
	$ export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
	$ qmake -project
	$ qmake
	$ make

你可能感兴趣的:(linux下搭建QT开发环境及编译QT demo)