Build a QT environment in meego

Source: Internet
Author: User

Meego applications can be developed in a simulated environment or on a real meego system. This blog will focus on how to build a QT environment on the meego system.

The main steps are as follows:
1) download the qt sdk at http://qt.nokia.com/downloads/sdk-linux-x11-32bit-cpp. For other environments, select the relevant platform at http://qt.nokia.com/downloads.

2) install the QT SDK
$ Chmod U + x qt-sdk-linux-x86-opensource-2010.05.1.bin
$./Qt-sdk-linux-x86-opensource-2010.05.1.bin

3) set the shell environment variables qtdir and Path
A) Open ~ /. Bash_profile
$ VI ~ /. Bash_profile
B) add the qtdir environment variable.
Qtdir =/opt/qtsdk-2010.05/QT
Path = $ path: $ home/bin: $ qtdir/bin
Export path
Export qtdir
C) Save ~ /. Bash_profile and exit vi

4) Check whether qtdir and path are correct.
$ Source ~ /. Bash_profile
$ Echo $ qtdir
$ Echo $ path

5) check whether the qmake path is correct
$ Which qmake

6) edit/etc/lD. So. conf.
$ Su Root
$ VI/etc/lD. So. conf
Add a new line/opt/qtsdk-2010.05/QT/lib, save and exit vi
$ Reboot

7) set proxy
$ Export http_proxy = http://XXX.YYY.ZZZ: Port
$ Echo $ http_proxy

8) enter the root user
$ Su Root

9) install make
$ Zypper install make
$ Which make

10) install gcc
$ Zypper install gcc
$ Which gcc

11) install g ++
$ Zypper install gcc-C ++
$ Which G ++

12) install GDB
$ Zypper install GDB
$ Which GDB

13) Open QT creator

14) Select Tools menu-> OPTIONS... Choose "qt4" from the menu to check whether it is in auto-detected. qtcreator recognizes Qt in path. Generally:
Qt in path/opt/qtsdk-2010.05/QT/bin/qmake

15) Select File menu> New file or project... Menu.

16) Select the qt c ++ Porject menu

17) Select the qt gui application menu

18) Select choose... Button

19) Name the project. Here I name it myqttest.

20) click Next.

21) Select Qt in Path

22) click Next.

23) click Next.

24) Click Finish.

25) Click compile and run to check whether the QT environment is OK.

 

Address: http://origin-software.intel.com/zh-cn/blogs/2010/12/27/meego6-meegoqt/

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.