Install the QT Symbian development environment-reprint

Source: Internet
Author: User

Install basic tools

Basic tools include JRE (Java runtime enviroment) and ActivePerl, which are the basis for running the development environment.

JRE Installation

JRE is the basis for running carbide (which is the integrated development environment for Symbian SDK Development). You can download the latest version from the sun Website: JRE download.

ActivePerl

ActivePerl is used to manage the compilation process. Version 5.6.1,: ActivePerl-5.6.1

Install the Symbian SDK

The installation of the Symbian SDK includes the integrated development environment carbide. c ++ installation and the installation of different Symbian SDK Development kits. The former is only a development and debugging environment, and the latter is the library, header file, and simulator used for developing Symbian programs.

Carbide. c ++

Carbide requires version 2.02 and later. For Carbide-2.3, you can download carbide. c ++ v2.3 IDE from the following URL for free:

Notes: After installing carbide. c ++, you need to run a script so that some carbide commands can be used in the Console environment.
Program path: Start-> Program-> Nokia-> carbide. c ++-> Configure environment for winscw commands

Symbian s60 SDK

The Symbian SDK can be downloaded in three versions: fp2 3rd (touch screen not supported), SDK 5th, and n97. You can select the desired SDK version at the address below: Symbian s60 SDK

Test whether s60 SDK is successfully installed

To ensure smooth installation, it is necessary to test whether the following s60 SDK is properly installed.

-Find the carbide program in the Windows Start Menu and start it. If this is the first time you run the program, you will be reminded to set the working directory (workspace directory). Note thatThe working directory name cannot contain spacesOtherwise, compilation may fail.

-In the carbide main menu, selectFile-> New-> Symbian OS C ++ Project


-Set the project type to s60GUI applicationThen selectNext


-Define the project nameProject nameFor (helloworld for newbie) and then selectNextContinued


-ReplaceEmulator debug (winscw)AndPhone release (gcce)Select, and thenNextContinue


-Define the app UID and click the button.FinishComplete (if you do not know what uid is, clickFinishCompleted)


-You can see the project in the left pane of the main carbide window.Helloworld. Right-click the project name to select the current compilation type, and select windows SimulatorEmulator debug (winscw)


-Select the green triangle running button on the toolbar.


-This occursNew Launch Configuration WizardInProcess to launchSelectEmulatorThen clickFinishComplete the configuration.


-Carbide C ++ will automatically compile. After the compilation is successful, the simulator (emulator) will be started.


-If the "helloworld" application is not started, find it in the main menu of the simulator.HelloworldIcon, and then run it


-The program startup interface is as follows:


-Congratulations, the highlights are coming soon ;)

Qt SDK Installation

Open C/C ++ Installation

The QT library depends on some open C/C ++ libraries and header files and needs to be installed first. Open C/C ++ Plugin: Open C/C ++ plugin

Install the QT for Symbian SDK

The current available version is the Qt-4.6.2, which is: Qt-4.6.2 for Symbian.Note: To install the QT for Symbian SDK, you must install the Symbian SDK. When you install the QT for Symbian SDK, It scans the installed Symbian SDK on your computer, select the Symbian SDK to be installed during the installation process. During the installation process, the corresponding QT library is copied to the corresponding Symbian SDK.

Configure Qt in Carbide

After the qt sdk is installed, You need to configure it in carbide. The configuration steps are as follows:
-Open the carbide application-in the Application menu bar, selectWindow-> preferences-In the preferences window, selectQtAnd selectAddButton-in the pop-up window, enter the bin path and include path for your QT installation. Refer to the image below


Test whether QT for Symbian is correctly installed

Follow these steps:

-On the carbide main menu, selectFile-> New-> QT Project


-Select a project typeQt GUI Main Window


-Enter the project name.


-Select the QT project to be developed in that SDK.



-Define the UID of the application (if you do not know what uid is, clickFinishNext step)


-In this case, you can see it in the left-side pane.HelloworldqtProject.


-Click the green triangle button in the toolbar to start the simulator.EmulatorConfiguration Wizard.



-After a while, you can see that the simulator is running, and then the helloworldqt application will be transferred to the foreground. If the current application is not running, you can find it in the Application menu of the simulator.HelloworldqtIcon, and then select Run


-The screen after the program is started is as follows:


-If you run smoothly here, congratulations, start QT!

Install QT for Windows

Because QT is cross-platform. Developers can also develop on Windows and then re-compile on the Symbian platform. Developers can load data in qt.nokia.com/downloads. The installed QT creator can also be used for the development of QT for Symbian.

Install qtcreator

Qtcreator is different from Carbide's other set of IDE tools for developing and debugging QT applications. It can also be developed on machines installed with QT for Symbian SDK.
Qtcreator is QT-creator 2010.02

Install QT on the Symbian mobile phone

To deploy the QT program on a mobile phone, install QT on the mobile phone first, because the current Symbian mobile phone (s60 3rd, s60 5th, n97) QT is not pre-installed at the factory. The QT installation file for the Symbian mobile phone can be found in the installation directory of QT for Symbian. If the installation directory of QT is c: \ QT \ 4.6.2, you only need to upload the qt_installer.sis in the directory to your mobile phone through Bluetooth or USB cable and install it. Install the following libraries on your mobile phone:

  • Open C/C ++ (you can go to \ Symbian \ s60_5th_edition_sdk_v1.0 \ nokia_plugin \ openc \S60opencsisAnd \ Symbian \ s60_5th_edition_sdk_v1.0 \ nokia_plugin \ opencpp \S60opencppsis)
  • Qt libraries (available under \ QT \ 4.6.2)

The installation details can be found in the file\ QT \ 4.6.2 \ sisfiles.txt.

For more information about how to port the QT application to a mobile phone, see another article to run the QT application on a Symbian mobile phone.

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.