Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
install android sdk
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
zuoshulu
n00b
n00b


Joined: 13 Jul 2012
Posts: 34

PostPosted: Wed Jul 18, 2012 3:23 pm    Post subject: install android sdk Reply with quote

Code:
emerge dev-util/android-sdk-update-manager


the above command says masked by: ~x86 keyword
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7741
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Jul 18, 2012 3:29 pm    Post subject: Reply with quote

Well, then unmask it. :wink: See Mixing Software Branches in the Handbook.

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
zuoshulu
n00b
n00b


Joined: 13 Jul 2012
Posts: 34

PostPosted: Wed Jul 18, 2012 4:05 pm    Post subject: Reply with quote

John R. Graham wrote:
Well, then unmask it. :wink: See Mixing Software Branches in the Handbook.

- John


ok, i passed emerge, now i am try to run

Code:
 /opt/android-sdk-update-manager/tools/android


got a message

Quote:
SWT folder '/opt/android-sdk-update-manager/tools/lib/x86 does not exist.
Please export ANDROID_SWT to point to the folder containing swt.jar for your platform
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7741
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Jul 18, 2012 5:08 pm    Post subject: Reply with quote

This
Code:
 ~ # emerge  -s swt
Searching...   
[ Results for search key : swt ]
[ Applications found : 2 ]

*  dev-java/swt
      Latest version available: 3.7.2
      Latest version installed: [ Not Installed ]
      Size of files: 5,248 kB
      Homepage:      http://www.eclipse.org/
      Description:   GTK based SWT Library
      License:       CPL-1.0 LGPL-2.1 MPL-1.1
<snip>
looks like it might be what you need. Might be a missing dependency. Not too atypical of testing branch software. The fact that it's from www.eclipse.org makes me think that, before you're done, you'll be installing Eclipse, though.

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
zuoshulu
n00b
n00b


Joined: 13 Jul 2012
Posts: 34

PostPosted: Wed Jul 18, 2012 8:53 pm    Post subject: Reply with quote

John R. Graham wrote:
This
Code:
 ~ # emerge  -s swt
Searching...   
[ Results for search key : swt ]
[ Applications found : 2 ]

*  dev-java/swt
      Latest version available: 3.7.2
      Latest version installed: [ Not Installed ]
      Size of files: 5,248 kB
      Homepage:      http://www.eclipse.org/
      Description:   GTK based SWT Library
      License:       CPL-1.0 LGPL-2.1 MPL-1.1
<snip>
looks like it might be what you need. Might be a missing dependency. Not too atypical of testing branch software. The fact that it's from www.eclipse.org makes me think that, before you're done, you'll be installing Eclipse, though.

- John


I emerged dev-java/swt, and export ANDROID_SWT to the path of swt.jar. then I got error
Quote:
java.lang.unsatifiedlinkError: could not load Swt library:
no swt-gtk-4233 in java.library.path
no swt-gtk in java.library.path
can't load library: /root/.swt/lib/linux/x86/libswt-gtk.so
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7741
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Jul 18, 2012 9:16 pm    Post subject: Reply with quote

Noting that, when I build dev-java/swt as a test, I get (among other things) /usr/lib/libswt-gtk-3740.so and your program is looking for libswt-gtk-4233.so, I check the available versions of swt:
Code:
 ~ # equery list -p swt
 * Searching for swt ...
[-P-] [  ] dev-java/swt-3.4-r4:3.4
[-P-] [  ] dev-java/swt-3.5.2:3.5
[-P-] [  ] dev-java/swt-3.6.1:3.6
[-P-] [ ~] dev-java/swt-3.7.1:3.7
[IP-] [  ] dev-java/swt-3.7.2:3.7
[-P-] [ ~] dev-java/swt-4.2:4.2
"Ah hah!," says I.
"What if I build swt-4.2 explicitly? Wonder what I get then?" Therefore,
Code:
ACCEPT_KEYWORDS="~X86" emerge -1va =swt-4.2
<snip>
>>> /usr/lib/libswt-gtk-4233.so
<snip>
>>> Regenerating /etc/ld.so.cache...

>>> Recording dev-java/swt in "world" favorites file...
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.
And there you have it. :wink: This is the sort of exercise you'll go through when working with the testing branch packages, or with building your own ebuilds for Gentoo.

Of course, now that I know it contains what I need, I'll want to permanently unmask it by making an entry in /etc/portage/package.keywords. Something like this:
Code:
echo "=dev-java/swt-4.2*" >/etc/portage/package.keywords/swt
Making more sense now?

By the way, was it version 17 or 20 that you installed?

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
zuoshulu
n00b
n00b


Joined: 13 Jul 2012
Posts: 34

PostPosted: Wed Jul 18, 2012 9:35 pm    Post subject: Reply with quote

well i am not even sure if i need Android SDK, I am trying to compile fastboot as in my post in http://forums.gentoo.org/viewtopic-t-930400.html

make looks for 'frameworks/base/api", I found the file or folder can be from android sdk. how do you think?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7741
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Jul 18, 2012 9:40 pm    Post subject: Reply with quote

Dunno. You're beyond my area of expertise. Perhaps someone else will chime in.

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum