设为首页 加入收藏

TOP

Ubuntu 12.10编译Android 4.0.3的常见错误(二)
2014-11-24 01:04:10 来源: 作者: 【 】 浏览:2
Tags:Ubuntu 12.10 编译 Android 4.0.3 常见 错误
r/opengl/shared/OpenglCodecCommon/GLSharedGroup.cpp:345:65: required from here


frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector’ are not found by unqualified lookup


frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libOpenglCodecCommon_intermediates/GLSharedGroup.o] Error 1


Fix:
vi development/tools/emulator/opengl/Android.mk


Add '-fpermissive' to line 25:
EMUGL_COMMON_CFLAGS := -DWITH_GLES2 -fpermissive


################## Fix 7 ##########################


Error:
/usr/bin/ld: note: 'XInitThreads' is defined in DSO /lib/libX11.so.6 so try adding it to the linker command line
/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/emulator_renderer_intermediates/emulator_renderer] Error 1


Fix:
vi development/tools/emulator/opengl/host/renderer/Android.mk


Add new entry 'LOCAL_LDLIBS += -lX11' after line 6 as shown:
LOCAL_SRC_FILES := main.cpp
LOCAL_CFLAGS += -O0 -g
LOCAL_LDLIBS += -lX11


#ifeq ($(HOST_OS),windows)
#LOCAL_LDLIBS += -lws2_32


################## Fix 8 ##########################


Error:
external/llvm/include/llvm/ADT/PointerUnion.h:56:10: error: enumeral mismatch in conditional expression: ‘llvm::PointerLikeTypeTraits >::’ vs ‘llvm::PointerLikeTypeTraits::’ [-Werror]
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/slang_rs.o] Error 1


Fix:
vi frameworks/compile/slang/Android.mk


Remove '-Werror' from line 22:
local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter


################## Fix 9 ##########################


Error:
frameworks/base/libs/rs/rsFont.cpp:224:76: required from here


frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector’ are not found by unqualified lookup


frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libRS_intermediates/rsFont.o] Error 1


Fix:
vi frameworks/base/libs/rs/Android.mk


Add '-fpermissive' to line 183
LOCAL_CFLAGS += -Werror -Wall -Wno-unused-parameter -Wno-unused-variable -fpermissive


################## Fix 10 #########################


Error:
external/mesa3d/src/glsl/linker.cpp:1394:49: error: expected primary-expression before ‘,’ token
......
external/mesa3d/src/glsl/linker.cpp:1734:59: error: ‘offsetof’ was not declared in this scope
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libMesa_intermediates/src/glsl/linker.o] Error 1


Fix:
vi external/mesa3d/src/glsl/linker.cpp


Add '#include ' to list of includes as shown:
#include
#include
#include


################## Fix 11 #########################


Error:
external/g

首页 上一页 1 2 3 下一页 尾页 2/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇将LMbench移植到Android上 下一篇在iOS上绘制自然的签名

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: