Reprint please indicate the source of the original, http://www.cnblogs.com/flyingcloude/p/6992441.html
The installation of the ubuntu10.10 is not recorded. Very simple, just go to Ubuntu's official website to download, and then make a USB installation, and then the idiot-style next, you can install the complete.
Before installing the QT development environment, install some necessary software.
To install the JDK:
Download the JDK1.7.0 on the Oracle official website and install it via the tar command.
After installation, set the environment variable: vim/etc/environment, and then add on:/opt/jdk1.7.0_17/bin (/opt/jdk1.7.0_17 is the JDK's installation path)
Install Chinese Input Method:
Installation can be done via system-administration-language support.
Install ARM-LINUX-GCC (this will be used during the subsequent compilation process)
Install using the tar command, with the following: sudo tar xvzf arm-linux-gcc-4.5.1-v6-vfp-20101103.tgz-c/
After the installation is complete, make the environment settings:
Vim. BASHRC
Add Export path= $PATH:/opt/friendlyarm/toolschain/4.5.1/bin
The next step is to compile and install QT-related software.
Compile and install Qt-opensource-everywhere (4.7.0 version), next you need to compile and install PC version, qte-x86 version, ARM edition separately.
(1) Installation of Qt-opensource-everywhere (4.7.0) version qt-x86
Install it into the/usr/local/qt-x86 directory
Configuration:./configure-prefix/usr/local/qt-x86-qvfb
You must add-QVFB this time otherwise you cannot compile the build Qvfb
After the/configure, do not rush to make, please install some relevant Lib first
sudo apt-get install Libxrender-dev
After that, you can do a sudo make && do install
In the qvfb of sudo make && makes install
(2) Installation of Qt-opensource-everywhere (4.7.0) version qte-x86
Configuration:./configure-prefix/usr/local/qte-x86-embedded X86-QT-GFX-QVFB-QT-KBD-QVFB-QT-MOUSE-QVFB
Compile and install: sudo make && make install
(3) Installation of ARM version of Qt-opensource-everywhere (4.7.0)
First, install some relevant Lib
sudo apt-get install autoconf
sudo apt-get install Automake
sudo apt-get install Libtool
Installing Tslib
Set Environment variables First
Export Path=/opt/friendlyarm/toolschain/4.5.1/bin: $PATH
Export toolchain=/opt/friendlyarm/toolschain/4.5.1
Export tb_cc_prefix=arm-linux-
Export pkg_config_prefix= $TOOLCHAIN/arm-linux
Run the script:./autogen.sh
echo "Ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
Configuring Installation Parameters
./configure--host=arm-linux--cache-file=arm-linux.cache--enable-input=no plugin_dir=/usr/local/arm/tslib/ Plugins-prefix=/usr/local/arm/tslib/build-host=arm-linux--cache-file=arm-linux.cache 2>&1 | Tee Conf_log
Compiling and installing make 2>&1 | Tee Make_log
Make install
Next install Qt-everywhere-opensource (4.7.0) ARM version
Place the./mkspecs/qws/linux-arm-g++/qmake.conf file in the
QMAKE_CC = ARM_LINUX_GCC, etc. set to a specific path
Installing sudo makes && make install on Build
At this point, qt4.7.0 installation is complete, qtopia4.4.3 see next article
Reprint please indicate the source of the original, http://www.cnblogs.com/flyingcloude/p/6992441.html
Construction of QT development environment under ubuntu10.10 (i.)