Android 1.6 source code will build fail in emulator with gcc 4.4.1
It was caused by invalid conversion from const_char* to char*
To solve this issue, we have to cast const_char* to char*.
The break will issued in emulator/qtools/dmtrace.cpp and emulator/qtools/trace_reader.cpp
We have to fix those invalid conversion to make the build pass.
in emulator/qtools/dmtrace.cpp
line 166: char *paren = strchr(name, '('); => char *paren = (char *) strchr(name, '(');
line 183: char *dot = strrchr(name, '.'); => char *dot = (char *) strrchr(name, '.');
in emulator/qtools/trace_reader.cpp
line 1012: char *end = rindex(mmap_path, '@'); => const char *end = rindex(mmap_path, '@');
line 1015: char *start = rindex(mmap_path, '/'); => const char *start = rindex(mmap_path, '/');
12/12/2009
invalid conversion error in Android 1.6
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言