$ sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev:i386 \
g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown \
libxml2-utils xsltproc zlib1g-dev:i386
libgl1-mesa-dev:i386
, shouldn't it just build libEGL_translator and skip lib64EGL_translator?It's possible that we now need both, which means that we might be
missing some packages in the setup instructions.
JBQ
> To post to this group, send email to android-building@googlegroups.com
> To unsubscribe from this group, send email to
> android-building+unsubscribe@googlegroups.com
Thanks Jack.
Sorry for late response.(1) That step is only required to build emulator. If you don't build emulator, you can skip it.(2) can you please install those i386 package manually to see if you have any problem in installing them?--Best regards,Jack Ren
On Wednesday, June 20, 2012 6:29:04 PM UTC-7, Chandra wrote:Hi Rec,
Thanks for that info.
I encountered the same issue while building on ubuntu 12.04.
But still the script you gave didn't work to fix the issue.
Here is the output after executing the script.
Package `libdrm-dev:i386' is not installed.
Package `libgl1-mesa-dev:i386' is not installed.
Package `libxext-dev:i386' is not installed.
Package `mesa-common-dev:i386' is not installed.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
tar: Cowardly refusing to create an empty archive
Try `tar --help' or `tar --usage' for more information.
Reading package lists... Done
Building dependency tree     Â
Reading state information... Done
libgl1-mesa-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 252 not upgraded.
tar (child): /tmp/GL_i386.tgz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Highly appreciate if you can help me to fix the issue.
Thanks,
Chandra
On Monday, June 11, 2012 7:24:29 AM UTC-7, Jack Ren wrote:I figured out a way to build Android AOSP master branch on ubuntu 12.04 for a while.I am doing like this:======================== Build android device========================Install the packages required to build Android: (http://source.android.com/source/initializing.html) $ sudo apt-get install git-core gnupg flex bison gperf build-essential \ zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \ libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev:i386 \ g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown \ libxml2-utils xsltproc zlib1g-dev:i386 The default gcc is 4.6, which can't build android. Use gcc-4.4 instead: $ sudo apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib gcc-4.4-multilib $ mkdir ~/gcc_fix $ cd ~/gcc_fix $ ln -s /usr/bin/cpp-4.4 cpp $ ln -s /usr/bin/g++-4.4 g++ $ ln -s /usr/bin/gcc-4.4 gcc $ ln -s /usr/bin/gcov-4.4 gcov $ ln -s gcc cc $ export PATH=~/gcc_fix:$PATHThe default JDK is OpenJDK 1.6, which can't build android.To fix it, please download jdk-6u32-linux-x64.bin from http://java.sun.com/javase/downloads/then: $ cd /usr/lib/jvm $ sudo /path/to/jdk-6u32-linux-x64.bin $ sudo ln -s jdk1.6.0_32 java-6-sun $ export PATH=/usr/lib/jvm/java-6-sun/bin:$PATH $ export JAVA_HOME=/usr/lib/jvm/java-6-sun Then build as usual ============================= How to build Android emulator ============================= If you are trying to build android emulator (from google AOSP tree) on ubuntu 12.04, you could meet the following issue: " prebuilt/linux-x86/ccache/ccache g++ -Wl,-rpath-link=out/host/linux-x86/obj/lib -Wl,-rpath,\$ORIGIN/../lib -shared -Wl,-soname,lib64GLES_V2_translator.so -Wl,-Bsymbolic -Wl,--no-undefined -Lout/host/linux-x86/obj/lib -m32 out/host/linux-x86/obj/SHARED_LIBRARIES/lib64GLES_V2_translator_intermediates/GLESv2Imp.o out/host/linux-x86/obj/SHARED_LIBRARIES/lib64GLES_V2_translator_intermediates/GLESv2Context.o out/host/linux-x86/obj/SHARED_LIBRARIES/lib64GLES_V2_translator_intermediates/GLESv2Validate.o out/host/linux-x86/obj/SHARED_LIBRARIES/lib64GLES_V2_translator_intermediates/ShaderParser.o out/host/linux-x86/obj/SHARED_LIBRARIES/lib64GLES_V2_translator_intermediates/ProgramData.o -Wl,--whole-archive -Wl,--no-whole-archive out/host/linux-x86/obj/STATIC_LIBRARIES/lib64GLcommon_intermediates/lib64GLcommon.a out/host/linux-x86/obj/STATIC_LIBRARIES/lib64cutils_intermediates/lib64cutils.a out/host/linux-x86/obj/STATIC_LIBRARIES/lib64utils_intermediates/lib64utils.a out/host/linux-x86/obj/STATIC_LIBRARIES/lib64log_intermediates/lib64log.a out/host/linux-x86/obj/STATIC_LIBRARIES/lib64OpenglOsUtils_intermediates/lib64OpenglOsUtils.a -o out/host/linux-x86/obj/lib/lib64GLES_V2_translator.so -lGL -ldl -ldl -lpthread -lrt -m64 /usr/bin/ld: cannot find -lGL collect2: ld returned 1 exit status " Reason: Android sdk is trying to build the emulator64 and emulator at same time, so it needs to link to both x64 and i386 GL libaries. However, ubuntu 12.04 doesn't allow to install libgl1-mesa-dev:i386 and libgl1-mesa-dev at same time (unlike ubuntu 10.04). Fix: Run following scripts: " #!/bin/bash # install_files=`dpkg -L libdrm-dev:i386 libgl1-mesa-dev:i386 libxext-dev:i386 mesa-common-dev:i386`; for file in $install_files;do if [ ! -d $file ];then echo $file >> /tmp/GL_i386.log fi done cd / cat /tmp/GL_i386.log|xargs tar czf /tmp/GL_i386.tgz sudo apt-get install libgl1-mesa-dev sudo tar zxf /tmp/GL_i386.tgz " Then build the Android as usual: $ source ./build/envsetup.sh $ lunch full_x86-eng $ make droid -jN
>>> >>> <michael.j.silverstri@gmail.com>
>>> >>> >>> >>> <michael.j.silverstri@gmail.com>
>>> >>> >>> >>> >> <michael.j.silverstri@gmail.com>
>>> >>> >>> >>> >> > android-building@googlegroups.com
>>> >>> >>> >>> >> > To unsubscribe from this group, send email to
>>> >>> >>> >>> >> > android-building+unsubscribe@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.
>>> >>> >>> >>> >
>>> >>> >>> >>> > --
>>> >>> >>> >>> > You received this message because you are subscribed to the
>>> >>> >>> >>> > "Android
>>> >>> >>> >>> > Building" mailing list.
>>> >>> >>> >>> > To post to this group, send email to
>>> >>> >>> >>> > android-building@googlegroups.com
>>> >>> >>> >>> > To unsubscribe from this group, send email to
>>> >>> >>> >>> > android-building+unsubscribe@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.
>>> >>> >>> >>>
>>> >>> >>> >>> --
>>> >>> >>> >>> You received this message because you are subscribed to the
>>> >>> >>> >>> "Android
>>> >>> >>> >>> Building" mailing list.
>>> >>> >>> >>> To post to this group, send email to
>>> >>> >>> >>> android-building@googlegroups.com
>>> >>> >>> >>> To unsubscribe from this group, send email to
>>> >>> >>> >>> android-building+unsubscribe@googlegroups.com
>>> >>> >>> >>> For more options, visit this group at
>>> >>> >>> >>> http://groups.google.com/group/android-building?hl=en
>>> >>> >>> >>
>>> >>> >>> >>
>>> >>> >>> >>
>>> >>> >>> >>
>>> >>> >>> >> --
>>> >>> >>> >> create interesting things.
>>> >>> >>> >>
>>> >>> >>> >> --
>>> >>> >>> >> You received this message because you are subscribed to the
>>> >>> >>> >> "Android
>>> >>> >>> >> Building" mailing list.
>>> >>> >>> >> To post to this group, send email to
>>> >>> >>> >> android-building@googlegroups.com
>>> >>> >>> >> To unsubscribe from this group, send email to
>>> >>> >>> >> android-building+unsubscribe@googlegroups.com
>>> >>> >>> >> For more options, visit this group at
>>> >>> >>> >> http://groups.google.com/group/android-building?hl=en
>>> >>> >>>
>>> >>> >>> --
>>> >>> >>> You received this message because you are subscribed to the
>>> >>> >>> "Android
>>> >>> >>> Building" mailing list.
>>> >>> >>> To post to this group, send email to
>>> >>> >>> android-building@googlegroups.com
>>> >>> >>> To unsubscribe from this group, send email to
>>> >>> >>> android-building+unsubscribe@googlegroups.com
>>> >>> >>> For more options, visit this group at
>>> >>> >>> http://groups.google.com/group/android-building?hl=en
>>> >>> >>
>>> >>> >>
>>> >>> >>
>>> >>> >>
>>> >>> >> --
>>> >>> >> create interesting things.
>>> >>> >
>>> >>> > --
>>> >>> > You received this message because you are subscribed to the
>>> >>> > "Android
>>> >>> > Building" mailing list.
>>> >>> > To post to this group, send email to
>>> >>> > android-building@googlegroups.com
>>> >>> > To unsubscribe from this group, send email to
>>> >>> > For more options, visit this group at
>>> >>> > http://groups.google.com/group/android-building?hl=en
>>> >>
>>> >> --
>>> >> You received this message because you are subscribed to the "Android
>>> >> Building" mailing list.
>>> >> To post to this group, send email to android-building@googlegroups.com
>>> >> To unsubscribe from this group, send email to
>>> >> For more options, visit this group at
>>> >> http://groups.google.com/group/android-building?hl=en
>
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-building@googlegroups.com
> To unsubscribe from this group, send email to
>>> >>> <michael.j.silverstri@gmail.com>
>>> >>> >>> >>> <michael.j.silverstri@gmail.com>
>>> >>> >>> >>> >> <michael.j.silverstri@gmail.com>
>>> >>> >>> >>> >> > android-building@googlegroups.com
>>> >>> >>> >>> >> > To unsubscribe from this group, send email to
>>> >>> >>> >>> >> > android-building+unsubscribe@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.
>>> >>> >>> >>> >
>>> >>> >>> >>> > --
>>> >>> >>> >>> > You received this message because you are subscribed to the
>>> >>> >>> >>> > "Android
>>> >>> >>> >>> > Building" mailing list.
>>> >>> >>> >>> > To post to this group, send email to
>>> >>> >>> >>> > android-building@googlegroups.com
>>> >>> >>> >>> > To unsubscribe from this group, send email to
>>> >>> >>> >>> > android-building+unsubscribe@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.
>>> >>> >>> >>>
>>> >>> >>> >>> --
>>> >>> >>> >>> You received this message because you are subscribed to the
>>> >>> >>> >>> "Android
>>> >>> >>> >>> Building" mailing list.
>>> >>> >>> >>> To post to this group, send email to
>>> >>> >>> >>> android-building@googlegroups.com
>>> >>> >>> >>> To unsubscribe from this group, send email to
>>> >>> >>> >>> android-building+unsubscribe@googlegroups.com
>>> >>> >>> >>> For more options, visit this group at
>>> >>> >>> >>> http://groups.google.com/group/android-building?hl=en
>>> >>> >>> >>
>>> >>> >>> >>
>>> >>> >>> >>
>>> >>> >>> >>
>>> >>> >>> >> --
>>> >>> >>> >> create interesting things.
>>> >>> >>> >>
>>> >>> >>> >> --
>>> >>> >>> >> You received this message because you are subscribed to the
>>> >>> >>> >> "Android
>>> >>> >>> >> Building" mailing list.
>>> >>> >>> >> To post to this group, send email to
>>> >>> >>> >> android-building@googlegroups.com
>>> >>> >>> >> To unsubscribe from this group, send email to
>>> >>> >>> >> android-building+unsubscribe@googlegroups.com
>>> >>> >>> >> For more options, visit this group at
>>> >>> >>> >> http://groups.google.com/group/android-building?hl=en
>>> >>> >>>
>>> >>> >>> --
>>> >>> >>> You received this message because you are subscribed to the
>>> >>> >>> "Android
>>> >>> >>> Building" mailing list.
>>> >>> >>> To post to this group, send email to
>>> >>> >>> android-building@googlegroups.com
>>> >>> >>> To unsubscribe from this group, send email to
>>> >>> >>> android-building+unsubscribe@googlegroups.com
>>> >>> >>> For more options, visit this group at
>>> >>> >>> http://groups.google.com/group/android-building?hl=en
>>> >>> >>
>>> >>> >>
>>> >>> >>
>>> >>> >>
>>> >>> >> --
>>> >>> >> create interesting things.
>>> >>> >
>>> >>> > --
>>> >>> > You received this message because you are subscribed to the
>>> >>> > "Android
>>> >>> > Building" mailing list.
>>> >>> > To post to this group, send email to
>>> >>> > android-building@googlegroups.com
>>> >>> > To unsubscribe from this group, send email to
>>> >>> > For more options, visit this group at
>>> >>> > http://groups.google.com/group/android-building?hl=en
>>> >>
>>> >> --
>>> >> You received this message because you are subscribed to the "Android
>>> >> Building" mailing list.
>>> >> To post to this group, send email to android-building@googlegroups.com
>>> >> To unsubscribe from this group, send email to
>>> >> For more options, visit this group at
>>> >> http://groups.google.com/group/android-building?hl=en
>
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-building@googlegroups.com
> To unsubscribe from this group, send email to
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
Building on Ubuntu 12.04 is currently only experimentally supported and is not guaranteed to work on branches other than master.
$ sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
--mark
Can we use this to build a specific branch? I have problems with 4.0.4_r2.1 using 12.04 LTS. I have compile errors with su and superuser which I didn't have before in 10.04 LTS.
--
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