Install qt4.5.3 qtembeded on Ubuntu 9.10

Source: Internet
Author: User

The following describes how to install QT 4.5.3 and QT qtembeded 4.5.3. Thanks to erfolgreich for installing other versions of QT 4.5.3 and qtembeded 4.5.3, I would like to share with you the installation process to help some people.

I. conditions:

Download the following installation package:
1.qt-embedded-linux-opensource-src-4.5.3.tar.gz
Official Website: http://qt.nokia.com/downloads/embedded-linux-cpp
2 qt-x11-opensource-src-4.5.3.tar.gz
Official Website: http://qt.nokia.com/downloads/linux-x11-cpp

The default directory to be downloaded is/tmp (Note: The files downloaded under the/tmp directory will disappear after restart ).
So
Create a new QT directory under the/usr directory.
Upload the two packages downloaded above
Qt-embedded-linux-opensource-src-4.5.3.tar.gz
Qt-x11-opensource-src-4.5.3.tar.gz
In the/usr/Qt directory.

2. Install QT-embedded
1. Set Environment Variables
Terminal input: VI ~ /. Bashrc

Add the following code at the end of the opened configuration file:

Export qtedir =/usr/local/trolltech/QtEmbedded-4.5.3
Export Path =/usr/local/trolltech/QtEmbedded-4.5.3/bin: $ path
Export LD_LIBRARY_PATH =/usr/local/trolltech/QtEmbedded-4.5.3/lib: $ LD_LIBRARY_PATH

Save the configuration and restart the system. (If you do not restart these variables, they do not take effect. The variables used here are invalid, for example, $ {qtedir })

2. Compile and install QT-embedded

Command entered in the terminal
# Cd/usr/QT
# Tar-zxvf qt-embedded-linux-opensource-src-4.5.3.tar.gz
# Cd qt-embedded-linux-opensource-src-4.5.3
#./Configure-embedded x86-qvfb
# Make
# Make install

Qt-embedded is installed in this directory/usr/local/trolltech/QtEmbedded-4.5.3
So far, QT-embedded has been installed.

Make (Compilation) process is about 1-2 hours (stuffy ......).

Three compilation installation qt-x11
# Cd/usr/QT
# Tar-zxvf qt-x11-opensource-src-4.5.3.tar.gz
# Cd qt-x11-opensource-src-4.5.3
#./Configure
# Make
# Make install

Qt-x11 installed to this directory/usr/local/trolltech/Qt-4.5.3

Compile qvfb:
# Cd/usr/QT/qt-x11-opensource-src-4.5.3/tools/qvfb
# Make
Copy the generated qvfb to the bin of QT-embedded, as shown in figure
# Cp/usr/QT/qt-x11-opensource-src-4.5.3/bin/qvfb $ {qtedir}/bin
So far, the qt-x11 has been installed
This compilation process also takes about 1-2 hours ....... (Stuffy ....)

Iv. Test
# Cd $ {qtedir}/demos/Chip
# Qvvb &
#./Chip-qws
In this way, you can see the image of the related routine.

The error message displayed during self-compilation is
Basic xlib functionality test failed!
You might need to modify the include and library search paths by editing
Qmake_incdir_x11 and qmake_libdir_x11
That's because
Libxtst-Dev is not installed in Ubuntu.
Solution:
# Sudo apt-Get install libxtst-Dev the libxtst-dev system will not reinstall libxtst-Dev ).

Space from erfolgreich


Do not repost original articles in the form of links and indicate the original source !!!
Source: www.ubuntuhome.com
Original article link: http://www.ubuntuhome.com/ubuntu-9-10-qt-4-5-3-qtembeded-4-5-3-install.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.