Symbian Development notes (I) Installation of the Qt for Symbian Environment

Source: Internet
Author: User

The following is a summary of your work. If you have any errors or deficiencies, please note. Thank you!

 

Installation steps:

Which of the following numbers must be installed on the same disk, and the path cannot be empty or Chinese. Otherwise...

 

1. Install JDK

 

2. Install ActivePerl-5.10

 

3. Install Carbide_cpp_v2_3_en (*) and run "program \ Nokia \ Carbide. c ++ \ Configure environment for WINSCW command line". Enter Y and press Enter.

 

4. Install Nokia_N97_SDK_v1_0_en (*). After the installation is complete, a prompt will be prompted to install CSL Arm Toolchain. to install this tool, the path is default. After installation, Run "program \ Nokia Developer Tools \ N97 SDK \ v1.0 \ Languages ages \ Change to Chinese" to switch the simulator language to Chinese.

 

5. Install qt-symbian-opensource-4.7.0-s60.exe (*)

 

6. Install Nokia_Qt_SDK_Win_offline_v1_0_1_en (*)

 

7. Run Carbide. c ++ and a new SDK will be prompted. Press Restart, Restart, and disable it.

(This step is done for the compiler to identify the newly installed SDK, otherwise the compilation will fail)

 

8. configure Mobile_extensions (this is the old library before Qt4.4 and has some functions not available in the new library, such as the phone function. do not configure it if you do not need it. It has compatibility issues with the new version, can be used only after direct static compilation is configured ),

A. Unzip Mobile_extensions_preview_3 (*) and MobExtConfig-0.5 (*) In the same folder.

B. Click Qt for Symbian by Nokia v4.7.0 (S60 Opensource) -- Qt for Symbian Command Prompt under the Start menu to open a cmd window.

C. Run the following command in the open cmd window:

Configure. bat-sourcepath D: \ Qt \ Mobile_extensions \ extensions \ src (change the path to your desired path)

 

9. Configure QtMobility (new library of Qt mobile development) and decompress qt-mobility-symbian-opensource.

Decompress the decompressed qt-equality-1.0.2-epoc32-5.0.zip file to the N97 SDK.

. Click Qt for Symbian by Nokia v4.7.0 (S60 Opensource) -- Qt for Symbian Command Prompt under the Start menu to open a cmd window and run it in the opened cmd window:

Configure. bat

It is displayed as successful before running:

Make debug-winscw

Close this window.

 

10. move the Symbian folder under C: \ Program Files \ Common Files \ to the same disk as Qt and the path cannot be empty or Chinese, open my computer -- Property -- Advanced -- environment variable, and replace C: \ Program Files \ Common Files \ Symbian \ tools in the system's Path variable with a new Path, as shown in:

(If this parameter is not changed, the SDK compilation fails due to space in the original path)

 

11. Configure the Qt compiler. By default, Qt does not recognize the SDK simulator. You need to configure it yourself. Open Qt Creator -- Tools -- Options -- Qt4

Click the selected yellow color and follow the configuration path:

After entering the information, press OK, turn off Qt, and restart Qt.

 

12. Start Qt and start the first project HelloWorld

Click File -- New File or Project, select Mobile Qt Application, next, Project name HelloWorld, path must be the same disk as Qt, this is the key, otherwise the compiler cannot compile the sisfile. You can set other settings by default.

Qt will automatically open the mainwindow. ui file, which is the control layout file. Drag a Label and change the content to HelloWorld.

Click on the left,

A list is displayed. Select Symbian Emulator, for example:

Then, press the green button and wait for the compilation to complete and run. If you can see the final result, the configuration is successful.

 

FAQs:

 

1. Why do I need to install two development environments: Carbide and Qt Creator?

A: The purpose of Carbide installation is to use the N97 SDK simulator. We can develop and use Qt Creator.

 

2. The N97 vertical screen version will not display completely on small screens such as the current version. How can this problem be solved?

A: Open the \ epoc32 \ data folder under the N97 SDK installation directory, and you can see the epoc _ ***** _ touch _***. in the INI file, you can open the image at any resolution and change the displayed offset to 0 in the third and fourth rows.

ScreenOffsetX 0

ScreenOffsetY 0

Modify the corresponding bmp file and change the size to the appropriate resolution.

Effect

 

3. What is the purpose of installing qt-symbian-opensource?

Install the Qt Symbian library on the N97 SDK

 

4. What is the difference between Mobile_extensions and QtMobility?

Mobile_extensions is an old library used in versions earlier than 4.4. It has complete functions but has poor compatibility. It only supports S60. QtMobility is a new library developed by Qt. It supports multiple mobile platforms, but its functions are not complete enough, such as the commonly used call function, to use this function, only Mobile_extensions can be used or mixed programming of Symbian C ++ can be used.

 

5. Why is there no problem with the clearly-known code, and the effect is just getting stuck?

A: If you are sure that the code is correct, you can only say that it is a Qt Bug. Currently, there are many bugs in Qt for Symbian:

You are advised to check the Bug list before development. Otherwise, you may doubt your capabilities if you cannot find the problem after debugging for N hours.

If you find a Bug, you can submit it to the following website:

Http://bugreports.qt.nokia.com/secure/Dashboard.jspa

 

6. Why is the memory still not released after the object is deleted?

A: Bug. For example, QtWebkit. The official website will ask you to increase the heap space size. The official website recommends setting the maximum heap space to 32 MB, however, many Symbian machines do not even have 15 m ram. On these machines, the program cannot run, or will be automatically closed after a while... This can only be solved by the official website.

 

7. Description of several compilation options in Qt

A:

Maemo: Another system developed by Nokia, unlike Symbian, is the predecessor of Meego. The effect is similar to the second option Qt Simulator.

Qt Simulator: the built-in Simulator of Qt. The current function is still very low-end. The only advantage is that it is faster than the Simulator of the SDK. You can use the vs2008 compiler or MinGW, but do not be fooled by it. Some unique things of VC can be compiled in your hands, but they cannot be compiled into the sisfile, because the real machine does not have this API at all... Another problem is the problem of display differences. We can see the perfect effect on it. However, the existence of bugs is completely different on the real machine, so unless it is learning, otherwise, do not use this simulator. Otherwise... (I am a person who has been cheated by it for a lot of time and despised it)

Symbian Device: This option can be used to compile the sisfile or debug it on the real machine through the data cable.

Symbian Emulator: This is what we need to use in real development. It is a simulator of the N97 SDK. The effect is basically the same as that of a real machine. It uses the gcce compiler, which slows down compilation and starts slowly.

 

 

Postscript:

Currently, Qt for Symbian is not perfect, mainly including:

1. There are many bugs.

2. The memory usage is large, and the computer in the Symbian system generally has less available memory than other systems, and many components also leak memory, which is even worse.

3. CPU usage is high. You can check the Bug list above. Qt Often crashes background programs such as ViewSvr due to CPU usage, while Nokia always prefers Texas Instrument's low-end CPU, this is more...

4. Deployment is troublesome. A few databases add up to nearly 20 mb.

5. Currently, there are not many supported models.

6 .......

 

This situation is like the. net framework of the past, that is, it does not know whether Qt can develop as rapidly as it did, in order to save Nokia's market share of smart phones. I hope that Qt will not add any more features. First, fix a bunch of bugs existing in N versions...

Article Reprinted from http://luzj.me/symbian-developer-qt-for-symbian-setup.html

 

 

 

Duobao City

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.