我按照<<ARM&WinCE实验与实践>>P35的方法用Platform Builder编译WinCE5.0操作系统映像,遇到一个问题,就是不会生成nk.bin和nk.nb0。编译信息如下:(太长,只列出最后几行)
CESHELL_COMPONENTS= ceshapi ceshui taskbarlist SHCORE_COMPONENTS= shcore path WCESHELLFE_MODULES= htmlview peghelp browser iexplore webview msscript control ctlpnl cplmain AdvBacklight connpnl intlp bthpnl WCESHELLFE_MODULES= htmlview peghelp browser iexplore webview msscript control ctlpnl cplmain AdvBacklight connpnl intlp bthpnl DATASYNC_MODULES= cefobj repllog rapisrv eventrst rra_stm systemcpl udp2tcp wceload unload NETCF_MODULES= dotnet
这时就停了一分钟左右,然后就出现它后面的信息:
Sysgening platform K:\WINCE500\platform\smdk2410 Sysgening platform K:\WINCE500\platform\smdk2410 \WINCE500\build.err K:\WINCE500\build.log K:\WINCE500\build.err 已复制 2 个文件。
BLDDEMO: There were errors building wz2410
wz2410 - 0 error(s), 0 warning(s)
没有error和warning,但也没生成nk.nb0文件。错误信息可能在build.err里,读一下,里面只有一行字,如下所示:
K:\WINCE500\build.log(1) : error SYSGEN0000: error(s) in sysgen phase
读了build.log,发现文件最下面有下面这些错误信息:
K:\WINCE500\PBWorkspaces\wz2410\WINCE500\smdk2410_ARMV4I\cesysgen\oak\lib\ARMV4I\retail\wzcsvc.exp wzcsvc.exp : error LNK2001: unresolved external symbol ZCF_PowerDown wzcsvc.exp : error LNK2001: unresolved external symbol ZCF_PowerUp wzcsvc.lib(wce.obj) : error LNK2019: unresolved external symbol CxLogDeregister referenced in function DllEntry wzcsvc.lib(wce.obj) : error LNK2019: unresolved external symbol CxLogRegister referenced in function DllEntry wzcsvc.lib(wzcsvc.obj) : error LNK2019: unresolved external symbol CxLogMsg referenced in function CE_WZCWrkDeviceNotifHandler wzcsvc.lib(devioleg.obj) : error LNK2001: unresolved external symbol CxLogMsg wzcsvc.lib(nio.obj) : error LNK2001: unresolved external symbol CxLogMsg wzcsvc.lib(devioleg.obj) : error LNK2019: unresolved external symbol CxRegReadValues referenced in function DevioGet80211Capability wzcsvc.lib(nio.obj) : error LNK2001: unresolved external symbol CxRegReadValues K:\WINCE500\PBWorkspaces\wz2410\WINCE500\smdk2410_ARMV4I\cesysgen\oak\target\ARMV4I\retail\wzcsvc.dll : fatal error LNK1120: 6 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. NMAKE : fatal error U1077: 'K:\WINCE500\sdk\bin\i386\nmake.exe' : return code '0x2' Stop.
看不懂这些信息,编译出错可能就是这些原因吧。不知道如何解决。 编译了好几次都是这样,关了Platform Builder后再打开,新建一个很简单的工程,编译还是一样的错误。不知道是什么原因。在网上找了一下,也发现不少人遇到同样或类似的问题,但都没有较好的解决办法。希望在这里能得到解决,谢谢!
|