Skip to main content

Compile PhoneME Feature for Pocket PC (WM5)

13 replies [Last post]
tprochazka
Offline
Joined: 2004-07-04

I found this article
http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatforms...

Exist the same for Phone ME Feature version? I need MIDP/CLDC support for my MDA device. I use IBM WEME now, but it hasn't any optional JSR package. I need access to files in PSA and Location API (acces to GPS).

It's posibble compile PhoneME Feature for Windows Mobile?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
dusan
Offline
Joined: 2007-09-25

> If you want to run this on plain WinCE, you need a
> working AygShell and the Game API library (gx.dll)
> for your device. The first is usually readily
> available, but the latter not. I just reimplemented
> the used interfaces with GDI in a seperate wrapper
> DLL and got that working on an a WinCE 5/ARM device
> emulator. Copying an existing gx.dll for a particular
> device may or may not work.

Hi , my goal is to run PhoneME Advanced under Windows CE 5.0 (and later 6.0) on a MIPS II board. If I understand it correctly, I would need to re-build the wrapper you made using the SDK I generated with platform builder. Would it be possible to get your source, or at least some guidelines as how to proceed on my own.

Thanks!
Dusan

davyp
Offline
Joined: 2007-01-03

Hi Dusan,

With a bit of luck you can reuse the MIPS version from Microsoft's Pocket
PC Game API (GAPI) 1.2 library which can be obtained here:

http://www.microsoft.com/downloads/details.aspx?familyid=D9879B0E-4EF1-4...

Since the ARM version did not work in my emulator, I reimplemented only
the few methods that are used by PhoneME. In the meantime I have found
a similar implementation at

http://www.modaco.com/GAPI-GDI-wrapper-8390-t110450.html

The sources are available as well. The only issue you will probably face is
that the midlet window has a black bar at the top (the menu bar of Windows
Mobile), and that you must click about 26 pixels above a button to actually
press it. In that case, just change the blitting procedure by skipping the
first 26 lines of the source bitmap.

This also means that for any application that uses GX.DLL, the first 26 lines
of the window will not be blitted. Perhaps providing a build option for
PhoneME/WinCE to use GDI directly (instead of GX or DirectDraw) would
be a better idea?

Davy

a_pangin
Offline
Joined: 2006-10-20

> link: extra operand `/nologo'
> Try `link --help' for more information.
> make[1]: *** [../../loopgen/app/loopgen.exe] Error 1

It looks like your cygwin's link.exe comes before MS VC++ link.exe in %PATH%. Please check your environment variables.

dgiff52
Offline
Joined: 2006-06-20

> It looks like your cygwin's link.exe comes before MS
> VC++ link.exe in %PATH%. Please check your
> environment variables.

Thanks for the assistance - with this information I was able to get a little further on the compile, but it is still failing with different errors (none that I can quote at this time).

As mentioned previously, someone said make a formal request for a Windows CE and Windows Mobile port of PhoneME Feature. How would I do this? Can this message serve as that? I am also willing to sponsor this port with a little cash, if that is not against any rules.

What I need is:
A binary build of PhoneME Feature MR2 for both Windows Mobile 2003/5/6 and Windows CE 4.2/5.0. I think that is really just two builds, one for generic Win Mobile and one for Win CE. Since these OS's are related, I'm assuming even those two separate builds aren't very distinct. I would also like the build environment set so that any future needs for new JSRs are easily snuck into these builds.

So, is there a better place for this request to be placed? I am definitely anxious for a possible working implementation. Thanks for any further info.

davyp
Offline
Joined: 2007-01-03

Hi,

I noticed that the downloadable phoneME Advanced build for Windows Mobile 2005 is able to run midlets. I had some moderate success in getting pMEA to work on WM2003 and WM2005. I can rebuild the dual stack version for WM2005 just fine with VS2005, but my build compiled with eVC4++ for WM2003 does not seem to run.

Now, after merging sources from several branches (for PCSL on wince) and modifying some configuration files, I am able to compile phoneME Feature for WM2003 and WM2005. You can find the patches and some builds over here:

http://www.cs.kuleuven.ac.be/~davy/phoneme/

Note that the patches will probably break the dual stack build, as a.o. runMidlet needs to be compiled as an executable, not as a DLL. In short:
-for PCSL I have reused the WinCE sources from the "MR2 source bundle (b34) - Windows" of pMEA,
-for CLDC, no real patches are needed. The ones you find on the website are for running plain CLDC and to avoid a regression with a particular application
-for MIDP, I modified various configuration files and rewrote the runMidlet_md.c file in the jams_port folder. I am not really happy with the way I implemented it right now, but it seems to work.

If you want to run this on plain WinCE, you need a working AygShell and the Game API library (gx.dll) for your device. The first is usually readily available, but the latter not. I just reimplemented the used interfaces with GDI in a seperate wrapper DLL and got that working on an a WinCE 5/ARM device emulator. Copying an existing gx.dll for a particular device may or may not work.

I hope this helps.

Davy

Roger Brinkley

Davy,

Any chance of getting this work integrated back into phoneME Advanced
work space rather than creating your own derivation?

Binky

davyp wrote:
> Hi,
>
> I noticed that the downloadable phoneME Advanced build for Windows Mobile 2005 is able to run midlets. I had some moderate success in getting pMEA to work on WM2003 and WM2005. I can rebuild the dual stack version for WM2005 just fine with VS2005, but my build compiled with eVC4++ for WM2003 does not seem to run.
>
> Now, after merging sources from several branches (for PCSL on wince) and modifying some configuration files, I am able to compile phoneME Feature for WM2003 and WM2005. You can find the patches and some builds over here:
>
> http://www.cs.kuleuven.ac.be/~davy/phoneme/
>
> Note that the patches will probably break the dual stack build, as a.o. runMidlet needs to be compiled as an executable, not as a DLL. In short:
> -for PCSL I have reused the WinCE sources from the "MR2 source bundle (b34) - Windows" of pMEA,
> -for CLDC, no real patches are needed. The ones you find on the website are for running plain CLDC and to avoid a regression with a particular application
> -for MIDP, I modified various configuration files and rewrote the runMidlet_md.c file in the jams_port folder. I am not really happy with the way I implemented it right now, but it seems to work.
>
> If you want to run this on plain WinCE, you need a working AygShell and the Game API library (gx.dll) for your device. The first is usually readily available, but the latter not. I just reimplemented the used interfaces with GDI in a seperate wrapper DLL and got that working on an a WinCE 5/ARM device emulator. Copying an existing gx.dll for a particular device may or may not work.
>
> I hope this helps.
>
> Davy
> [Message sent by forum member 'davyp' (davyp)]
>
> http://forums.java.net/jive/thread.jspa?messageID=234532
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: feature-unsubscribe@phoneme.dev.java.net
> For additional commands, e-mail: feature-help@phoneme.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: feature-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: feature-help@phoneme.dev.java.net

davyp
Offline
Joined: 2007-01-03

> Davy,
>
> Any chance of getting this work integrated back into
> phoneME Advanced
> work space rather than creating your own derivation?
>
> Binky

Hi Binky,

phoneME Advanced already has a working MIDP implementation for Windows Mobile 2005 and
the sources I used are available in the download section of the phoneME website. As I did not
get those sources to work for Windows Mobile 2003 with eVC4, I do not have any particular
patches for phoneME Advanced.

The wince sources for PCSL from the zip are not available in pcsl/trunk though (only win32),
and I have not looked around to find out from which svn branch you can check them out.

Davy

dgiff52
Offline
Joined: 2006-06-20

I'm in a level of hurt with this situation also. I would love to have a stable MIDP/CLDC JVM for Windows CE 4.2 and 5.0 OSs. J9 (IBM's JVM) is great for Windows Mobile, but they do not compile their MIDP release for CE. NSICOM has a MIDP implementation that runs on top of their CDC JVM, but I have noticed an overall bad user experience with this setup - slowdowns, recordstore issues, etc.

I am far from a hard-core developer, so I am confused with much of this project. In the source tree for PhoneME Feature, there are directories under build such as "wince_arm". This implies to me (and once again, I am fairly clueless) that people are building or attempting to build Feature on WindowsCE/Mobile OSs. I am in fact trying to do just that. The make appears to be working, then I receive the following error:

==============================
make[1]: Entering directory `/cygdrive/f/wince/build/wince_arm/loopgen/app'
make[1]: Nothing to be done for `dependencies'.
make[1]: Leaving directory `/cygdrive/f/wince/build/wince_arm/loopgen/app'
make[1]: Entering directory `/cygdrive/f/wince/build/wince_arm/loopgen/app'
link: extra operand `/nologo'
Try `link --help' for more information.
make[1]: *** [../../loopgen/app/loopgen.exe] Error 1
make[1]: Leaving directory `/cygdrive/f/wince/build/wince_arm/loopgen/app'
make: *** [_loopgen] Error 2

I am still uncertain as to what the next steps would be to get the ball rolling on trying to get a real, concrete port onto Windows CE and Windows Mobile. Does anyone have any ideas on where to start? Maybe there is a particular guru that we can start bothering big-time and get him/her to concede defeat and assist! :)

tprochazka
Offline
Joined: 2004-07-04

I have Windows Mobile 5. IBM J9 is great but doesn'st support any optional JSR :-(

Problem is that I'm not C/C++ developer. I'm only Java developer.

Btw. I tested PhoneME on Windows (with new version of Opera Mini).It works great, also display support direct touching, but font is very ugly a has problem with international characters :-(

tingjunzh
Offline
Joined: 2007-01-12

hi,

i do the same thing too, the font is very ugly a has problem with international characters.
How to resolve this problem?

terrencebarr
Offline
Joined: 2004-03-04

What I meant is that you could take the lead on this by making a concrete proposal on what needs to be done. If you don't have the background to make such a proposal just yet you could start exploring the code to get a feeling for how it works. You might also be able to get some ideas and help from the phoneME Advanced forum.

Basically, the community need someone to drive the port. It's perfectly ok if you don't know exactly how to do it but you would get it started, find people on the forum who can share their expertise, and then slowly work your way through it with the help of other community members.

-- Terrence

terrencebarr
Offline
Joined: 2004-03-04

Unfortunately there is no ready-to-use WinCE/Windows Mobile version of phoneME Feature but several people in the community have expressed interest in working on one.

You could post an appropriate proposal to this forum to see what response you get.

-- Terrence

tprochazka
Offline
Joined: 2004-07-04

It will be great. Because actual situation of j2ME support on WM is not ideal. Only good implementation is Jeode Esmertec, but it is not for end customer.

But I don't understand what I could post to this forum? I think, that I wroted all.