roothausen

  • Impressum
  • Administration
  • Kontaktformular
  • Jabber
  • Tagcloud
  • Twitter
  • Soup
  • Github

Entries from Tuesday, June 2. 2009

Android-SDK auf 64Bit Arch Linux

19:40

Tuesday, June 2. 2009

Wie bei manchen anderen Kleinigkeiten haben sich bei mir ein paar der Tools aus dem Android-SDK geweigert auf meinem 64Bit Arch Linux zu starten. Anscheinend fehlten ein paar Bibliotheken. Ich versuche hier mal zusammenfassend zu beschreiben, wie ich es zum laufen bekommen habe.

SDK installieren

Da das PKGBUILD aus dem User-Repository zum einen keine Abhaengigkeiten enthaellt und zum anderen nicht aktuell ist, habe ich mich dazu entschlossen eine modifizierte Version zu verwenden:

PKGBUILD


pkgname=android-sdk
pkgver=1.5_r2
pkgrel=1
pkgdesc="Google Android SDK"
arch=('i686' 'x86_64')
url="http://code.google.com/android/"
license=('custom')

if [ "$CARCH" = "x86_64" ]; then
   depends=('jre' 'lib32-libstdc++5' 'lib32-libx11' 'lib32-ncurses' 'lib32-zlib' 'lib32-sdl' 'lib32-libxext' 'swt')
else
   depends=('jre')
fi

source=(http://dl.google.com/android/android-sdk-linux_x86-$pkgver.zip \
        android.sh)

md5sums=('1d3c3d099e95a31c43a7b3e6ae307ed3' 'e7f23c39d02a3a280c746f7398bf5114')

build() {
  mkdir -p $pkgdir/opt && \
  mkdir -p $pkgdir/etc/profile.d && \
  mv $srcdir/android-sdk-linux_x86-$pkgver $pkgdir/opt/android-sdk && \
  cp $srcdir/android.sh $pkgdir/etc/profile.d && \
  rm  $pkgdir/opt/android-sdk/tools/lib/libswt* && \
  cp /usr/lib/libswt-* $pkgdir/opt/android-sdk/tools/lib && \
  cp /usr/share/java/swt.jar $pkgdir/opt/android-sdk/tools/lib && \
  cd $pkgdir/opt/android-sdk && \
  find -type d -exec chmod 755 \{\} \; && \
  find -exec chmod +r \{\} \; && \
  chmod +x $startdir/pkg/etc/profile.d/android.sh
}
 

Wie man sieht, werden die *swt*-Komponenten des SDK durch native 64Bit Versionen ersetzt. Darum ist es auch notwendig zuvor das SWT-Paket zu installieren.

android.sh


#!/bin/sh

export PATH=$PATH:/opt/android-sdk/tools
 

Installation

Das Erstellen und Installieren des Pakets kann nun wie gewohnt mit makepkg vorgenommen werden. Mit diesem Setup sollten dann auch die Tools fuer Eclipse wieder wie gewohnt laufen.

Posted by Sven Pfleiderer in computer | Comment (1) | Trackbacks (0)
Defined tags for this entry: android, computer, java, programming, sdk
Related entries by tags:
  • Mobile devices or: How I Learned to Stop Worrying and Love the iOS
  • The VP8 Video Codec
  • My Bachelor Thesis: Scale the realtime web
  • Distributed contact management using HTTP
  • Gesichtserkennung/Eigenfaces
(Page 1 of 1, totaling 1 entries)

JavaScript String .fromCharCode

Calendar

« June '09 »
Mo Tu We Th Fr Sa Su
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          

Quicksearch

Kategorien

  • XML computer
  • XML misc
  • XML web
  • XML zeitgeist


All categories

Archiv

  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • Recent...
  • Older...

Feeds

  • XML RSS 2.0 feed
  • ATOM/XML ATOM 1.0 feed
  • XML RSS 2.0 Comments

Links

Retinacast
Shackspace
Yaxim
Radio Tux
Kais Blog
Blumen Pfleiderer
Alk
paxos
filzo
Marc Seeger
polzifer
Moritz Haarmann

Tags

android bad world blog blogging browser changes code comic computer contentmanagement encryption feedreader firefox free fun google gui hardware howto html im jabber java life lighttpd linux linux&unix markup media misc mobile murphy networking newsbeuter opensource picture politics presentation privacy programming regular expression rss ruby s9y scala screenshot sdk security server shortys software stuff tail -f /var/log/life test tool tv unix video web webdesign webwide windows xml zeitgeist

Lizenz

Creative Commons License - Some Rights Reserved