fedora 14 64bit build ics 4.0.1 error for libX11.so.6

1,975 views
Skip to first unread message

Sam

unread,
Nov 16, 2011, 8:27:56 PM11/16/11
to Android Building
is it some people use fedora have these problem?

i can build full_panda-eng
but i cannot build the full-eng

lunch full-eng

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ITL41D
============================================

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


for all librarys of libX11 , i had installed:
Package libX11-devel-1.3.4-4.fc14.x86_64 already installed and latest
version
Package libX11-common-1.3.4-4.fc14.noarch already installed and latest
version
Package libX11-1.3.4-4.fc14.x86_64 already installed and latest
version
Package libX11-1.3.4-4.fc14.i686 already installed and latest version
Package libX11-devel-1.3.4-4.fc14.i686 already installed and latest
version

how can i fix it?

Paul Hsu

unread,
Nov 17, 2011, 7:10:22 AM11/17/11
to android-...@googlegroups.com
I encounter the same problem on ubuntu 11.04 x86_64.

Any solution?


hotiii

unread,
Nov 17, 2011, 4:18:36 AM11/17/11
to Android Building
development/tools/emulator/opengl/host/renderer/Android.mk:
LOCAL_LDLIBS += -lX11

It works for my Fedora 15.

Conley Owens

unread,
Nov 17, 2011, 12:04:38 PM11/17/11
to android-...@googlegroups.com
For Ubuntu 11.10, you need to `sudo ln -s
/usr/lib/i386-linux-gnu/libX11.so.6
/usr/lib/i386-linux-gnu/libX11.so`, so that may fix your problem in
11.04 as well.

Please note that this step is recorded in the official docs:
http://source.android.com/source/initializing.html

~cco3

On Thu, Nov 17, 2011 at 4:10 AM, Paul Hsu <pochu...@gmail.com> wrote:
> I encounter the same problem on ubuntu 11.04 x86_64.
> Any solution?
>

> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>

lu

unread,
Nov 17, 2011, 9:13:39 AM11/17/11
to Android Building
did you fix the problem?

On 11月17日, 上午9时27分, Sam <samcheu...@gmail.com> wrote:

Sam

unread,
Nov 17, 2011, 7:54:04 PM11/17/11
to Android Building
thank you !
it work now !

Sam

unread,
Nov 17, 2011, 7:55:19 PM11/17/11
to Android Building
yes,

just follow hotii's method.

development/tools/emulator/opengl/host/renderer/Android.mk:
LOCAL_LDLIBS += -lX11

Paul Hsu

unread,
Nov 18, 2011, 1:12:08 AM11/18/11
to android-...@googlegroups.com
Thanks hotiii.

It works for me.

Paul

Stephen Smalley

unread,
Nov 18, 2011, 8:40:52 AM11/18/11
to android-...@googlegroups.com

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


--
Stephen Smalley
National Security Agency

Reply all
Reply to author
Forward
0 new messages