DDMS under Mac OS X 10.5 (Snow Leopoard)

by Joel » Mon, 31 Aug 2009 01:40:35 GMT


Sponsored Links
 Under snow leopard I get an error running ddms:

11:17 E/ddms: shutting down due to uncaught exception
11:17 E/ddms: java.lang.UnsatisfiedLinkError: <ANDROID_HOME>/tools/lib/
libswt-pi-carbon-3236.jnilib:  no suitable image found.  Did find:
<ANDROID_HOME>/tools/lib/libswt-pi-carbon-3236.jnilib: no matching
architecture in universal wrapper
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1878)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1771)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1045)
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
        at org.eclipse.swt.internal.carbon.OS.<clinit>(OS.java:20)
        at org.eclipse.swt.widgets.Display.createDisplay(Display.java:943)
        at org.eclipse.swt.widgets.Display.create(Display.java:923)
        at org.eclipse.swt.graphics.Device.<init>(Device.java:118)
        at org.eclipse.swt.widgets.Display.<init>(Display.java:754)
        at org.eclipse.swt.widgets.Display.<init>(Display.java:745)
        at com.android.ddms.UIThread.runUI(UIThread.java:330)
        at com.android.ddms.Main.main(Main.java:97)

Any fixes for this availabe yet?

Thanks.

--~--~---------~--~----~------------~-------~--~----~



DDMS under Mac OS X 10.5 (Snow Leopoard)

by Joel Fischer » Mon, 31 Aug 2009 01:40:54 GMT


 Sorry, the subject line should have stated Mac OS X 10.6, of course.


Under snow leopard I get an error running ddms:

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


DDMS under Mac OS X 10.5 (Snow Leopoard)

by Xavier Ducrohet » Mon, 31 Aug 2009 01:48:26 GMT


 The SWT library uses a native component that must be loaded by the VM.
At this time we only provide the 32bit version.
I'm guessing that in Snow Leopard the default VM is now 64 bit instead
of 32 bit.

To change this go in Applications folder, then Utilities, and launch
the "Java Preferences" app. You'll be able to set a 32 bit VM as the
default one.

Eclipse 3.5 added support for 64bit SWT on MacOS, so we'll migrate to
this to support 32/64 bit on MacOS.

Xav






-- 
Xavier Ducrohet
Android Developer Tools Engineer
Google Inc.

--~--~---------~--~----~------------~-------~--~----~



DDMS under Mac OS X 10.5 (Snow Leopoard)

by foo » Tue, 01 Sep 2009 08:07:12 GMT


 Just in case that didn't work for anyone, for qmodify ddms (TextEdit
works) and add '-d32' to the Java options to force the Java VM to 32
bit by modifying this code:

# Mac OS X needs an additional arg, or you get an "illegal thread"
complaint.
if [ `uname` = "Darwin" ]; then
    os_opts="-XstartOnFirstThread"

to this:

# Mac OS X needs an additional arg, or you get an "illegal thread"
complaint.
if [ `uname` = "Darwin" ]; then
    os_opts="-XstartOnFirstThread -d32"


FOO






--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. DDMS and Ubuntu 8.10 64-bit

Environment:
-- Ubuntu 8.10 Intrepid Ibex 2.6.27-9-generic x86_64 GNU/Linux
-- Sun Java 6 JDK
        java version "1.6.0_10"
        Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
        Java HotSpot(TM) 64-Bit Server VM (build 11.0-b15, mixed mode)
-- ia32-libs installed

The emulator runs fine, as does the ant build chain, adb, and
activitycreator.

However, DDMS fails, complaining that tools/lib/libswt-pi-gtk-3236.so
has "wrong ELF class: ELFCLASS32 (Possible cause: architecture word
width mismatch)"

Does anyone have DDMS working on 64-bit Linux? If so...any tips?

Thanks in advance!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 Available!

--~--~---------~--~----~------------~-------~--~----~

2. emulator not launching

Hi all,
when i m trying to run my first program in android,i m getting the
following error:
NAND: could not write file /android-sdk-linux_x86-1.0_r1/tools/lib/
images//system.img, File exists
did anybody knows a solution for this....???
thanx in advance....

--~--~---------~--~----~------------~-------~--~----~

3. Clearing the WebView cache

4. Multiple language versions on the Market: localized descriptions?

5. New Android App help

6. Internationalization of webView apps

7. WebView and javascript drag