Use of QT-mobility

Source: Internet
Author: User

If you want to use qtmobility to call some underlying functions in the project, you can get started. I have encountered many problems here. I have also referred to some documents on the Internet, but I also know why I have always encountered problems. Here I will summarize my actual problems.

 

1: QT-mobility is built in the Symbian environment. Although you can also download the source code to compile the Win32 UNIX Mac version, I have never succeeded in compiling the Win32 version myself, whether it is g ++ or nmake, it always prompts that some of the items in the source code are not defined, and I am not sure about this. I have asked many people to solve it. Finally, I am so worried that I can directly use the compiled binary file provided by the official website! This bypasses this problem!

The current version is 1.0.0 (2), is: http://get.qt.nokia.com/qt/solutions/qt-mobility-symbian-opensource-1.0.2.zip

2: specific installation process with wiki documentation: http://wiki.forum.nokia.com/index.php/%E5%9C%A8Qt_S60%E4%B8%AD%E4%BD%BF%E7%94%A8QtMobility%E5%81%9A%E5%BC%80%E5%8F%91

On this basis, I encountered the following problem: You need to set the environment variable and set epocroot to the root directory of the Symbian SDK. If this is not set before, you will report the error "error: cannot find file:/epoc32/release/armv5/urel/app.exe" when compiling the release version.

 

3: compile a built-in Example run after installation. Modify the example pro file and comment out include (../examples. PRI.

 

4: Precautions for installation on a real machine:

Currently, the latest version of QT-mobility is 1.0.0 (2. SIS (in this version called: qtequality_express_signed.sis) and then install the application, the system will prompt you to say: minimum need Qt-Mobility1.0.1 (1 )., therefore, applications cannot be installed if the installed version is too low. Is that true? I checked it. The latest version is 1.0.0 (2), and there is no 1.0.1 series! It can only be said: This is a low-level error made by Nokia: the version number is not uniform! In fact, 1.0.1 (2) is later understood as 1.0.2

To ensure smooth installation on your mobile phone, you can install a smart istaller so that the application can automatically download the matching library from the server. However, this is cumbersome, this is also the solution provided by many overseas websites. However, I discovered the simplest solution: Install the application first, and then install qtequality_express_signed.sis! Haha ~

 

5: when using this module: I gave tutorials online, but I couldn't pass it all the time. I included a header file of one of its classes and then used this class. An error occurred while compiling: the definition of this class cannot be found! I am wondering! Taking a closer look at the tutorial, there is nothing to do about pro. Later, I checked the source code of this Class header file and found the problem: it used the namespace and defined this sentence as a macro. I said: I didn't pay attention to this item several times at the beginning. Locate the problem and solve it later:

You also need to declare the use of its namespace: Using namespace qtmobility;

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.