找回密码
 注册
搜索
查看: 4410|回复: 6

[讨论] MTK新手编译问题

[复制链接]
发表于 2012-7-15 17:48:26 | 显示全部楼层 |阅读模式
各位大侠,小弟刚开始学习MTK开发,编译工程是出现如下错误,请帮忙分析一下,已经找了好几天了,软件也重装了几次,还是解决不了,编译器是用的ADS1.2的编译器。

编译错误:
Preprocessing GV scripts ... .\tst\database\msglog_db\custom_parse_db.c
Preprocessing unionTag scripts ... .\tst\database\msglog_db\custom_parse_db.c
make: *** [.\tst\database_classb\BPLGUInfoCustomAppSrc] Error 1

在build/log/下看错误日志:错误信息如下:

codegen.log这个文件里的内容是:
"kal\include\kal_release.h", line 782: Error: C3029E: 'return': implicit cast of non-0 int to pointer
"kal\include\kal_release.h", line 788: Error: C3029E: 'return': implicit cast of non-0 int to pointer
"kal\include\kal_release.h", line 806: Error: C2456E: undeclared name, inventing 'extern int va_list'
"kal\include\kal_release.h", line 806: Serious error: C2284E: expected ';' after command - inserted before 'argv'
"kal\include\kal_release.h", line 806: Error: C2456E: undeclared name, inventing 'extern int argv'
"kal\include\kal_release.h", line 807: Serious error: C2292E: typedef name 'kal_int32' used in expression context
"kal\include\kal_release.h", line 807: Serious error: C2284E: expected ';' after command - inserted before 'ret_val'
"kal\include\kal_release.h", line 807: Error: C2456E: undeclared name, inventing 'extern int ret_val'
"stdarg.h", line 32: Serious error: C2933E: type disagreement for 'va_list'
"stdarg.h", line 32: Serious error: C2934E: duplicate definition of 'va_list'
"interface\ps\nvram_editor_data_item.h", line 782: Error: C2225W: declaration lacks type/storage-class (assuming 'int'): 'BEGIN_NVRAM_DATA'
"interface\ps\nvram_editor_data_item.h", line 782: Error: C2285E: expected ';' or ',' - inserted ';' before 'LID_BIT'
"interface\ps\nvram_editor_data_item.h", line 782: Error: C2225W: declaration lacks type/storage-class (assuming 'int'): 'LID_BIT'
"interface\ps\nvram_editor_data_item.h", line 782: Error: C2285E: expected ';' or ',' - inserted ';' before '"000"'
"interface\ps\nvram_editor_data_item.h", line 782: Serious error: C2322E: Expecting <declarator> or <type> but found '"000"'
"interface\ps\nvram_editor_data_item.h", line 784: Error: C2285E: expected ';' or ',' - inserted ';' before '{'
"interface\ps\nvram_editor_data_item.h", line 784: Serious error: C2337E: Misplaced '{' at top level - ignoring block
"interface\ps\nvram_editor_data_item.h", line 785: Error: C2487E: declaration with no effect
"interface\ps\nvram_editor_data_item.h", line 799: Error: C2225W: declaration lacks type/storage-class (assuming 'int'): 'LID_BIT'
"interface\ps\nvram_editor_data_item.h", line 799: Error: C2285E: expected ';' or ',' - inserted ';' before '"000"'
"interface\ps\nvram_editor_data_item.h", line 799: Serious error: C2322E: Expecting <declarator> or <type> but found '"000"'
"interface\ps\nvram_editor_data_item.h", line 801: Error: C2285E: expected ';' or ',' - inserted ';' before '{'
"interface\ps\nvram_editor_data_item.h", line 801: Serious error: C2337E: Misplaced '{' at top level - ignoring block
"interface\ps\nvram_editor_data_item.h", line 802: Error: C2487E: declaration with no effect
"interface\ps\nvram_editor_data_item.h", line 825: Error: C2225W: declaration lacks type/storage-class (assuming 'int'): 'LID_BIT'
"interface\ps\nvram_editor_data_item.h", line 825: Error: C2285E: expected ';' or ',' - inserted ';' before 'MULTIPLE_LID'
"interface\ps\nvram_editor_data_item.h", line 825: Error: C2225W: declaration lacks type/storage-class (assuming 'int'): 'MULTIPLE_LID'
"interface\ps\nvram_editor_data_item.h", line 825: Error: C2285E: expected ';' or ',' - inserted ';' before '"002"'
"interface\ps\nvram_editor_data_item.h", line 825: Serious error: C2322E: Expecting <declarator> or <type> but found '"002"'
"interface\ps\nvram_editor_data_item.h", line 827: Error: C2285E: expected ';' or ',' - inserted ';' before '{'
"interface\ps\nvram_editor_data_item.h", line 827: Fatal error: C3047U: Too many errors

Compilation abandoned.
 楼主| 发表于 2012-7-16 17:34:56 | 显示全部楼层
可是小弟刚接触MTK,不知道从何看起呀。楼上可否说的具体点
点评回复

使用道具 举报

发表于 2012-7-16 16:39:21 | 显示全部楼层
先看看代码是否有错误的地方,有时候一个小地方的符号,都可能导致后面很多错误。:)
点评回复

使用道具 举报

 楼主| 发表于 2012-7-16 13:47:31 | 显示全部楼层
安装了RVDS套件的编译器后之前的问题是不存在了,不过在最后生成bin文件时出错,如下:

Linking FARSIGHTED52_6432_10A_PCB01_gprs_MT6252_S01.MAUI_10A_W11_08_MP_V1 ...
2012/07/16 13:33:47
Creating binary file FARSIGHTED52_6432_10A_PCB01_gprs_MT6252_S01.MAUI_10A_W11_08
_MP_V1.bin
Warning: Q3910W: Old syntax, please use '--bin'.
Warning: Q3910W: Old syntax, please use '--output'.
Finished: 0 information, 2 warning and 0 error messages.
phase=2, stop_build=TRUE
Phase2!
RAM DUMMY END , f03fc000
RAM Limit before DUMMY_END , f036f474
LOAD VIEW , Physical Device Density 0x768000 , Scatter File Configuration 0x6632
8c      PASS
EXEC VIEW , Physical Device Density 0x400000 , Scatter File Configuration 0x3fea
28 , Scatter File DUMMY_END 0xf03fc000 , Scatter File Usage 0xf036f474
Warnning : NOR flash / Load View configure waste at least 1MB
系统无法执行指定的程序。
make: *** [FARSIGHTED52_6432_10A_PCB01_gprs_MT6252_S01.MAUI_10A_W11_08_MP_V1.bin
] Error 1
点评回复

使用道具 举报

 楼主| 发表于 2012-7-16 09:37:16 | 显示全部楼层
人气很低呀,自己先顶一顶。希望各位不吝赐教!
点评回复

使用道具 举报

发表于 2013-4-26 12:17:41 | 显示全部楼层
想学习驱动,找个人教。付学费
QQ:303674467
点评回复

使用道具 举报

发表于 2015-1-10 21:29:55 | 显示全部楼层
看下elf文件是否生成,如果生成了基本上查内存是否足够,生成cfg rom viva就ok 了
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

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

GMT+8, 2024-12-23 14:50 , Processed in 0.052795 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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