编译hero ROM的错误

编译打包和其他
回复
hmczj
帖子: 13
注册时间: 2010-05-03 19:03

编译hero ROM的错误

#1

帖子 hmczj » 2010-05-10 12:49

Install: out/host/linux-x86/bin/edify
host C++: etc1tool <= development/tools/etc1tool/etc1tool.cpp
development/tools/etc1tool/etc1tool.cpp:22:23: error: ETC1/etc1.h: 没有那个文件或目录
development/tools/etc1tool/etc1tool.cpp:136: error: ‘etc1_byte’ has not been declared
development/tools/etc1tool/etc1tool.cpp:137: error: ‘etc1_uint32’ has not been declared
development/tools/etc1tool/etc1tool.cpp:137: error: ‘etc1_uint32’ has not been declared
development/tools/etc1tool/etc1tool.cpp: In function ‘int read_PNG_File(const char*, int**, int*, int*)’:
development/tools/etc1tool/etc1tool.cpp:146: error: ‘etc1_byte’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:146: error: ‘pSourceImage’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:202: error: expected type-specifier before ‘etc1_byte’
development/tools/etc1tool/etc1tool.cpp:202: error: expected ‘;’ before ‘etc1_byte’
development/tools/etc1tool/etc1tool.cpp:208: error: ‘etc1_uint32’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:208: error: expected ‘;’ before ‘y’
development/tools/etc1tool/etc1tool.cpp:208: error: ‘y’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:219: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
development/tools/etc1tool/etc1tool.cpp: At global scope:
development/tools/etc1tool/etc1tool.cpp:234: error: ‘etc1_byte’ has not been declared
development/tools/etc1tool/etc1tool.cpp:235: error: ‘etc1_uint32’ has not been declared
development/tools/etc1tool/etc1tool.cpp:235: error: ‘etc1_uint32’ has not been declared
development/tools/etc1tool/etc1tool.cpp: In function ‘int readPKMFile(const char*, int**, int*, int*)’:
development/tools/etc1tool/etc1tool.cpp:238: error: ‘etc1_byte’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:238: error: expected ‘;’ before ‘header’
development/tools/etc1tool/etc1tool.cpp:253: error: ‘header’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:259: error: ‘header’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:259: error: ‘etc1_pkm_is_valid’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:264: error: ‘header’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:264: error: ‘etc1_pkm_get_width’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:265: error: ‘etc1_pkm_get_height’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:266: error: ‘etc1_get_encoded_data_size’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:290: error: ‘etc1_decode_image’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:294: error: cannot convert ‘png_byte*’ to ‘int*’ in assignment
development/tools/etc1tool/etc1tool.cpp: In function ‘int encode(const char*, const char*, bool, const char*)’:
development/tools/etc1tool/etc1tool.cpp:315: error: ‘etc1_uint32’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:315: error: expected ‘;’ before ‘width’
development/tools/etc1tool/etc1tool.cpp:316: error: expected ‘;’ before ‘height’
development/tools/etc1tool/etc1tool.cpp:317: error: expected ‘;’ before ‘encodedSize’
development/tools/etc1tool/etc1tool.cpp:319: error: ‘etc1_byte’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:319: error: ‘pSourceImage’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:320: error: ‘pEncodedData’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:321: error: ‘pDiffImage’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:323: error: ‘width’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:323: error: ‘height’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:327: error: ‘encodedSize’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:327: error: ‘width’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:327: error: ‘height’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:327: error: ‘etc1_get_encoded_data_size’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:328: error: expected type-specifier before ‘etc1_byte’
development/tools/etc1tool/etc1tool.cpp:328: error: expected ‘;’ before ‘etc1_byte’
development/tools/etc1tool/etc1tool.cpp:335: error: ‘etc1_encode_image’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:343: error: expected ‘;’ before ‘header’
development/tools/etc1tool/etc1tool.cpp:344: error: ‘header’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:344: error: ‘etc1_pkm_format_header’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:364: error: expected ‘;’ before ‘outWidth’
development/tools/etc1tool/etc1tool.cpp:365: error: expected ‘;’ before ‘outHeight’
development/tools/etc1tool/etc1tool.cpp:366: error: ‘outWidth’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:366: error: ‘outHeight’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:369: error: ‘outWidth’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:369: error: ‘outHeight’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:374: error: expected initializer before ‘*’ token
development/tools/etc1tool/etc1tool.cpp:375: error: ‘pDest’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:376: error: expected ‘;’ before ‘size’
development/tools/etc1tool/etc1tool.cpp:377: error: expected ‘;’ before ‘i’
development/tools/etc1tool/etc1tool.cpp:377: error: ‘i’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:377: error: ‘size’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:378: error: ‘pSrc’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:388: error: ‘outWidth’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:388: error: ‘outHeight’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:395: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
development/tools/etc1tool/etc1tool.cpp:396: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
development/tools/etc1tool/etc1tool.cpp:397: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
development/tools/etc1tool/etc1tool.cpp: In function ‘int decode(const char*, const char*)’:
development/tools/etc1tool/etc1tool.cpp:456: error: ‘etc1_uint32’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:456: error: expected ‘;’ before ‘width’
development/tools/etc1tool/etc1tool.cpp:457: error: expected ‘;’ before ‘height’
development/tools/etc1tool/etc1tool.cpp:459: error: ‘width’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:459: error: ‘height’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:463: error: ‘width’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp:463: error: ‘height’ was not declared in this scope
development/tools/etc1tool/etc1tool.cpp: In function ‘void multipleEncodeDecodeCheck(bool*)’:
development/tools/etc1tool/etc1tool.cpp:477: warning: deprecated conversion from string constant to ‘char*’
development/tools/etc1tool/etc1tool.cpp: In function ‘int main(int, char**)’:
development/tools/etc1tool/etc1tool.cpp:502: warning: deprecated conversion from string constant to ‘char*’
development/tools/etc1tool/etc1tool.cpp:505: warning: deprecated conversion from string constant to ‘char*’
development/tools/etc1tool/etc1tool.cpp:523: warning: deprecated conversion from string constant to ‘char*’
development/tools/etc1tool/etc1tool.cpp:527: warning: deprecated conversion from string constant to ‘char*’
development/tools/etc1tool/etc1tool.cpp:533: warning: deprecated conversion from string constant to ‘char*’
development/tools/etc1tool/etc1tool.cpp:538: warning: deprecated conversion from string constant to ‘char*’
development/tools/etc1tool/etc1tool.cpp:545: warning: deprecated conversion from string constant to ‘char*’
development/tools/etc1tool/etc1tool.cpp:556: warning: deprecated conversion from string constant to ‘char*’
development/tools/etc1tool/etc1tool.cpp:560: warning: deprecated conversion from string constant to ‘char*’
development/tools/etc1tool/etc1tool.cpp:569: warning: deprecated conversion from string constant to ‘char*’
make: *** [out/host/linux-x86/obj/EXECUTABLES/etc1tool_intermediates/etc1tool.o] 错误 1


如上,折腾了一周了,还是搞不好这问题 ,请高手帮忙
回复