Error on missing library for open GL ES

1,074 views
Skip to first unread message

ImzHossy

unread,
Dec 16, 2011, 9:32:41 PM12/16/11
to Android Building
Hi,
I am trying to compile and ICS load (android 4.0.1_r1) in my Ubuntu
11.10 64 bit. After going through the instruction from source android
website I am stuck here when I compile using make command. This is
what I get: arget Dex: bouncycastle
target Dex: ext
target Dex: core-junit
Install: out/target/product/generic/system/lib/libstdc++.so
Install: out/target/product/generic/system/lib/libm.so
target SharedLib: liblog (out/target/product/generic/obj/
SHARED_LIBRARIES/liblog_intermediates/LINKED/liblog.so)
target SharedLib: libicuuc (out/target/product/generic/obj/
SHARED_LIBRARIES/libicuuc_intermediates/LINKED/libicuuc.so)
Install: out/target/product/generic/system/lib/libgabi++.so
Install: out/host/linux-x86/bin/simg2img
target SharedLib: libext4_utils (out/target/product/generic/obj/
SHARED_LIBRARIES/libext4_utils_intermediates/LINKED/libext4_utils.so)
host SharedLib: libGLES_CM_translator (out/host/linux-x86/obj/lib/
libGLES_CM_translator.so)
host SharedLib: libEGL_translator (out/host/linux-x86/obj/lib/
libEGL_translator.so)
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/lib/libGLES_CM_translator.so] Error
1
make: *** Waiting for unfinished jobs....
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/lib/libEGL_translator.so] Error 1

looking at the -lGL and other info I think I am missing a part GL
library. I did install libgl1-mesa-dev but it doens't solve the
problem.

Jean-Baptiste Queru

unread,
Dec 16, 2011, 9:44:54 PM12/16/11
to android-...@googlegroups.com
From the notes we have on http://source.android.com/source/initializing.html:

-You need to install libgl1-mesa-dev

-the notes for 10.10 mention sudo ln -s /usr/lib32/mesa/libGL.so.1
/usr/lib32/mesa/libGL.so but this might also be necessary on newer
versions, especially since you've actually upgraded your ubuntu from
an older variant.

JBQ

> --
> 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

--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Jesse Godsey

unread,
Dec 16, 2011, 9:48:01 PM12/16/11
to android-...@googlegroups.com

I am running Ubuntu 10.04 Ltd 64 bit, it all builds fine. Just the vendor Toro files I do not see in the zip.  Btw. your terrific and a tremendous asset.

ImzHossy

unread,
Dec 17, 2011, 9:01:50 AM12/17/11
to Android Building
Hi JBQ,

Thanks for the quick reply. I have linked that file as shown below.

$ ls -al libGL.so*
lrwxrwxrwx 1 root root 12 2011-12-16 21:47 libGL.so -> libGL.so.
1.2
-rw-r--r-- 1 root root 336248 2011-08-10 04:27 libGL.so.1.2

$ ls -al libX11.so*
lrwxrwxrwx 1 root root 11 2011-10-07 16:30 libX11.so -> libX11.so.
6
lrwxrwxrwx 1 root root 15 2011-10-07 16:30 libX11.so.6 ->
libX11.so.6.3.0
-rw-r--r-- 1 root root 1262456 2011-09-22 14:35 libX11.so.6.3.0

I get the same error while compiling.


On Dec 16, 9:44 pm, Jean-Baptiste Queru <j...@android.com> wrote:
> From the notes we have onhttp://source.android.com/source/initializing.html:

jBeta

unread,
Jan 1, 2012, 7:08:43 PM1/1/12
to Android Building
I believe JBQ meant this, or at least I finally figured it out for the
same problem:

sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/libGL.so
^^^^ here ^ but not here

Hope that works for ya!

venky6 babu

unread,
Feb 22, 2012, 6:26:00 AM2/22/12
to android-...@googlegroups.com

Hi all,

Struct will an  error

make[1]: Entering directory `ics/kernel'
target SharedLib: libstdc++ (out/target/product/obj/SHARED_LIBRARIES/
libstdc++_intermediates/LINKED/libstdc++.so)
make: *** No rule to make target `out/target/product/obj/lib/libgabi+
+.so', needed by `out/target/product/obj/SHARED_LIBRARIES/
libicuuc_intermediates/LINKED/libicuuc.so'.  Stop.

make: *** Waiting for unfinished jobs....

target SharedLib: libm (out/target/product/obj/SHARED_LIBRARIES/
libm_intermediates/LINKED/libm.so)

Any help,

Thanks,
Venky

Conley Owens

unread,
Feb 22, 2012, 1:30:49 PM2/22/12
to android-...@googlegroups.com
This should really be a separate thread, but you might want to make
sure that `repo sync` finished successfully by running it again.

~cco3

Reply all
Reply to author
Forward
0 new messages