1. 杀毒软件对CE定制的影响,当遇到类似错误可以考虑将杀毒软件暂时禁用,再定制一次就OK。
错误1:
错误信息:
I am trying to create a nk image for an OMAP Processor but I couldn't
properly build an image I keep getting errors in the sysgen and build
phases and my build log file shows as
ERROR: Res2Res: Could not open C:/WINCE600/public/common/oak/lib/ARMV4I/retail/0411/shcore.res.
ERROR: Res2Res: Could not open C:/WINCE600/public/common/oak/lib/ARMV4I/retail/0411/shcore.res.
Res2Res: Error adding resources (-1)
NMAKE : fatal error U1077: 'res2res' : return code '0xffffffff'
Stop.
NMAKE : fatal error U1077: 'C:/WINCE600/sdk/bin/i386/nmake.exe' : return code '0x2'
Stop.
错误2:
错误信息:
ERROR: Res2Res: Res2Res: ERROR: Line: 267 File: f:/macallan2/private/winceos/tools/rescommon/checksum.cpp
ERROR: Res2Res: Res2Res: ERROR: Line: 267 File: f:/macallan2/private/winceos/tools/rescommon/checksum.cpp
Res2Res: Error adding resources (-1)
NMAKE : fatal error U1077: 'res2res' : return code '0xffffffff'
NMAKE : fatal error U1077: 'C:/WINCE600/sdk/bin/i386/nmake.exe' : return code '0x2'
Stop.
2. 在sysgen时报如下error信息
Can't create hard link (FAT file system?)
BUILDREL: Copying PLATFORMCOMMON binaries from C:/WINCE600/platform/common
Can't create hard link. (FAT file system?)
Copying files instead of creating hard links.
--->
hard link应该是在NTFS的文件系统上才能用?
Can't create hard link. (FAT file system?)
Copying files instead of creating hard links.
提示信息应该是说因为是FAT的文件系统,所以不能创建hard link,用拷贝的方式代替创建hard link了。
可以在编译选项里选择Use Xcopy Instead Of Links To Populate Release Directory试试看
3. 重复引起的错误
错误 94 Catalog Id "StringTable:MS:Deviceemulator:1041" duplicated in files "D:/WINCE600/platform/DEVICEEMULATOR/catalog/1041/deviceemulatorstrings.pbcxml" and "D:/WINCE600/platform/DEVICEEMULATOR/catalog/1033/deviceemulatorstrings.pbcxml" and "D:/WINCE600/platform/MyEmulatorBSP/catalog/1033/deviceemulatorstrings.pbcxml" with equivalent version numbers. Ignoring second record (file "D:/WINCE600/platform/MyEmulatorBSP/catalog/1033/deviceemulatorstrings.pbcxml"). D:/WINCE600/platform/MyEmulatorBSP/catalog/1033/deviceemulatorstrings.pbcxml 0
以上错误是两个不同pbcxml里包含同样的Catalog Id,常理来讲,不同的pbcxml里包含同样的ID是很有可能的事情,关键导致的原因"...with equivalent version numbers...",所以实际作怪的是这两个pbcxml使用的version numbers同名了,也就是.pbcxml中的FileVersion,将其修改为不同,一切就会好了,我是这样搞的!