Android源码编译make的各类错误解决方案汇总

阅读: 评论:0

2024年1月28日发(作者:)

Android源码编译make的各类错误解决方案汇总

Fix:

vi external/oprofile/libpp/format_output.h

Remove 'mutable' from 'mutable counts_t & counts;' on line 94:

counts_t & counts;

################## Fix 6 ##########################

Error:

development/tools/emulator/opengl/shared/OpenglCodecCommon/:345:65: required from hereframeworks/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 notfound by unqualified lookupframeworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ insteadmake: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libOpenglCodecCommon_intermediates/GLSharedGroup.o] Error 1

Fix:

vi development/tools/emulator/opengl/

Add '-fpermissive' to line 25:

EMUGL_COMMON_CFLAGS := -DWITH_GLES2 -fpermissive

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

Error:

/usr/bin/ld: note: 'XInitThreads' is defined in DSO /lib/.6 so try adding it to the linker command line

/lib/.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/

Add new entry 'LOCAL_LDLIBS += -lX11' after line 6 as shown:

LOCAL_SRC_FILES :=

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/

Remove '-Werror' from line 22:

local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter

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

Error:

frameworks/base/libs/rs/:224:76: required from hereframeworks/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 lookupframeworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ insteadmake: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libRS_intermediates/rsFont.o] Error 1

Fix:

vi frameworks/base/libs/rs/

Android源码编译make的各类错误解决方案汇总

本文发布于:2024-01-28 21:13:18,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170644759810322.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:错误   编译   解决方案   汇总   源码
留言与评论(共有 0 条评论)
   
验证码:
排行榜

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23