Symbian Explore Diary 2 Compilation Process

xiaoxiao2021-03-06  49

Symbian Explore Diary 2 Compilation Procedure 1. The development environment of C Builderxsymbian does not seem to be so easy. But Borland's C Builder is better for Symbian's support, and there is a tool option specially developed for Symbian. However, due to Microsoft Visual C I It is more familiar, and there is Visual Assist such a powerful tool support, so I think it is still suitable for me on Microsoft Visual C .

2. Compiling the command line to compile the command line should be explained in the documentation of the SDK. Examples of Graphics for Series60EX in Symbian SDK. A) First we have to use the command line to series60ex / graphics / group this directory Then you need to set up the environment variables of VC. The best way is to run / Microsoft Visual Studio .NET 2003 / VC7 / BIN / VCVARS.BAT this batch file. My approach is the group of Group to create a command.bat file, The content is as follows Path =% path%; D: / Microsoft Visual Studio .NET 2003 / VC7 / BINCMD then, I only double-click this file in Windows, automatically go to this directory command prompt, then enter vcvars32 Entering the VC environment variable. B) Enter BLDMAKE BLDFILES. Based on the Perl language, it is necessary to install Perl to use SDK. C) If it is compiled to generate an emulator, then use abld Build Wins udeb If you are running on the build machine, then use the Abld Build Armi Urel to compile, there are two directories to generate it. If you want to regenerate, you can manually remove these two directories. Engineering compilation Directory: /Symbian/6.1/series60/epoc32/build/symbian/6.1/series60/series60ex/graphics/group Saved Make file, OBJ file, etc. Program in the simulator / Symbian/6.1/series60/EPOC32 / Release / wins / udeb / z / system / apps / graphics saves the app file running on the simulator, as long as this directory is deleted, there is no such program on the simulator.

3. Errors caused by global non-static variables I have added a Tint X in View's CPP; there is no problem on the simulator. When I compile it to the target machine with ARMI, there is a strange classic Error .petran - pe file preprocessor v01.00 (build 183) CopyRight (c) 1996-2001 Symbian Ltd.

Error: DLL 'Graphics [10005Bbe] .app' HAS IITIALISED DATA. Make [1]: *** [../../../epoc32/release/rmi/urel/graphicsapp] Error -2 make: ** * [Targetgraphics] error 2 Make -r -f "/symbian/6.1/series60/epoc32/build/symbian/6.1s/series60/series60ex/Bmpmanip/group/Armi.make" Final CFG = Urel Verbose = -S

Solution: 1. Turn globally non-static variables into global static variables, Static 2. Put the global variables into members variables

Such a problem is estimated to be said in the Symbian's book. When compiling into the ARMI final goal, the compiler is caused by strict inspection of memory usage in the code. Http://discussion.forum.nokia.com/forum /SHOWTHREAD.php?s=&threadid=27446

转载请注明原文地址:https://www.9cbs.com/read-81579.html

New Post(0)