Symbian 的编译过程
2010-03-26 21:17:00 来源:WEB开发网$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();
更多精彩
赞助商链接