Build at Ubuntu 10.04

77 views
Skip to first unread message

ran

unread,
Jun 29, 2010, 10:06:58 AM6/29/10
to android-on-freerunner
Hello

Does somebody try to build a-o-f under Ubuntu 10.04?
I try to follow http://www.crashcourse.ca/wiki/index.php/Android_on_Ubuntu_10.04,
but do not get success.
Some pkgs was requied to be installed in addition to link above. At
least I get incompatible libs:

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/
libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/
libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/
libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/
libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp]
Error 1

Please, any comment.

Jim Ancona

unread,
Jun 29, 2010, 11:30:03 AM6/29/10
to android-on...@googlegroups.com
It works for me using 32-bit Lucid. Try following the instructions on the wiki for Karmic: http://code.google.com/p/android-on-freerunner/wiki/BuildIt 

Basically you need to install GCC and G++ 4.3 and export the proper CC and CXX environment variables. I can check further when I get home this evening.

Jim

ran

unread,
Jun 29, 2010, 2:13:04 PM6/29/10
to android-on-freerunner
Thank for answer.
However your suggestion not help. First, a lot of links at
http://code.google.com/p/android-on-freerunner/wiki/BuildIt is
broken. I have seen this page
before and tried follow you suggest:
>Basically you
> need to install GCC and G++ 4.3 and export the proper CC and CXX environment
> variables. I can check further when I get home this evening.
But I get really same result:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.4/
libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.4/
libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.4/
libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.4/
libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp]
Error 1
ran@Ubuntu:~/eclair$ env | egrep "CC|CXX"
CXX=g++-4.3
CC=gcc-4.3

Linus Gasser

unread,
Jun 29, 2010, 4:15:49 PM6/29/10
to android-on...@googlegroups.com
Le 29.06.10 20:13, ran a écrit :

>>> /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/
>>> libstdc++.so when searching for -lstdc++

Hi,
I didn't manage to compile it (yet), but seeing these lines, it seems
you're using the 64-bit version of Ubuntu, is that correct? Because the
wiki states that the 32-bit version is somewhat easier to compile...

Linus

Jim Ancona

unread,
Jun 29, 2010, 11:51:09 PM6/29/10
to android-on...@googlegroups.com
I've updated the wiki page a bit, but since I'm not running 64-bit Ubuntu I can't experiment easily. Have you installed the packages recommended for 64-bit Ubuntu at http://source.android.com/source/download.html ? The list there includes 

git-core gnupg flex bison gperf build-essential zip curl sun-java5-jdk zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev

I suspect you want  gcc-4.3-multilib and g++-4.3-multilib instead of, or in addition to gcc-multilib and g++-multilib in that list.

Hope this helps!

Jim

ran

unread,
Jun 30, 2010, 9:24:09 AM6/30/10
to android-on-freerunner
Thank for help.
I have build cupcake under 64-bit 10.04 Ubuntu successfully.
Waiting master ( with froyo ) ready.

On 30 июн, 07:51, Jim Ancona <j...@anconafamily.com> wrote:
> I've updated the wiki page a bit, but since I'm not running 64-bit Ubuntu I
> can't experiment easily. Have you installed the packages recommended for
> 64-bit Ubuntu athttp://source.android.com/source/download.html? The list

Jim Ancona

unread,
Jun 30, 2010, 11:21:53 AM6/30/10
to android-on...@googlegroups.com
Glad to hear it. What can we add to the wiki to make it easier for the next person?

Jim

ran

unread,
Jul 1, 2010, 5:56:17 AM7/1/10
to android-on-freerunner
One thing which should be pointed is:
>gcc-4.3-multilib and g++-4.3-multilib in
>addition to gcc-multilib and g++-multilib
Other problems from my side was lack of attention

On 30 июн, 19:21, Jim Ancona <j...@anconafamily.com> wrote:
> Glad to hear it. What can we add to the wiki to make it easier for the next
> person?
>
> Jim
>
> On Wed, Jun 30, 2010 at 9:24 AM, ran <r...@mail.wplus.net> wrote:
> > Thank for help.
> > I have build cupcake under  64-bit 10.04 Ubuntu successfully.
> > Waiting master ( with froyo ) ready.
>
> > On 30 июн, 07:51, Jim Ancona <j...@anconafamily.com> wrote:
> > > I've updated the wiki page a bit, but since I'm not running 64-bit Ubuntu
> > I
> > > can't experiment easily. Have you installed the packages recommended for
> > > 64-bit Ubuntu athttp://source.android.com/source/download.html?The list

Lars Lindholm

unread,
Jun 29, 2010, 11:10:44 AM6/29/10
to android-on...@googlegroups.com
If some one else dosen't have a better answer I say the ia32-libs
package is needed.

larlin

ran

unread,
Jul 12, 2010, 12:11:59 AM7/12/10
to android-on-freerunner
Could not build current master(froyo) with this scheme. I get :
frameworks/base/core/java/android/app/ListActivity.java:319:
inconvertible types
found : android.widget.AdapterView<capture of ?>
required: android.widget.ListView
onListItemClick((ListView)parent, v, position, id);
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
6 warnings
make: *** [out/target/common/obj/JAVA_LIBRARIES/
framework_intermediates/classes-full-debug.jar] Error 41
I have check my exports:
export JAVA_HOME=java-1.5.0-sun
export ANDROID_JAVA_HOME=java-1.5.0-sun
export CC=gcc-4.3
export CXX=g++-4.3
export TARGET_PRODUCT=fr
export CUSTOM_LOCALES=ru_RU
Any comments, please.

On 29 июн, 19:10, Lars Lindholm <larlin...@gmail.com> wrote:
> If some one else dosen't have a better answer I say the ia32-libs
> package is needed.
>
> larlin
>
> On 06/29/2010 04:06 PM, ran wrote:
>
> > Hello
>
> > Does somebody try to build a-o-f under Ubuntu 10.04?
> > I try to followhttp://www.crashcourse.ca/wiki/index.php/Android_on_Ubuntu_10.04,
Reply all
Reply to author
Forward
0 new messages