Skip to main content

Help JNA (https://jna.dev.java.net/) project to provide wince-arm-ppc impl

7 replies [Last post]
yhilem
Offline
Joined: 2004-10-31
Points: 0

I have successfully build PhoneMe Advanced Foundation Profile with the target wince-arm-ppc03. I'm very happy.
However, we have a lot of native libraries (imaging, barcoding, GPRS, WiFi, etc.) that we would like to use in adopting the approach proposed by JNA.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
yhilem
Offline
Joined: 2004-10-31
Points: 0

JNA implementation is not 100% Java.
It can be said that the java part is compatible with CDC1.1.
My request for help rather conerns the native part to port to wince-arm-ppc.

Projects > jdk > jdk-incubator > jna

Current directory [jna] / trunk / jnalib / native
libffi
callback.c
dispatch.c
dispatch.h
dispatch_i386.c
dispatch_ppc.c
dispatch_sparc.s
protect.h
queue.h
testlib.c

AS IT SAID MOST WORK IS ALREADY DONE : I ask the Windows Mobile (WIN32 ARM) experts to help us provide a wince-arm-ppc implementation (NATIVE : C & ASS).

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> JNA implementation is not 100% Java.
> It can be said that the java part is compatible with CDC1.1.
> My request for help rather conerns the native part to port to wince-arm-ppc.
>
> Projects > jdk > jdk-incubator > jna
>
> Current directory [jna] / trunk / jnalib / native
> libffi
> callback.c
> dispatch.c
> dispatch.h
> dispatch_i386.c
> dispatch_ppc.c
> dispatch_sparc.s
> protect.h
> queue.h
> testlib.c
>
> AS IT SAID MOST WORK IS ALREADY DONE : I ask the Windows Mobile (WIN32 ARM) experts to help us provide a wince-arm-ppc implementation (NATIVE : C & ASS)

Since many phoneME Advanced developers know Java and Linux better than
Windows Mobile, you might want to expand your request to other forums
besides ours.

Hinkmond

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

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> I have successfully build PhoneMe Advanced Foundation Profile with the target wince-arm-ppc03. I'm very happy.
> However, we have a lot of native libraries (imaging, barcoding, GPRS, WiFi, etc.) that we would like to use in adopting the approach proposed by JNA.
>

Does JNA only use the Java ME CDC/Foundation Profile APIs? If not,
you'll have to rewrite JNA first to only use the Java ME CDC/FP APIs.

Hinkmond

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

yhilem
Offline
Joined: 2004-10-31
Points: 0

JNA ease the use of native code. The implementaion is based on JNI and libffi (Foreign Function Interface).

yhilem
Offline
Joined: 2004-10-31
Points: 0

The java part is 98% compatible with CDC/PP 1.1 (java 1.4.2 minus nio).
See : https://jna.dev.java.net/servlets/ReadMsg?listName=users&msgNo=472

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> The java part is 98% compatible with CDC/PP 1.1 (java 1.4.2 minus nio).

Yes, your job then is to make it 100% compatible with CDC/PP 1.1. Since
it is an open source project, it should be pretty straight forward for
you to do that.

Once you make JNA 100% compatible with CDC/PP 1.1, it will run on WinCE
using CDC/PP 1.1. for WinCE.

Hinkmond

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

twalljava
Offline
Joined: 2004-07-26
Points: 0

Changes for ME-compatibility are minor (I think someone posted to the JNA list to the effect that he just had to provide stub nio classes). The real task is getting libffi to configure and build for WinCE, either using mingw-ce or the MS compiler.