Build a Symbian development environment on the Vista system

Source: Internet
Author: User
We all know that Symbian is not an easy-to-install development environment. Recently, after I switched OS to Vista, I encountered unprecedented troubles. After one night of hard work, I finally ran through. I will summarize the process below and hope that it will not be too difficult to reinstall the system next time.

The first step is to install the required software based on the information on the Internet. Pay attention to the following two aspects:

First, make sure that the version is correct, as shown below:
JDK 1.6.0 _ 04 (jdk-6u4-windows-i586-p.exe)
Perl 5.6.1 (the ActivePerl-5.6.1.638-MSWin32-x86.msi)
Then, you can install carbide C ++ v1.2 normally. The open version of LIC is available on the Internet to obtain the OEM version.
The Symbian SDK is easy to use. Just select a few popular installation methods.

Second, the installation directory must be placed on the C drive, otherwise it will be very troublesome in the future, including the project files created in the future should also be placed in the C:/Symbian/workspace, which saves time, although this is quite uncomfortable.

Step 2: modify a place. Otherwise, the simulator does not recognize the Java 1.6 environment (take s60 3rd as an example ).
Open the C:/Symbian/9.1/s60_3rd/epoc32/tools/ECMT/config. properties file and modify one line:
Epdt. java. version. Start = 1.4.1, 1.4.2, 1.5, 5.0, 1.6, 6.0
Add "1.6" and "6.0" to let it know more than 1.6 JDK.

Step 3: Because the ACL of Vista is strict, we recommend that you add the Administrator permission to both carbideide and simulator.
The simulator is located at C:/Symbian/9.1/s60_3rd/epoc32/release/winscw/udeb/epoc.exe, while carbide is located at C:/Nokia/carbide. c ++ v1.2/carbide.c00000000.exe, this carbide must be run in compatible mode with XP SP2.

Now, you can smoothly run the carbide environment on Vista and generate the helloworld program.
However, the process is not complete. Although we can compile an application running in the simulator environment, if we want to generate the final sisfile on the device, that is, set build target to gcce mode, however, we found that the compilation was not successful.

The main reason is the arm toolchain that comes with 3rd. Therefore, we need to modify the following items:
First, modify the environment variable and add a reference to it in the path of the user variable, as shown below:
Path = C:/Java/jdk1.6.0 _ 04/bin; C:/cslarmtoolchain/ARM-None-symbianelf/bin; C: /cslarmtoolchain/libexec/GCC/ARM-None-symbianelf/3.4.3; C:/perl/bin; C:/adsv1_2/bin; % PATH %;
Note that a few directories are added here, except for JDK and Perl, which are mainly the subdirectories related to C:/cslarmtoolchain (I installed cslarmtoolchain under the C root directory, in fact, it can also be stored in program files, without affecting ). In addition, I put % PATH % of the system to the end, saving the trouble.

Modify the two files. One is the gcce. mk file located in the C:/Symbian/9.1/s60_3rd/tools/compilation_config directory. The code for modifying row 14th is as follows:
Cc_install_path = "C:/cslarmtoolchain"
Force the CC installation directory to be specified.
There are still 333rd rows, which are written as follows:
# Add By sharetop
Link_ext_sharetop =-L "$ (cc_install_path)/ARM-None-symbianelf/lib"-l "$ (cc_install_path)/lib/GCC/ARM-None-symbianelf/3.4.3"
# Linker option common to all link commands for urel build
Response = $ (response) $ (bpabi_option) $ (relocatable_image_option) $ (target_relocation_option) $ (response) $ (stdlib_option) $ (extra_ld_option) $ (link_ext_sharetop)

# Linker option common to all link commands for udeb build
Response = $ (response) $ (bpabi_option) $ (relocatable_image_option) $ (target_relocation_option) $ (response) $ (stdlib_option) $ (extra_ld_option) $ (link_ext_sharetop)

The two libraries must be added after symbian_udeb_link_flags. Otherwise, the o files cannot be linked to the EXE file after compilation. Both libraries are under cslarmtoolchain.

Then, modify cl_bpabi.pm in the C:/Symbian/9.1/s60_3rd/epoc32/tools directory. This is quite easy to modify. In just one sentence, find the sub gccinstallpath function. Simply put, let it directly return a fixed directory, and write it in line 1649th as follows:
Sub gccinstallpath {
Return "C: // cslarmtoolchain // bin ";
...
The following code does not matter. You can leave it blank and let it directly return to this directory.

Now, the Environment configuration is complete. Try compiling the gcce helloworld version. It will automatically sign and generate the sisx file, and then copy it to your mobile phone to run it.

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.