zoukankan      html  css  js  c++  java
  • Platform创建WinCE内核时的编译错误

    按照向导建立一个新的平台,编译,然后出现如下错误。makeimg: Creating <...> nlscfg.out because <... > nlscfg.inf doesn't exist.
    makeimg: run command: fmerge -nls <....> nlscfg.out <... > nlscfg.inf
    Error - cannot open input file C<...> postproc
    lscfg.inf  fmerge for Windows CE (Release)

    makeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).
    makeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).

    在PB的Menu/ Build OS/ Copy files to release directory手动复制一次,即解决了找不到nlscfg.inf 文件的错误。


    然而又出现了:
    Error: Could not find file 'WINCE420PUBLICvideonimageRelDirCIRRUS_EP931X_ARMV4IReleasekernkitl.exe' on disk
    nk.exe WINCE420PUBLICvideonimageRelDirCIRRUS_EP931X_ARMV4IReleasekernkitl.exe NK SH
    Error: failed setting line
    makeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).
    makeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).
    Error PB2505: Error executing #(WINCE420PUBLICvideonimageRelDirCIRRUS_EP931X_ARMV4IRelease)makeimg.exe.

    又找不到kernkitl.exe了。
    然后我在wince500目录下搜索“kernkitl.exe”,找到一个原有的,复制到缺少的目录中,再次编译,即通过。
    kernkitl.exe是调试用的工具对应的程序。


    070329_2440test - 0 error(s), 0 warning(s)
    --------------------------------------------------------------------------------
    参考资源:

    Hi Steve,

    are you working under Windows CE V5.0? I had some similar problem and the
    only thing I have done was from Platform Builder menu Build OS select Copy
    Files to Release directory.

    It seems that not all files are in your release directory and causes this
    error. I had this problem when I build a new kernel and the buidl process
    was stopped buy and error. Hope that will help you.

    Best regards,

    Mike E.

    "steve hutch" <stevehutch@xxxxxxxxxxxxxxxxxxxxxxxxx> escribió en el mensaje
    news:6D683C31-E4FF-4158-9FF6-5EDF61458A12@xxxxxxxxxxxxxxxx
    > When I try "Make run time image" from platform builder for my application
    I
    > get the following error :
    >
    > makeimg: Creating <...> nlscfg.out because <... > nlscfg.inf doesn't
    exist.
    > makeimg: run command: fmerge -nls <....> nlscfg.out <... > nlscfg.inf
    > Error - cannot open input file C<...> postproc lscfg.inf
    > fmerge for Windows CE (Release) (Built on Jan 29 2004 17:34:26)
    > makeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).
    > makeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).
    >
    > Can somebody tell me what the reason for this error is and how to overcome
    it.
    > Thanks
    > Steve.


    请教Platform创建WinCE内核时遇到的错误


        小弟遇到个麻烦,内核在创建完了之后进行BUILD,会出现很多ERROR,请教高手当遇到ERROR的时候怎么定位错误出处和修改。还有就是我在BUILD的时候出现如下ERROR:
        
    regcomp: Overwriting existing value [HKEY_CLASSES_ROOTSSCE.Errors.2.0] "Default" in system registry
    regcomp: Overwriting existing value [HKEY_CLASSES_ROOTSSCE.Errors.2.0CLSID] "Default" in system registry
    Error: Could not find file 'WINCE420PUBLICvideonimageRelDirCIRRUS_EP931X_ARMV4IReleasekernkitl.exe' on disk
    Error: Could not find file 'WINCE420PUBLICvideonimageRelDirCIRRUS_EP931X_ARMV4IReleasekernkitl.exe' on disk
    nk.exe WINCE420PUBLICvideonimageRelDirCIRRUS_EP931X_ARMV4IReleasekernkitl.exe NK SH
    Error: failed setting line
    makeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).
    makeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).
    Error PB2505: Error executing #(WINCE420PUBLICvideonimageRelDirCIRRUS_EP931X_ARMV4IRelease)makeimg.exe.
    希望哪个有经验的高手指点下,这些错误都是什么原因造成的,小弟不胜感激。  

    -------------------------------------------------------------------------------------------------------------------------
    kernkitl.exe是调试用的工具对应的程序,在project
    elease目录下未找到。

    原因可能是:没有选中该项,编译中就未将需要的exe copy到release目录下,makeImage时,就会出错。

    简单的确认办法:在以前编译通过的Project,找到这个exe,放到目前project的release目录下,再运行make image。能通过就ok。
    -------------------------------------------------------------------------------------------------------------------------
    1. 在你的winceXXX/platform目录下搜索“kernkitl.exe”,看看对应平台的kernkitl.exe是否已经存在。
    2. 看看在“Build OS”里选中了“copy files to release directory after build”项了没有?
    3. 选择“build and sysgen"再试。
    3. makeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).
    是因为上面的错误不能生成最终映像的提示信息,将所有错误消除了这个提示自然就没有了。


  • 相关阅读:
    PAT甲级1060 Are They Equal【模拟】
    PAT甲级1131 Subway Map【dfs】【输出方案】
    PAT甲级1052 Linked List Sorting
    Dev的GridControl控件选择框的使用
    关于MongoDB数据库中文件唯一性的问题
    docker-学习笔记5-存储卷
    docker-学习笔记4-网络
    docker-学习笔记3-镜像基础
    docker-学习笔记2-基础用法
    docker-学习笔记1-基础入门
  • 原文地址:https://www.cnblogs.com/googlegis/p/2979265.html
Copyright © 2011-2022 走看看