|
楼主 |
发表于 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. |
|