Install Qt4.5 under Ubuntu (including X86 and arm versions)

Source: Internet
Author: User
Tags automake

Condition: TQ2440 Development Board, Virtual machine installation Ubuntu10.04, install the day embedded gcc cross compiler
Reference: http://blog.csdn.net/newnewman80/article/details/6286271

First, install the Qt-opensource
1, decompression qt-x11-opensource-src-4.5.3.tar.gz to the relevant directory
2, enter the relevant directory, execute #./configure, then select O, prompting the error basic XLIB function test failed! You might need to modify the Include and library search paths by editing QMA; Solution: No installation of Libtst-dev, apt-get install Libxtst-dev;
3, execute # gmake prompt error: gmake command not found, Online said Gmake is make, but do make prompt error, do not want the relevant makefile file, the reason or the first step of execution did not succeed, re-execute the previous step, then # Make, takes a long time,

4, # make install;

5. Create shell file qt_x11_setenv under the root directory of QT decompression. Sh, content is:

[CPP]View PlainCopy  
    1. #!bin/bash
    2. Path=/usr/local/trolltech/qt-4.5.3/bin: $PATH
    3. qtdir=/usr/local/trolltech/qt-4.5.3
    4. Mainpath= $QTDIR/man: $MAINPATH
    5. Ld_library_path= $QTDIR/lib: $LD _library_path
    6. Export PATH qtdir Mainpath Ld_library_path
    7. Echo "set qt-x11 env. Successful "

6, save exit, execute # source qt_x11_setenv in terminal. Sh, terminal echo: Set qt-x11 env. Successful;
        7, # echo $QTDIR echoing:/usr/local/trolltech/qt-4.5.3 description environment variable set successfully;

Second, installation of Qt-creator integrated development environment
1, download the installation program: Qt-creator-linux-x86-opensource-1.3.0.bin
2, #./qt-creator-linux-x86-opensource-1.3.0.bin Start installation .... ;
3, after the successful installation, the desktop will have an icon (if the display is a file lock style, then to chmod 777), this time is not available, but also to set qmake;
4, open Qtcreator click TOOLS-->OPENTION-->QT4-->QT Versions Click on the right side of the "+" add the entry, under the "Version name" in the name, the key is Qmake location The choice of my position in:/usr/local/trolltech/qt-4.5.3/bin/qmake, and then click on the rebuild below, etc will be in front of the difference will become a checkmark, and then click Apply OK!


Third, install the embedded QT compiler program
1, first install Tslib unzip the file to the corresponding folder, into the pressurized directory;
2, #./autogen.sh prompt error:./autogen.sh:4: Autoreconf:not found FIX: No Automake tool installed Apt-get install Automake Libtool
3./configure--prefix=/home/mytslib/--host=arm-linux ac_cv_func_malloc_0_ nonnull =yes;
4. # make encountered an error

[CPP]View PlainCopy 
    1. in function  ' open ',    
    2.              inlined from  ' main '  at  ts_calibrate.c:227:11:   
    3.         / usr/include/bits/fcntl2.h:51:24: error: call to  ' __open_missing_mode '  declare         d with attribute error: open with o_ creat in second argument needs 3 argu         ments In function  ' open ',    
    4.              inlined from  ' main '  at ts_calibrate.c:229:11:   


5, # Make install after successful can be generated in home/home mytslib, enter Mytslib can see bin include lib etc four folders;
6, the qt-embedded-linux-open-src-4.5.3.tar.gz extracted to the relevant directory (I decompression and cut to the Opt/embedsky directory);
7, enter the directory, execute #./arm_qt4.5_build Prompt Error: Gmake not found. Resolve to change gmake to make;
8, execute #./arm_qt4.5_build prompt Error: No makefile resolution, the touch screen related path in Arm_qt4.5_build (located behind-qt-mouse-tslib) is modified to:-i/home/mytslib/ Include-l/home/mytslib/lib, then open the environment variable file # Gedit/etc/profile, (profile with GCC environment variable content) Update # so Urce Etc/profile;
9. Execute again #./arm_qt4.5_build; Success!
10, in Qtcreator new modification related qmake (such as the above two, 4 and the path shown in the picture is located);/qt-4.5/__install/arm/bin
This is the second installation, still delayed for a long time, so this time a good record, said a bit complicated, a little messy.
That's a little complicated.

http://blog.csdn.net/sun6gm/article/details/20947643

Install Qt4.5 (including X86 and arm versions) under Ubuntu

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.