找回密码
 注册
搜索
查看: 4362|回复: 30

[讨论] 问一个10A版本的编译问题

[复制链接]
发表于 2010-10-26 14:29:36 | 显示全部楼层 |阅读模式
今天拿到一个10A的版本,想编译一下,遇到了以下问题:
../../../inc/clib.h:88:20: setjmp.h: No such file or directory
../../../inc/clib.h:104:18: time.h: No such file or directory
../../../inc/clib.h:111:19: wchar.h: No such file or directory

rvct的安装目录:
C:\Program Files\ARM
option中配置的rvct路径:
  DIR_ARM        =C:\Progra~1\ARM\RVCT

ifeq ($(strip $(RVCT_VERSION)),V31)
        DIR_TOOL       =  $(DIR_ARM)\Programs\3.1\569\win_32-pentium
        DIR_ARMLIB     =  $(DIR_ARM)\Data\3.1\569\lib
        DIR_ARMINC     =  $(DIR_ARM)\Data\3.1\569\include\windows
  endif

在rvct的安装目录下能够找到上面include的这几个头文件

以前没有遇到过这样的问题,还请大侠们指点迷津
多谢多谢。

ps 我将mak文件中的编译器修改为ads 存在同样的问题
 楼主| 发表于 2010-10-26 16:46:34 | 显示全部楼层
以下是引用BrayL在2010-10-26 15:40:49的发言:
我是这样处理的
把编译器目录下的
setjmp.h
time.h wchar.h 这三个头文件copy到tools 的mingw目录下,然后编译 会出现类型定义冲突的几个地方,把这几个地方注掉 或者再include其他头文件 ,这样 这个问题算是过去了,但是不知道是不是还有其他问题


编译可以通过,但是不知道实际跑起来会怎样
ps:rvct编译很快,E8400 单机编译40分钟的样子
点评回复

使用道具 举报

 楼主| 发表于 2010-10-26 15:40:49 | 显示全部楼层
我是这样处理的
把编译器目录下的
setjmp.h
time.h wchar.h 这三个头文件copy到tools 的mingw目录下,然后编译 会出现类型定义冲突的几个地方,把这几个地方注掉 或者再include其他头文件 ,这样 这个问题算是过去了,但是不知道是不是还有其他问题
点评回复

使用道具 举报

 楼主| 发表于 2010-10-26 15:37:52 | 显示全部楼层
以下是引用babyvox1999在2010-10-26 15:32:29的发言:
重新下个最新版本的

这位同学的意思是重新下载一个最新版本的minGW?
点评回复

使用道具 举报

发表于 2010-10-26 15:32:29 | 显示全部楼层
重新下个最新版本的
点评回复

使用道具 举报

 楼主| 发表于 2010-10-26 15:16:20 | 显示全部楼层
好像是和minGW目录有关,请问用过10A版本的同学们,你们的minGW目录和MSYS目录还用的以前的吗?
点评回复

使用道具 举报

 楼主| 发表于 2010-10-26 15:00:44 | 显示全部楼层
自己顶一个先
点评回复

使用道具 举报

 楼主| 发表于 2010-11-3 17:51:34 | 显示全部楼层
以下是引用zzit_ant在2010-11-2 13:16:15的发言:
还没搞定?

这两天没时间搞 还没去看
楼上的搞定啦?
点评回复

使用道具 举报

发表于 2010-11-2 13:16:15 | 显示全部楼层
还没搞定?
点评回复

使用道具 举报

 楼主| 发表于 2010-11-1 11:43:33 | 显示全部楼层
自己再顶一个,希望环境搞好了的同学能够指点迷津
点评回复

使用道具 举报

 楼主| 发表于 2010-11-1 10:27:15 | 显示全部楼层
以下是引用zzit_ant在2010-10-30 14:34:37的发言:
我用最新的MinGW和MSYS后,编译仍然在resgen的部分报错:
/bin/sh.exe: g++: command not found
make[1]: *** [debug/obj/mtk_resgenerator.o] Error 127
make[1]: Target `mtk_resgenerator.exe' not remade because of errors.

感觉还是MSYS的问题,楼主你碰到没?[em13]


楼上这位所说的问题 我也遇到了

将原来的 g++.exe  cc1.exe cc1plus.exe copy到新的bin目录下 能够解决这一问题,但是到后面还是有新的问题,应该还是 编译环境没有弄好

还请楼上几位编译过了的指点一下
10A版本使用5.1.4版本的mingw具体要做哪些准备工作。

谢谢!

新的问题log:
mtk_resgenerator.cpp:220:19: stdio.h: No such file or directory
mtk_resgenerator.cpp:221:20: stdlib.h: No such file or directory
In file included from ../../MMI/Inc/MMIDataType.h:825,
                 from ../../MMI/Inc/pixteldatatypes.h:5,
                 from mtk_resgenerator.cpp:222:
../../MMI/Inc/stdafx.h:101:72: windows.h: No such file or directory
../../MMI/Inc/stdafx.h:104:20: stdlib.h: No such file or directory
../../MMI/Inc/stdafx.h:105:20: malloc.h: No such file or directory
../../MMI/Inc/stdafx.h:106:20: memory.h: No such file or directory
../../MMI/Inc/stdafx.h:107:19: tchar.h: No such file or directory
../../MMI/Inc/stdafx.h:108:19: stdio.h: No such file or directory
In file included from ../../MMI/Inc/pixteldatatypes.h:5,
                 from mtk_resgenerator.cpp:222:
../../MMI/Inc/MMIDataType.h:851: error: syntax error before `;' token
../../MMI/Inc/MMIDataType.h:852: error: syntax error before `;' token
In file included from mtk_resgenerator.cpp:223:
../../MMI/Inc/CustDataRes.h:487: error: syntax error before `*' token
../../MMI/Inc/CustDataRes.h:529: error: type specifier omitted for parameter `
   WCHAR'
../../MMI/Inc/CustDataRes.h:529: error: syntax error before `*' token
../../MMI/Inc/CustDataRes.h:553: error: syntax error before `*' token
In file included from ../../MMI/Inc/CustMenuRes.h:171,
                 from mtk_resgenerator.cpp:224:
../../MMI/Inc/CustDataProts.h:248: error: type specifier omitted for parameter
   `BOOL'
../../MMI/Inc/CustDataProts.h:248: error: syntax error before `,' token
../../MMI/Inc/CustDataProts.h:249: error: type specifier omitted for parameter
   `BOOL'
../../MMI/Inc/CustDataProts.h:249: error: syntax error before `,' token
../../MMI/Inc/CustDataProts.h:250: error: type specifier omitted for parameter
   `BOOL'
../../MMI/Inc/CustDataProts.h:250: error: syntax error before `,' token
../../MMI/Inc/CustDataProts.h:251: error: type specifier omitted for parameter
   `BOOL'
../../MMI/Inc/CustDataProts.h:251: error: syntax error before `,' token
../../MMI/Inc/CustDataProts.h:252: error: type specifier omitted for parameter
   `BOOL'
../../MMI/Inc/CustDataProts.h:252: error: syntax error before `,' token
mtk_resgenerator.cpp:303: error: 'BOOL' is used as a type, but is not defined
   as a type.
mtk_resgenerator.cpp:305: error: syntax error before `*' token
mtk_resgenerator.cpp: In function `MMI_BOOL GenerateENFBAssociatedIDFile()':
mtk_resgenerator.cpp:344: error: `FILE' undeclared (first use this function)
mtk_resgenerator.cpp:344: error: (Each undeclared identifier is reported only
   once for each function it appears in.)
mtk_resgenerator.cpp:344: error: `fp' undeclared (first use this function)
mtk_resgenerator.cpp:352: error: `fopen' undeclared (first use this function)
mtk_resgenerator.cpp:353: error: `NULL' undeclared (first use this function)
mtk_resgenerator.cpp:359: error: `fprintf' undeclared (first use this function)
mtk_resgenerator.cpp:452: error: `free' undeclared (first use this function)
mtk_resgenerator.cpp:460: error: `stderr' undeclared (first use this function)
mtk_resgenerator.cpp:462: error: `fclose' undeclared (first use this function)
mtk_resgenerator.cpp: In function `void UnzipImage()':
mtk_resgenerator.cpp:484: error: `WIN32_FIND_DATA' undeclared (first use this
   function)
mtk_resgenerator.cpp:484: error: syntax error before `;' token
mtk_resgenerator.cpp:486: error: `HANDLE' undeclared (first use this function)
mtk_resgenerator.cpp:487: error: `BOOL' undeclared (first use this function)
mtk_resgenerator.cpp:489: error: `zip_time_file' undeclared (first use this
   function)
mtk_resgenerator.cpp:491: error: `FILETIME' undeclared (first use this
   function)
mtk_resgenerator.cpp:491: error: syntax error before `;' token
mtk_resgenerator.cpp:496: error: `sprintf' undeclared (first use this function)
mtk_resgenerator.cpp:498: error: `search' undeclared (first use this function)
mtk_resgenerator.cpp:498: error: `file_data' undeclared (first use this
   function)
mtk_resgenerator.cpp:498: error: `FindFirstFile' undeclared (first use this
   function)
mtk_resgenerator.cpp:499: error: `INVALID_HANDLE_VALUE' undeclared (first use
   this function)
mtk_resgenerator.cpp:501: error: `GetLastError' undeclared (first use this
   function)
mtk_resgenerator.cpp:501: error: `printf' undeclared (first use this function)
mtk_resgenerator.cpp:501: error: `stdout' undeclared (first use this function)
mtk_resgenerator.cpp:501: error: `fflush' undeclared (first use this function)
mtk_resgenerator.cpp:502: error: `exit' undeclared (first use this function)
mtk_resgenerator.cpp:504: error: `FindClose' undeclared (first use this
   function)
mtk_resgenerator.cpp:507: error: `fopen' undeclared (first use this function)
mtk_resgenerator.cpp:510: error: `zip_time_prev' undeclared (first use this
   function)
mtk_resgenerator.cpp:510: error: `fread' undeclared (first use this function)
mtk_resgenerator.cpp:511: error: `fclose' undeclared (first use this function)
mtk_resgenerator.cpp:518: error: `CompareFileTime' undeclared (first use this
   function)
mtk_resgenerator.cpp:520: error: `is_need_unzip' undeclared (first use this
   function)
mtk_resgenerator.cpp:520: error: `FALSE' undeclared (first use this function)
mtk_resgenerator.cpp:521: error: `fprintf' undeclared (first use this function)
mtk_resgenerator.cpp:532: error: `fwrite' undeclared (first use this function)
mtk_resgenerator.cpp:546: error: `system' undeclared (first use this function)
mtk_resgenerator.cpp: In function `void UnzipAudio()':
mtk_resgenerator.cpp:644: error: syntax error before `;' token
mtk_resgenerator.cpp:645: error: `WIN32_FIND_DATA' undeclared (first use this
   function)
mtk_resgenerator.cpp:651: error: syntax error before `;' token
mtk_resgenerator.cpp:655: error: `sprintf' undeclared (first use this function)
mtk_resgenerator.cpp:657: error: `FindFirstFile' undeclared (first use this
   function)
mtk_resgenerator.cpp:660: error: `printf' undeclared (first use this function)
mtk_resgenerator.cpp:660: error: `fflush' undeclared (first use this function)
mtk_resgenerator.cpp:661: error: `exit' undeclared (first use this function)
mtk_resgenerator.cpp:663: error: `FindClose' undeclared (first use this
   function)
mtk_resgenerator.cpp:666: error: `fopen' undeclared (first use this function)
mtk_resgenerator.cpp:669: error: `fread' undeclared (first use this function)
mtk_resgenerator.cpp:670: error: `fclose' undeclared (first use this function)
mtk_resgenerator.cpp:677: error: `CompareFileTime' undeclared (first use this
   function)
mtk_resgenerator.cpp:680: error: `fprintf' undeclared (first use this function)
mtk_resgenerator.cpp:691: error: `fwrite' undeclared (first use this function)
mtk_resgenerator.cpp:705: error: `system' undeclared (first use this function)
mtk_resgenerator.cpp: In function `void Trace(char*, ...)':
mtk_resgenerator.cpp:729: error: `va_list' undeclared (first use this function)
mtk_resgenerator.cpp:729: error: syntax error before `;' token
mtk_resgenerator.cpp:735: error: `MyList' undeclared (first use this function)
mtk_resgenerator.cpp:735: error: `va_start' undeclared (first use this
   function)
mtk_resgenerator.cpp:736: error: `vsprintf' undeclared (first use this
   function)
mtk_resgenerator.cpp:737: error: `va_end' undeclared (first use this function)
mtk_resgenerator.cpp:738: error: `printf' undeclared (first use this function)
mtk_resgenerator.cpp: At global scope:
mtk_resgenerator.cpp:934: error: `BOOL' was not declared in this scope
mtk_resgenerator.cpp:934: error: syntax error before `,' token
mtk_resgenerator.cpp: In function `void GenerateResFile_Ext(...)':
mtk_resgenerator.cpp:950: error: `pFile' undeclared (first use this function)
mtk_resgenerator.cpp:955: error: `curr_data_filename' undeclared (first use
   this function)
mtk_resgenerator.cpp:955: error: `fopen' undeclared (first use this function)
mtk_resgenerator.cpp:957: error: `fprintf' undeclared (first use this function)
mtk_resgenerator.cpp:960: error: `type' undeclared (first use this function)
mtk_resgenerator.cpp:960: error: `flag' undeclared (first use this function)
mtk_resgenerator.cpp:964: error: `str_CustDataHW' undeclared (first use this
   function)
mtk_resgenerator.cpp:996: error: `str_mtk_CurrMaxNum' undeclared (first use
   this function)
mtk_resgenerator.cpp:996: error: `nSize' undeclared (first use this function)
mtk_resgenerator.cpp:1007: error: `str_CustType' undeclared (first use this
   function)
mtk_resgenerator.cpp:1007: error: `str_mtk_nCustNames' undeclared (first use
   this function)
mtk_resgenerator.cpp:1016: error: `pName' undeclared (first use this function)
mtk_resgenerator.cpp:1031: error: `TRUE' undeclared (first use this function)
mtk_resgenerator.cpp:1062: error: `fclose' undeclared (first use this function)
mtk_resgenerator.cpp: In function `void GenerateAudioResFile()':
mtk_resgenerator.cpp:1137: error: `ExtAudioFlag' undeclared (first use this
   function)
mtk_resgenerator.cpp: In function `void GenerateMapFile_Ext(CUSTOM_ID_MAP*,
   short unsigned int, char*, char*, char*, char*, char*)':
mtk_resgenerator.cpp:1237: error: `fopen' undeclared (first use this function)
mtk_resgenerator.cpp:1239: error: `fprintf' undeclared (first use this
   function)
mtk_resgenerator.cpp:1260: error: `fclose' undeclared (first use this function)
mtk_resgenerator.cpp: In function `void
   GenerateMapSearchFile_Ext(CUSTOM_ID_SEARCH_MAP*, short unsigned int, char*,
   char*, char*, char*)':
mtk_resgenerator.cpp:1406: error: `fopen' undeclared (first use this function)
mtk_resgenerator.cpp:1408: error: `fprintf' undeclared (first use this
   function)
mtk_resgenerator.cpp:1424: error: `fclose' undeclared (first use this function)
mtk_resgenerator.cpp: In function `int GenerateMenuFile(short unsigned int)':
mtk_resgenerator.cpp:1664: error: `fopen' undeclared (first use this function)
mtk_resgenerator.cpp:1666: error: `fprintf' undeclared (first use this
   function)
mtk_resgenerator.cpp:1680: error: `sprintf' undeclared (first use this
   function)
mtk_resgenerator.cpp:1684: error: `strcat' undeclared (first use this function)
mtk_resgenerator.cpp:1752: error: `fclose' undeclared (first use this function)
mtk_resgenerator.cpp: In function `void resgen_on_exit()':
mtk_resgenerator.cpp:1908: error: `_exit' undeclared (first use this function)
mtk_resgenerator.cpp: In function `int main(int, char**)':
mtk_resgenerator.cpp:1939: error: `strcmp' undeclared (first use this function)
mtk_resgenerator.cpp:1945: error: `dest_file' undeclared (first use this
   function)
mtk_resgenerator.cpp:1945: error: `fopen' undeclared (first use this function)
mtk_resgenerator.cpp:1948: error: `printf' undeclared (first use this function)
mtk_resgenerator.cpp:1948: error: `fflush' undeclared (first use this function)
mtk_resgenerator.cpp:1954: error: `strlen' undeclared (first use this function)
mtk_resgenerator.cpp:1979: error: `fclose' undeclared (first use this function)
mtk_resgenerator.cpp:1987: error: `exit' undeclared (first use this function)
mtk_resgenerator.cpp:1990: error: `sprintf' undeclared (first use this
   function)
mtk_resgenerator.cpp:1991: error: `system' undeclared (first use this function)
mtk_resgenerator.cpp:2026: error: `atexit' undeclared (first use this function)
mtk_resgenerator.cpp:2029: error: `SEM_FAILCRITICALERRORS' undeclared (first
   use this function)
mtk_resgenerator.cpp:2029: error: `SEM_NOGPFAULTERRORBOX' undeclared (first use
   this function)
mtk_resgenerator.cpp:2029: error: `SetErrorMode' undeclared (first use this
   function)
mtk_resgenerator.cpp:2042: error: `fprintf' undeclared (first use this
   function)
make[1]: *** [debug/obj/mtk_resgenerator.o] Error 1
make[1]: Target `mtk_resgenerator.exe' not remade because of errors.
点评回复

使用道具 举报

 楼主| 发表于 2010-10-30 21:30:08 | 显示全部楼层
以下是引用zzit_ant在2010-10-30 14:34:37的发言:
我用最新的MinGW和MSYS后,编译仍然在resgen的部分报错:
/bin/sh.exe: g++: command not found
make[1]: *** [debug/obj/mtk_resgenerator.o] Error 127
make[1]: Target `mtk_resgenerator.exe' not remade because of errors.

感觉还是MSYS的问题,楼主你碰到没?[em13]


使用新版本的mingw我还没有去试,我那天就是临时处理了一下编译过去了

但是模拟器 编译在链接的时候报出一堆的错误
vc9.0光是说“引入了不能识别的。。。。。”  后面还没来得及去看

看了楼上几位的留言 我周一去下载一个最新版本的mingw再试试看。

我在编target的时候是单机编译的,一开始使用分布式编译报了很多莫名的错误,所以我就直接单机编译了
单机编译完在40分钟的样子

模拟器使用了分布式编译 不到10分钟就能全编译一次
点评回复

使用道具 举报

发表于 2010-10-30 14:34:37 | 显示全部楼层
我用最新的MinGW和MSYS后,编译仍然在resgen的部分报错:
/bin/sh.exe: g++: command not found
make[1]: *** [debug/obj/mtk_resgenerator.o] Error 127
make[1]: Target `mtk_resgenerator.exe' not remade because of errors.

感觉还是MSYS的问题,楼主你碰到没?[em13]
点评回复

使用道具 举报

发表于 2010-10-29 18:41:53 | 显示全部楼层
哈哈。。我也碰到了楼主的问题!!  楼上正解。。5.1.4
[此贴子已经被作者于2010-10-30 11:43:15编辑过]
点评回复

使用道具 举报

发表于 2010-10-28 11:17:13 | 显示全部楼层
用最新的mingw就ok了
点评回复

使用道具 举报

发表于 2010-10-27 11:37:08 | 显示全部楼层
楼上的RVCT 是分布编译吗
点评回复

使用道具 举报

发表于 2010-11-11 12:25:53 | 显示全部楼层
以下是引用rundout在2010-11-7 22:02:50的发言:
10a上的编译常见问题解答:
1,楼主说的问题是由于你的mingw是简化的,或者根本没有,用最新的就解决了
2,由于mtk对你的工程版本还没下放j2me模块,因此要在工程.mak文件里j2me相关的项都设置成none或者false
3,破解版rvct3.1是不支持分布式的,需要加-bm,但是modis时可以在vs2008上进行分布式


不错去试一试
点评回复

使用道具 举报

发表于 2010-11-7 22:02:50 | 显示全部楼层
10a上的编译常见问题解答:
1,楼主说的问题是由于你的mingw是简化的,或者根本没有,用最新的就解决了
2,由于mtk对你的工程版本还没下放j2me模块,因此要在工程.mak文件里j2me相关的项都设置成none或者false
3,破解版rvct3.1是不支持分布式的,需要加-bm,但是modis时可以在vs2008上进行分布式
点评回复

使用道具 举报

发表于 2010-11-19 13:03:58 | 显示全部楼层
建议大家不要轻易修改 MTK 的 base 代码解决编译问题。随便修改可能引起更多的问题或者留下隐患。
MTK 发布时肯定是编译过的,肯定是编译环境的原因。

10A 请用
MinGW 5.1.4
MSYS 2.0
点评回复

使用道具 举报

发表于 2010-11-17 23:27:21 | 显示全部楼层
以下是引用BrayL在2010-11-16 11:15:22的发言:
]

请问一下,最新的mingw是直接安装 还是将安装后的文件copy到工程code文件的tools目录下?



俺是安装后copy的 直接安装还没试过。。。[em04]
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

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

GMT+8, 2025-2-27 04:30 , Processed in 0.066498 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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