WEB开发网
开发学院手机开发Symbian 开发 symbian编译过程(perl) 阅读

symbian编译过程(perl)

 2010-07-21 04:25:00 来源:WEB开发网   
核心提示:$PerlLibPath =~ s///\/g; # X:epoc32ools$PerlLibPath .= "\";}......BEGIN {# check user has a version of perl that will coperequire 5.005_03;# establish

$PerlLibPath =~ s///\/g; # X:epoc32 ools

$PerlLibPath .= "\";

}

...

...

BEGIN {

# check user has a version of perl that will cope

require 5.005_03;

# establish the path to the Perl libraries: currently the same directory as this script

$PerlLibPath = $FindBin::Bin; # X:/epoc32/tools

$PerlLibPath =~ s///\/g; # X:epoc32 ools

$PerlLibPath .= "\";

}

...

BEGIN

Run some code as soon as it has all been read in by the parser and before the rest compiles.

--------------------

上面脚本是获取bldmake.pl 所在目录,并将"/"置换成"\".

我这里获取到的$PerlLibPath 是 D:Symbian9.1S60_3rd_MREpoc32 ools

--------------------

可能会遇到这个问题"ERROR: Must set the EPOCROOT environment variable"

这时,在命令行里运行set EPOCROOT=Symbian9.1S60_3rd_MR

--------------------

接下去的是一些数组,我这里打印出来的信息可以参考一下

@BaseDefaultPlats = ARM4 ARM4T WINSCW GCCXML EDG GCCE ARMV4 ARMV5 WINS X86

@OptionalPlats = VS6 VS2003 ARMV5_ABIV2 GCCE

@PlatsReq =

@BPABIPlats = ARMV5_ABIV2 GCCE

$variantMacroHRHFile = Symbian9.1S60_3rd_MRepoc32includevariantSymbian_OS_v9.1.hrh

--------------------

脚本中$variantMacroHRHFile = Variant_GetMacroHRHFile();

因为脚本之前使用了 use E32Variant;

所以可以使用E32Variant.pm 里的函数Variant_GetMacroHRHFile();

Load_SetModulePath($PerlLibPath); # modload.pm

== $ModulePath = D:Symbian9.1S60_3rd_MREpoc32 ools

--------------------

Plat_Init($PerlLibPath); #e32plat.pm

view plaincopy to clipboardprint?

my %PlatHashKeys=(

ABI=>1,

ASSPABI=>1,

SINGLE=>1,

Compiler=>1,

上一页  1 2 3 4 5  下一页

Tags:symbian 编译 过程

编辑录入:coldstar [复制链接] [打 印]
赞助商链接