Posted on April 25, 2008 at 12:14 pm

phoneME Advanced on OSX Intel

I wanted to develop my J2ME CDC Applicatins on my Intel Mac. Unfortunalty there is no CDC VM available for Intel Macs. The phoneME project provides sources for a PowerPC version for Darwin/OS X. So I decided to port that over to Intel by replacing some files with the correct Linux x86 ones.

Here is my result:


Patch: phoneme-cdc-darwin-x86

Binary: phoneme-cdc-personal-darwin-x86-qt3-x11-bin

Copy the files from the Patch-Archive into the correct folders of the phoneME sources. You can build the Foundation-Profile with “make”in the directory cdc/build/darwin-x86-mac and with “make J2ME_CLASSLIB=personal” the Personal-Profile. You need QT3 for the Personal-Profile. Install that with Fink.

You can try out the resulting VM with “bin/cvm -jar democlasses.jar”.

Tags:, ,

7 Responses to “phoneME Advanced on OSX Intel”

  1. Sascha on June 24th, 2008 at 20:12 says:

    Habs ausprobiert und heraus kommt ein UnsatisfiedLinkError. In der Meldung steht der Pfad zu libqtawt.so. X11 (Apple) und qt3 (via fink) sind vorhanden. Irgendeine Idee, was da fehlt?

  2. tisoft_media on June 24th, 2008 at 20:21 says:

    Hallo Sascha,

    Benutzt du Tiger oder Leopard? Ich habs auf Leopard compiliert.

    Kannst du mal den kompletten Stacktrace posten?

  3. tisoft_media on June 24th, 2008 at 20:31 says:

    Nachtrag:

    Folgende Libraries werden von cvm auf meinem Mac genutzt:

    /Users/markus/Downloads/phoneme-cdc-personal-darwin-x86-qt3-x11-bin/bin/cvm
    /usr/X11/lib/libXau.6.dylib
    /Users/markus/Downloads/phoneme-cdc-personal-darwin-x86-qt3-x11-bin/lib/libqtawt.so
    /usr/X11/lib/libGL.1.2.dylib
    /usr/X11/lib/libXmu.6.dylib
    /usr/X11/lib/libXrender.1.dylib
    /usr/X11/lib/libXrandr.2.dylib
    /usr/X11/lib/libXcursor.1.dylib
    /usr/X11/lib/libXinerama.1.dylib
    /usr/X11/lib/libXft.2.dylib
    /sw/lib/freetype219/lib/libfreetype.6.3.10.dylib
    /usr/X11/lib/libfontconfig.1.3.0.dylib
    /usr/X11/lib/libXext.6.dylib
    /usr/X11/lib/libX11.6.dylib
    /usr/X11/lib/libSM.6.dylib
    /usr/X11/lib/libICE.6.dylib
    /usr/lib/libXplugin.1.dylib
    /usr/X11/lib/libXdmcp.6.dylib
    /usr/X11/lib/libXt.6.dylib
    /usr/X11/lib/libXfixes.3.dylib
    /usr/lib/libexpat.1.5.0.dylib
    /sw/lib/qt3/lib/libqt-mt.3.3.8.dylib
    /usr/X11/lib/libfreetype.6.3.16.dylib
    /Users/markus/Downloads/phoneme-cdc-personal-darwin-x86-qt3-x11-bin/lib/libawtjpeg.so
    /usr/lib/dyld
    /Users/markus/Downloads/phoneme-cdc-personal-darwin-x86-qt3-x11-bin/lib/personal.jar
    /Users/markus/Downloads/phoneme-cdc-personal-darwin-x86-qt3-x11-bin/democlasses.jar

    Evtl. fehlt dir da was?

  4. Sascha on June 25th, 2008 at 8:17 says:

    Hi auch. Bin ein Stück weiter gekommen. Ein Debug-Build fördert dann (unter anderem) folgende Meldung des Linkers zutage…
    dlopen(/Users/sascha/Development/src/java/phoneme/phoneme_advanced-mr2-dev-b76/cdc/build/darwin-x86-mac/lib/libqtawt_g.so, 1): Library not loaded: /usr/X11/lib/libXrandr.2.dylib
    Referenced from: /sw/lib/qt3/lib/libqt-mt.3.dylib
    Reason: Incompatible library version: libqt-mt.3.dylib requires version 4.0.0 or later, but libXrandr.2.dylib provides version 3.0.0

    Wie mir scheint ist meine X11 Installation zu alt. Woher kommt denn deine?

  5. tisoft_media on June 25th, 2008 at 8:43 says:

    Ich habe meine von http://xquartz.macosforge.org/trac/wiki

    Das ist eine etwas neuere als die, die Apple mitliefert. Daran könnte es natürlich liegen.

  6. Sascha on June 25th, 2008 at 10:16 says:

    Läuft jetzt. Vielen Dank für die Hilfe.

  7. Konstantin Läufer on November 13th, 2009 at 20:25 says:

    Seit Snow Leopard 10.6.2 mußte ich in cdc/build/darwin-x86-mac/GNUmakefile -m32 zu diesen Einstellungen hinzufügen:

    ASM_ARCH_FLAGS = -m32 -march=i686
    CC_ARCH_FLAGS = -m32 -march=i686

    LINK_ARCH_FLAGS = -m32

Leave a Reply

About

Coding==relaxing!

Language


Advertisement