S60 QT Development Environment Configuration Guide (carbide gcce)

Source: Internet
Author: User
Tags perl script
Before installing the s60 QT Development Environment Configuration Guide, you need to download the following: ActivePerl 5.10.1 this is the latest version, s60 SDK requires Perl 5.6.1 or a later version of http://www.activestate.com/activeperl/

JRE Java runtime, s60 SDK requires a version above 1.5, I always think that Java version management is chaotic, download the latest on the good http://www.java.com/zh_CN/download/manual.jsp

The fifth version of s60 5th SDK is selected because it is a version that supports touch operations. Currently, touch is very popular. In addition, I only successfully installed the QT program on 5800, it seems that Versions later than s60 5.0 are more reliable. Http://www.forum.nokia.com/Technology_Topics/Development_Platforms/Symbian_C++/QuickStart.xhtml

The download of carbide 2.0 is also here, but you need to register the Forum Nokia account to download it. It is not difficult to register one. You can also use it to ask questions in the Forum. Qt 4.6 for Symbian: Download the build binary. It's simpler. Can the source code be compiled? I'm not sure. Windows/Linux compilation is very simple. I haven't tried s60 yet, it takes a long time to compile QT. Http://qt.nokia.com/developer/qt-4.6-beta-for-symbian-developers

Installation sequence: ActivePerl, JRE, s60 SDK, carbide, and QT. After installing carbide, run a BAT file in the program menu to configure environment variables. Run the s60 simulator. Try it. It should be an interface similar to 5800. Some programs may report errors and ignore it. In fact, the simulator inside Nokia is more unstable and used to birds. Write a program to see? Start with the common s60 program, start carbide, file-> New-> Symbian C ++ project, and select GUI application to generate a simple helloworld project. You may find that the Wizard is running out and nothing happens on the interface. It is still a welcome. Don't worry, it is because the welcome view is maximized, just click the restore button in the upper right corner. Compile and run it. Is the compilation failed? It is possible that a Perl script error occurs during log reading, which leads to help compilation failure and CPP compilation failure because a head file is missing... This is really a brain problem. Sorry, the solution is to remove help and open bld. INF: comment out the MK of help, and comment out the help-related lines in CPP. In the Application folder of the simulator, you can see the helloworld program, and it should be okay to run, but a note is displayed. I have been using it for four hours since the beginning, and the last step is QT. Choose QT project from File> new. The project name is
Qhelloworld: select the default one for both wizard. If you are prompted that QT is not specified
The version is specified. In fact, the installation directory of carbide is told to select the bin path. The QT version is 4.6.0. Compile it. It should be smooth, and QT has no help. Run the command to check whether there is anything after the QT program is started. There is a status pane? Of course, the default program does nothing. Come on, let's add something for it. Now there is no exit button... You can only press the red key to exit. Open the qhelloworld. UI file and you will see an Interface Editor similar to. NET and Delphi, from Windows-> show
View-> other..., find the QT views, and focus on the widgets box. Then you can edit the UI.
Click the button and name it exitbutton. then open qhelloworld. h. Add private slots: void on_exitbutton_clicked () {qapp-> quit () ;}. then, an exitbutton is displayed on the interface of the qhelloworld program, click it to exit the program. Well, now that the simulator has been completed, we have to deal with the mobile phone. After all, it makes sense for the mobile phone program to run on hardware. First, you need an s60 5.0 mobile phone, such as 5800 or 5530, and n97. Then go to http://qt.nokia.com/phonedemos


Download an SIS package, which is about 12 Mb. It is too slow to download the package from the mobile phone. I downloaded the package from my laptop and uploaded it to my mobile phone through Bluetooth. Installing this SIS will install a lot of programs for you. No matter what you ask, you can answer yes OK. Believe it, QT and Nokia will not harm you. This SIS includes the running libraries and demo programs required by QT. With this, your own QT program can be run on your mobile phone. Let QT program run on mobile phone! First, we need to compile the armv5 version of the QT program and select armv5 release in build config? That's normal, because we don't have rvct. It's not free and expensive... Use gcce. The performance is almost satisfactory. But there is no gcce option? No. I have not solved this problem either. First, make sure you have installed gcce, find a file named arm-None xxxxxx in epoc32/tools/distrib/of your s60 SDK installation directory and install it. I haven't seen the gcce option in carbide after I installed it. To be honest, I didn't see it either. So I shut down the project and re-import the project. Note that the following filter is removed when config is selected, and the gcce option is displayed. Next, the SIS package is relatively simple. Open the properties of the project, select build and configuration, and select gcce config,
Select the SIS builder page, click Add to add a PKG file, qhelloworld. PKG, and enter the file name of the SIS package, such
Qhelloworld. Sis. It is good to use the default values for other products. Then, you can generate the sisx file, which is signed. Okay. Check it on your phone. I have succeeded. Good luck!

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.