View previous topic :: View next topic |
Author |
Message |
zuoshulu n00b
Joined: 13 Jul 2012 Posts: 34
|
Posted: Wed Jul 18, 2012 3:23 pm Post subject: install android sdk |
|
|
Code: | emerge dev-util/android-sdk-update-manager |
the above command says masked by: ~x86 keyword |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Jul 18, 2012 3:29 pm Post subject: |
|
|
Well, then unmask it. See Mixing Software Branches in the Handbook.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
zuoshulu n00b
Joined: 13 Jul 2012 Posts: 34
|
Posted: Wed Jul 18, 2012 4:05 pm Post subject: |
|
|
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 |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Jul 18, 2012 5:08 pm Post subject: |
|
|
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 can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
zuoshulu n00b
Joined: 13 Jul 2012 Posts: 34
|
Posted: Wed Jul 18, 2012 8:53 pm Post subject: |
|
|
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 |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Jul 18, 2012 9:16 pm Post subject: |
|
|
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. 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 _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
zuoshulu n00b
Joined: 13 Jul 2012 Posts: 34
|
Posted: Wed Jul 18, 2012 9:35 pm Post subject: |
|
|
well i am not even sure if i need Android SDK, I am trying to compile fastboot as in my post in https://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 |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Jul 18, 2012 9:40 pm Post subject: |
|
|
Dunno. You're beyond my area of expertise. Perhaps someone else will chime in.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
|