找回密码
 注册
搜索
查看: 783|回复: 3

[讨论] update出错了,是什么原因?

[复制链接]
发表于 2010-11-8 22:03:46 | 显示全部楼层 |阅读模式
我是按照“走出山寨,MTK开发指南”一步一步做下去的,但是到资源这一节总是过不去,请大家帮忙看看啊
LOG文件如下:
In file included from ../Res_MMI/Res_MyApp.c:6:
../../MMI/Inc/StdC.h:116:23: OslMemory.h: No such file or directory
In file included from d:/mtk/K6235_BASE/Tools/MinGW/include/winnt.h:164,
                 from d:/mtk/K6235_BASE/Tools/MinGW/include/windef.h:246,
                 from d:/mtk/K6235_BASE/Tools/MinGW/include/windows.h:48,
                 from ../../MMI/Inc/stdafx.h:101,
                 from ../../MMI/Inc/MMIDataType.h:619,
                 from ../../MMI/FunAndGames/FunAndGamesInc/ComposeRingToneDefs.h:148,
                 from ../Res_MMI/Res_MyApp.c:7:
d:/mtk/K6235_BASE/Tools/MinGW/include/basetsd.h:52: error: conflicting types for `INT32'
../../../nucleus/inc/Nucleus.h:159: error: previous declaration of `INT32'
d:/mtk/K6235_BASE/Tools/MinGW/include/basetsd.h:56: error: conflicting types for `UINT32'
../../../nucleus/inc/Nucleus.h:160: error: previous declaration of `UINT32'
In file included from ../Res_MMI/Res_MyApp.c:9:
../../MMI/MyApp/MyAppInc/MyAppDefs.h:8: error: `MyApp_BASE' undeclared here (not in a function)
../../MMI/MyApp/MyAppInc/MyAppDefs.h:9: error: enumerator value for `SCR_MyApp_MAIN' not integer constant
../../MMI/MyApp/MyAppInc/MyAppDefs.h:12: error: `MyApp_BASE' undeclared here (not in a function)
../../MMI/MyApp/MyAppInc/MyAppDefs.h:12: error: enumerator value for `STR_MyApp' not integer constant
../../MMI/MyApp/MyAppInc/MyAppDefs.h:12: error: parse error before ';' token
In file included from ../customerinc/PopulateRes.h:57,
                 from ../Res_MMI/Res_MyApp.c:11:
../../MMI/Inc/GlobalDefs.h:277: error: syntax error before "typedef"
../Res_MMI/Res_MyApp.c: In function `PopulateMyAppRes':
../Res_MMI/Res_MyApp.c:16: error: `STR_MyApp_HELLOMTK' undeclared (first use in this function)
../Res_MMI/Res_MyApp.c:16: error: (Each undeclared identifier is reported only once
../Res_MMI/Res_MyApp.c:16: error: for each function it appears in.)
make[1]: *** [Res_MyApp.o] Error 1


Res_MyApp.c文件如下:
#include "MMI_features.h"
#include "CustomCfg.h"
#ifdef FIRST_PASS
#include "BuildCfg.h"
#endif
#include "StdC.h"
#include "ComposeRingToneDefs.h"
#include "GlobalMenuItems.h"
#include "MyAppDefs.h"
#ifdef DEVELOPER_BUILD_FIRST_PASS
#include "PopulateRes.h"

void PopulateMyAppRes(void)
{
ADD_APPLICATION_STRING2(STR_MyApp,"MyApp","Name of MyApp");
ADD_APPLICATION_STRING2(STR_MyApp_HELLOMTK,"Hello,World","MyApp.");
}
#endif/* DEVELOPER_BUILD_FIRST_PASS */
发表于 2010-11-11 16:05:59 | 显示全部楼层
1.你的MyApp.def文件里要先声明你要添加的字符串的枚举值
2.MMIDataType.h里要定义基础ID值
3.确认你的宏开关是否打开
点评回复

使用道具 举报

发表于 2010-11-11 13:10:31 | 显示全部楼层
资源问题,还是先看富贵教程把
点评回复

使用道具 举报

发表于 2010-11-11 09:26:05 | 显示全部楼层
按照错误指示定位问题
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2025-2-26 23:56 , Processed in 0.049300 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表