Android adb on the pi?

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Android adb on the pi?

Postby workdowg » Sun Jun 10, 2012 9:14 pm

Got stuck trying to build this at, libstdc++5, and another I forgot. Anyone help?


$this->bbcode_second_pass_code('', '
==> Starting build()...
Configuring for a armv6l-unknown-linux-gnu host.
Created "Makefile" in /build-tmp/src/gcc-build using "mt-frag"
gcc: error: unrecognized argument in option ‘-march=arm’
gcc: note: valid arguments to ‘-march=’ are: armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5e armv5t armv5te armv6 armv6-m armv6j armv6k armv6s-m armv6t2 armv6z armv6zk armv7 armv7-a armv7-m armv7-r armv7e-m ep9312 iwmmxt iwmmxt2 native
*** The command 'gcc -o conftest -march=arm -O2 -pipe -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
==> ERROR: A failure occurred in build().
Aborting...
')

I got the PKGBUILD and patch file from the ABS and it stops with the above error.
workdowg
 
Posts: 16
Joined: Tue Apr 17, 2012 10:57 pm

Re: Android adb on the pi?

Postby gregd72002 » Tue Jun 26, 2012 4:54 pm

If you set the 'march' to 'armv6' this should get you going...
gregd72002
 
Posts: 15
Joined: Wed May 09, 2012 2:57 pm

Re: Android adb on the pi?

Postby workdowg » Sun Jul 01, 2012 1:46 am

$this->bbcode_second_pass_quote('gregd72002', 'I')f you set the 'march' to 'armv6' this should get you going...

I have tried that... it kept reverting back. The makepkg has to be resetting the environment.
workdowg
 
Posts: 16
Joined: Tue Apr 17, 2012 10:57 pm

Re: Android adb on the pi?

Postby WarheadsSE » Sun Jul 01, 2012 5:20 pm

This has an example of how to override:
https://github.com/archlinuxarm/PKGBUIL ... 8/PKGBUILD
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Android adb on the pi?

Postby workdowg » Mon Jul 02, 2012 1:10 am

$this->bbcode_second_pass_quote('WarheadsSE', 'T')his has an example of how to override:
https://github.com/archlinuxarm/PKGBUIL ... 8/PKGBUILD


Thank you. I'm learning so much lately, my head hurts.

Now it builds but stops here:
$this->bbcode_second_pass_code('', '

/usr/bin/ld: unrecognised emulation mode: armelf_linux
Supported emulations: armelf_linux_eabi armelfb_linux_eabi
collect2: ld returned 1 exit status
make[2]: *** [libgcc/./_udivsi3.oS] Error 1
make[2]: Leaving directory `/home/tliscum/build-tmp/src/gcc-build/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/home/tliscum/build-tmp/src/gcc-build/gcc'
make: *** [all-gcc] Error 2
==> ERROR: A failure occurred in build().
Aborting...
')

Any new ideas?
workdowg
 
Posts: 16
Joined: Tue Apr 17, 2012 10:57 pm

Re: Android adb on the pi?

Postby cesarramsan » Mon Jul 02, 2012 6:26 am

I don't think you can get this to work. You can recompile the dependencies to work with arm but the android sdk is compiled to x86 and I don't think it is open source.
cesarramsan
 
Posts: 15
Joined: Sun Apr 01, 2012 11:15 am

Re: Android adb on the pi?

Postby workdowg » Mon Jul 02, 2012 2:10 pm

$this->bbcode_second_pass_quote('cesarramsan', 'I') don't think you can get this to work. You can recompile the dependencies to work with arm but the android sdk is compiled to x86 and I don't think it is open source.

I have been failing to build one of the dependencies, libstdc++5. It is an old gcc library.
workdowg
 
Posts: 16
Joined: Tue Apr 17, 2012 10:57 pm
Top

Re: Android adb on the pi?

Postby cesarramsan » Wed Jul 04, 2012 5:43 pm

At which step is the compile failing?
cesarramsan
 
Posts: 15
Joined: Sun Apr 01, 2012 11:15 am

Re: Android adb on the pi?

Postby Huulivoide » Thu Jul 12, 2012 2:52 pm

You can install adb with the 'adb' package from AUR.
It builds fine.

abd: https://aur.archlinux.org/packages.php?ID=51442

Here is a redybuilt package: http://huulivoide.pp.fi/Arch/arm/adb-2.3-2-arm.pkg.tar.xz
Huulivoide
 
Posts: 27
Joined: Tue Jun 26, 2012 6:22 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 9 guests