QtCreator + QtEmbedded: Create an Embedded ARM development environment on Ubuntu

Source: Internet
Author: User
Environment: Ubuntu10.04armlinuxOS: 3.0.1arm qt-4.7.1g ++/gcc4.4.3arm-linux-g ++/arm-linux-gcc4.3.2 Special Note: Some sites reprinted my article does not indicate the source, and reprint is not in place, the corresponding link is not transferred, for example, the download link or the link to the relevant literature, which leads to some netizens reading and using obstacles and the lack of knowledge, so here

Environment:

Ubuntu10.04

Arm linux OS: 3.0.1

Qt-4.7.1 on arm

G ++/gcc 4.4.3

Arm-linux-g ++/arm-linux-gcc 4.3.2

Note:

Some websites do not indicate the source of the reposted articles, and the reposted documents are not in place. They do not transfer the corresponding links, for example, download links or links to relevant documents, as a result, some netizens may encounter reading and usage obstacles and the knowledge is not continuous. Therefore, note: My article is published on the CSDN blog and can be read by the CSDN blog.

Question:

Since I have never touched on ARM, linux only knows a little bit about it, but now the development needs, there is no way, it can only touch this hard bone.

I bought an OK6410 Development Board. Due to the limited learning materials in it, I have studied it for a long time, what are QT, QT4. **, QTOpia2. **, QTOpia4. **, QTEmbedded, QTDesigner, QTCreator ...... A lot of QT, don't know what the association is, complicated, don't understand.

It was known that this was a tough nut to crack before exposure.

However, I only have one topic, that is, the program I write can run on Linux ARM,

Therefore, we need an IDE for development. The program compiled by IDE can run on ARM;

What Should IDE choose? Some articles use QTDesinger and some use QTCreator.

After data query, both QTDesinger and QTCreator can be used. QTCreator is more similar to the commonly used VC ++ IDE;

OK6410 Linux has two more image interfaces: QTOpia2 and QT4.

I usually write VC programs, so I prefer QTCreator (in fact, QTDesinger is included in QTCreator)

The above is my understanding of many QT objects, which may be incorrect, but it is a great step forward for me now.

The following describes how to create an Embedded ARM development environment on Ubuntu with QTCreator + QTEmbedded.

First, load the arm compiler on ubuntu: arm-linux-gcc, arm-linux-g ++)

Then compiled with ubuntu QT4.7.1 (that is, QTEmbedded), its source code name is: qt-everywhere-opensource-src-4.7.1.tar.gz

Decompress compiled as shown in :( note: the name of the QtEmbedded-4.7.1-arm is changed later, formerly known as the name of the decompressed package)

Next, go to the bin folder and change the qmake name to qmake-arm (so that the difference can be avoided)

Install QTCreator on Ubuntu and search for the new software package manager in ubuntu.

Then run QTCreator to write a simple program.

After running successfully on the PC end (for example)

You can compile the arm program.

It is easy to compile the application created by QTCreator into the ARM version. Use the qmake tool of the embedded ARM version QT4 to create the Makefile file, then make.

Go to the project folder.

Run the qmake-arm command:

The Makefile file will survive.

From the Makefile content, we can see that the compiler has adopted arm-linux-gcc or arm-linux-g ++. After making, compile the program that can run in the QT4 environment on the ARM.

Reading:

QtCreator dynamic compilation jsoncpp perfectly supports x86 and arm platform http://www.linuxidc.com/Linux/2012-02/53678.htm

Build http://www.linuxidc.com/Linux/2011-03/33824.htm of embedded development environment under Ubuntu

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.