admin 管理员组

文章数量: 887032


2024年1月5日发(作者:document获取标签)

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/


本文标签: 获取 标签 作者