Build a MeeGo Touch development environment using qt sdk (1)

Source: Internet
Author: User

We will introduce some tutorials on the MeeGo development environment after the introduction of tutorials such as the UI design basics for the development of MeeGo mobile terminal devices. Some may ask, "Why do you need to do this more? Careful friends may find that I don't need to compile QT4.7 but use the QT4.7 SDK to build the environment here. It usually takes about one afternoon to compile QT4.7, but it takes up to 20 minutes to compile it with the SDK. This is also the hope of a faster way for everyone to play MeeGo.

Download QT-sdk-linux-x86-opensource-2010.05-rc1.bin

1. Install the QT-sdk-linux-x86-opensource-2010.05-rc1.bin command:

 
 
  1. chmod 777 QT-sdk-linux-x86-opensource-2010.05-rc1.bin  
  2. ./QT-sdk-linux-x86-opensource-2010.05-rc1.bin 

2. Download the compiled library file attachment) and put it in the library of QT 2010.05.

Install g ++

 
 
  1. sudo apt-get install g++ 

3. Install the dependent library file:

(1) install the dependent Library

 
 
  1. sudo apt-get install libfontconfig1-dev libfreetype6-dev libx11-dev libxcursor-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxrandr-dev libxrender-dev  
  2.  
  3.  
  4.  

(2) install the inventory Library

 
 
  1. sudo apt-get install libgconf2-dev libdbus-QT-1-dev  
  2.  

(3) Modify libmeegotouch/configure and change have_enabled = no to yes.

4. Install meegotouch-theme, which is mainly a theme css file)

(1) download the meegotouch-theme code

 
 
  1. git clone git://gitorious.org/meegotouch/meegotouch-theme.git    
  2.  

Then run chmod 777-R libmeegotouch to add the highest permission to all the downloaded source code.

(2) Go To The meegotouch-theme directory.

 
 
  1. cd meegotouch-theme/  
  2.  

(3) execute qmake to generate makefile:

 
 
  1. qmake  
  2.  

(4) Installation

 
 
  1. sudo make install  
  2.  

Note:

When using make, it may be said that the make version is not 4.7. Connection problem between qmake and qt4

You can run the following command to test

 
 
  1. $qmake -v  
  2.  

The following situations occur:

 
 
  1. $Qmake version: 1.07a (QT 3.3.8b)     
  2. $Qmake is free software from Trolltech ASA.  
  3.  

How can I change the qmake version to qt3 and go to the/usr/bin directory?

 
 
  1. root@ubuntu:/home/yyy# cd /usr/bin  
  2. root@ubuntu:/usr/bin# ls -l qmake  
  3. lrwxrwxrwx 1 root root 23 2009-10-09 09:35 qmake -> /etc/alternatives/qmake  
  4.  

View qmake information. A link points to/etc/alternatives/qmake.

 
 
  1. root@ubuntu:/usr/bin# ls -l /etc/alternatives/qmake  
  2. lrwxrwxrwx 1 root root 18 2009-12-08 12:46 /etc/alternatives/qmake -> /usr/bin/qmake-qt3  
  3.  

Finally found the root cause, the original qmake was set to qmake-qt3


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.