e) libx11错误
- /usr/bin/ld: out/host/linux-x86/obj/EXECUTABLES/emulator_renderer_intermediates/main.o: undefined reference to symbol 'XInitThreads'
解决:
进development打patch或者手动修改
- diff --git a/tools/emulator/opengl/host/renderer/Android.mk b/tools/emulator/opengl/host/renderer/Android.mk
- index 55fcb80..5e4d0bb 100644
- --- a/tools/emulator/opengl/host/renderer/Android.mk
- +++ b/tools/emulator/opengl/host/renderer/Android.mk
- @@ -5,6 +5,7 @@ $(call emugl-begin-host-executable,emulator_renderer)
- $(call emugl-import,libOpenglRender)
- LOCAL_SRC_FILES := main.cpp
- LOCAL_CFLAGS += -O0 -g
- +LOCAL_LDLIBS += -lX11
- #ifeq ($(HOST_OS),windows)
- #LOCAL_LDLIBS += -lws2_32