Ubuntu 11 builds a QT Development Environment

Source: Internet
Author: User

Chapter 1

1. Enable the root user: sudo passwdroot

 

2. log out of linux


 

Use the root user to log on after startup


 

3. Create a working directory under home


 

4. install ftp

Open the ubuntu Software Center


 

Select Internet


 

Select File Sharing


 

Select FileZila


 

Install


 

Open FileZila


 

Enter the IP address of the host to be connected.


 

Username: arm password 190456


 

Download files


 

Download complete


 

5. install openssh: sudo apt-get install openssh-server


 

Select Y


 

Installation Complete


 

Check openssh-server


 

View IP


 

Use putty software to control virtual machines

Configure putty


 

Enter the Virtual Machine IP Address


 

Click open and enter the Virtual Machine user name and password.


 

6、decompressing qt-embeded-linux-opensource-src-4.5.0_20100601.tar.bz2

Enter the download directory in terminal input: tar xvf qt-embeded-linux-opensource-src-4.5.0_20100601.tar.bz-C/

Decompress eabi-4.3.3_embedsky_20100610.tar.bz2

Input in terminal: tar xvf EABI-4.3.3_EmbedSky_20100610.tar.bz2-C/

7. Modify Environment Variables


 

The modified content is as follows:


 

Use environment variables to take effect


 

Compile arm_qt-4.5_build


 

After the compilation is successful, the system prompts: Finishedinstall Qt4.5!

If gmake: not found is prompted during compilation

Modify


 

Compile after modification.

Chapter 2

1. Install qtcreator

Open the ubuntu Software Center

 

Select an integrated development environment


 

Select the qt producer


 

Click More and select all additional components.

 

2. Create a STARTUP script



 

The script content is as follows:


 

Save


 

Change file attributes


 

Double-click qtcreator to run


 

Open qtcreator


 

Click Tools-Option

 

Click +, select/opt/EmbedSky/qt-4.5/_ install/arm/bin/qmake


 

Chapter 3

1. Configure the NFS service


 

Add the following content and save it.


 

The following three steps are used to update, install, and check the nfs service. If you have installed the latest version on your computer, skip these three steps.

1.1 update nfs

Enter sudo dpkg -- clear & sudo apt-get update on the terminal

1.2 Installation

Enter sudo apt-get install nfs-common nfs-kernel-server portmap on the terminal

1.3 check nfs-kernel-server

Enter sudo etc/init. d/nfs-kernel-server start in the terminal

Sudo etc/init. d/nfs-kernel-server stop

Sudo etc/init. d/nfs-kernel-server restart

1. Create a Development Directory (shared directory)

2.1 connect to the Development Board via telnet


2.2 create a directory

 

1. Configure the nfs ing directory


 

Chapter 4

Create a hello word test program


 

Select Create Project


 

Select project directory

 

Select Compiler

 

Next step


 

Select 4.5.0 release


 

Construction Project


 

 

Compiled

From Zhang jianbo's column

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.