Skip to main content

phoneme advanced based on gtk

33 replies [Last post]
yuzhoumao
Offline
Joined: 2007-05-08
Points: 0

Hello Everyone:

I am porting phoneme advanced to gtk+, include foundation, personal profile, midp, AMS.

I have downloaded MR1, and I found there are no gtk things in MR1.

Also I downloaded PhoneMe advanced MR2 by zip package and svn.

It is found that cdc foundation can be build successfully.

But personal profile can not be compiled together with gtk both zip package and source code from svn.

Read article and blog of Darryl Mocek I know that gtk can be supportted by phoneme advanced personal.

I want to know if SUN has plan when to release gtk version which can be compiled successfully?

Or how can I update the Personal GTK code to the v1.1 codebase

Or can I get commercial version of phoneme advanced?

Thanks
Regards

Mao

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
anu_1977
Offline
Joined: 2007-06-26
Points: 0

Thanks
Now Errors are resloved. When build with CVM_PRELOAD_LIB=false and changes in Native Code.But Still CVM Size optimized is only every time .it shows 2.8 MB only After removing JIT and some classes and native functions and make CVM_JIT=false.i want any other options like CVM_PRELOAD_LIB=false .which can give smallest binary size of CVM up to 2 MB.

Regards
Anurag

anu_1977
Offline
Joined: 2007-06-26
Points: 0

After change in make files in defs_basis_gtk.mk for compile Gtk Native code for porting GTK2.10 .i got Error while Excute CVM. CVM Compile with command line options

Make CVM_DEBUG=true AWT_IMPLEMENTATION=gtk J2ME_CLASSLIB=basis

JDK_HOME=path According to Systems.
i have done some changes in phoneme make files to compile my native code and create awt_objs directory whichs contains .o files for Example:- awt_objs/GToolkit.o. I am getting Error

in some Make files in defs_basis.mk

/****************defs_basis.mk make files changes*******************/
ifneq ($(GRAPHICS_ENV_CLASS),)
SYSTEM_PROPERTIES += "java.awt.graphicsenv=$(GRAPHICS_ENV_CLASS)\n"
endif

AWT_LIB_OBJECTS = $(patsubst %.o,awt_objs/%.o,$(AWT_LIB_OBJS))

JPEG_LIB_NAME = jpeg
JPEG_LIB_OBJECTS = $(patsubst %.o,jpeg_objs/%.o,$(JPEG_LIB_OBJS))

# If romizing then add all objects that would normally be in the shared libraries
# to the CVM.

ifeq ($(ROMIZE_LIBCLASSES), true)
CVM_OBJECTS += $(AWT_LIB_OBJECTS) $(JPEG_LIB_OBJECTS)
LINKLIBS += $(AWT_LIB_LIBS) $(JPEG_LIB_LIBS)
BUILTIN_LIBS += $(AWT_LIB_NAME) $(JPEG_LIB_NAME)
endif

/****************rules_basis.mk make files changes*******************/

# Rule to create AWT objects needed by the AWT library

awt_objs/%.o: %.c
@echo "... $@"
@mkdir -p awt_objs
$(AT)$(CC) $(AWT_CPPFLAGS) $(CFLAGS) -o $@ $<
ifeq ($(GENERATEMAKEFILES), true)
@$(CC) $(CCDEPEND) $(AWT_CPPFLAGS) $(CPPFLAGS) $< 2> /dev/null | \
sed 's!$*\.o!$(dir $@)&!g' > $(@:.o=.d)
endif

# Rule to create JPEG objects needed by the JPEG library

jpeg_objs/%.o: %.c
@echo "... $@"
@mkdir -p jpeg_objs
$(CC_RULE)
ifeq ($(GENERATEMAKEFILES), true)
@$(CC) $(CCDEPEND) $(CPPFLAGS) $< 2> /dev/null | \
sed 's!$*\.o!$(dir $@)&!g' > $(@:.o=.d)
endif

files := $(foreach file, $(wildcard awt_objs/*.d), $(file))
ifneq ($(strip $(files)),)
include $(files)
endif

files := $(foreach file, $(wildcard jpeg_objs/*.d), $(file))
ifneq ($(strip $(files)),)
include $(files)
endif

/*************************Error***************************************************//

05:30:00
make: ../../src/share/basis/demo/IXCDemo/ixcXlets/clientXlet/PlaneClient.java: Timestamp out of range; substituting 1970-01-01 05:30:00
make: ../../src/share/basis/demo/IXCDemo/ixcXlets/serverXlet/PlaneImpl.java: Timestamp out of range; substituting 1970-01-01
05:30:00
make: ../../src/share/basis/demo/IXCDemo/ixcXlets/serverXlet/PlaneImpl.java: Timestamp out of range; substituting 1970-01-01
05:30:00
make: ../../src/share/basis/demo/IXCDemo/ixcXlets/serverXlet/PlaneServer.java: Timestamp out of range; substituting 1970-01-01 05:30:00
make: ../../src/share/basis/demo/IXCDemo/ixcXlets/serverXlet/PlaneServer.java: Timestamp out of range; substituting 1970-01-01 05:30:00
make: ../../src/share/basis/demo/IXCDemo/IXCMain.java: Timestamp out of range; substituting 1970-01-01 05:30:00
make: ../../src/share/basis/demo/IXCDemo/IXCMain.java: Timestamp out of range; substituting 1970-01-01 05:30:00
Compiling demo classes...
... ../../build/linux-x86-generic/./democlasses.jar
... generating jni class headers
... ../../build/linux-x86-generic/./classes.jcc/GenOpcodes.class
Note: ../../src/share/javavm/jcc/util/BufferedPrintStream.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
... ../../src/share/javavm/include/opcodes.list
... ../../build/linux-x86-generic/./classes.jcc/JavaCodeCompact.class
Note: ../../src/share/javavm/jcc/util/LinkerUtil.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
jcc romjava.c files
960 Total Classes
... of which 201 classes have static initializers
(9451/13735 quickening sites)
8742 method blocks
... of which 8742 blocks are writable
... for 860 classes
... of which 2951 have checkinit opcodes in the code
435312 bytes of Java code
1570 catch frames
3895 field blocks
943 inner class attribute entries
9564 constant pool entries
3733 Java strings
make: ../../src/share/basis/native/awt/gtk/ImageRepresentation.c: Timestamp out of range; substituting 1970-01-01 05:30:00
make: ../../src/share/basis/native/awt/gtk/ImageRepresentation.c: Timestamp out of range; substituting 1970-01-01 05:30:00
... awt_objs/ImageRepresentation.o
../../src/share/basis/native/awt/gtk/ImageRepresentation.c:6:42: java_awt_image_ImageObserver.h: No such file or directory
../../src/share/basis/native/awt/gtk/ImageRepresentation.c:22: parse error before "jint"
../../src/share/basis/native/awt/gtk/ImageRepresentation.c:22: warning: no semicolon at end of struct or union
../../src/share/basis/native/awt/gtk/ImageRepresentation.c:34: parse error before "rgbBufferSize"
../../src/share/basis/native/awt/gtk/ImageRepresentation.c:34: warning: data definition has no type or storage class
../../src/share/basis/native/awt/gtk/ImageRepresentation.c:40: parse error before '}' token
../../src/share/basis/native/awt/gtk/ImageRepresentation.c:40: warning: data definition has no type or storage class
make: *** [awt_objs/ImageRepresentation.o] Error

cjplummer
Offline
Joined: 2006-10-16
Points: 0

javah should have generated java_awt_image_ImageObserve.rh, but apparently did not. I just looked at a basis build I have, which also includes ImageObserver, and the header is missing from it also (it should be in the generated/jni directory of the build directory). I can see that ImageObserver did get passed to javah, so my guess is that javah ignored it because ImageObserver contains no native methods, only a bunch of static final fields.

Are you using these static final fields in ImageRepresentation.c. If not, then just don't include the header. If you are, try building with CVM_PRELOAD_LIB=true. This will cause JCC to generate the jni headers and javah won't be used. I tried this and it seems to work. However, it seems there should be a way to get javah to do its job here.

BTW, I don't know that your changes to rules_basis.mk and defs_basis.mk are correct. We got rid of awt_objs and jpeg_objs at some point during CDC 1.1, so I'm not sure why you added them. Perhaps you are grabbing makefiles from CDC 1.0 that still references these directories. You should try to get things working without the awt_objs and jpeg_objs related changes.

Chris

anu_1977
Offline
Joined: 2007-06-26
Points: 0

Hello Sir
i have Queries Related to CVM Size. When i excute CVM with command line options
Make CVM_DEBUG=true AWT_IMPLEMENTATION=gtk J2ME_CLASSLIB=basis. The size of CVM is 13.5 MB. and when i used
Make CVM_PRELOAD=true AWT_IMPLEMENTATION=gtk J2ME_CLASSLIB=basis. The size of CVM is 2.9MB. I want scale down CVM size up to 1MB.
Regards
Anurag

cjplummer
Offline
Joined: 2006-10-16
Points: 0

You can try CVM_PRELOAD_LIB=false. This will give you the smallest binary, but it won't be anywhere close to 1MB. In fact it looks like you are already building this way since you mistakenly used CVM_PRELOAD=true, which has no affect. I built with CVM_PRELOAD_LIB=false and got a cvm file that is close to 3mb. After running strip it was down to less than 2.3mb. Don't forget you also have the jar and .so files in the lib directory.

Chris

> Hello Sir
> i have Queries Related to CVM Size. When i excute CVM
> with command line options
> Make CVM_DEBUG=true AWT_IMPLEMENTATION=gtk
> J2ME_CLASSLIB=basis. The size of CVM is 13.5 MB. and
> when i used
> Make CVM_PRELOAD=true AWT_IMPLEMENTATION=gtk
> J2ME_CLASSLIB=basis. The size of CVM is 2.9MB. I want
> scale down CVM size up to 1MB.
> Regards
> Anurag

anu_1977
Offline
Joined: 2007-06-26
Points: 0

Hello Sir
I have Tried CVM_PRELOAD_LIB=false and CVM_PRELOAD=true. The CVM size is up 2.9 MB. and .so files szie is 145K(gtk.so) and 69K for (jpeg.so) .and jar files is 600K.After removing jar files size 600K.The CVM size will be 2.8MB.
how i can run . After running strip it was down to less than 2.3mb. like
make CVM_PRELOAD_LIB=false CVM_PRELOAD=true J2ME_CLASSLIB=basis JDK_HOME=According to System. CVM Size reduce less than 2 MB including .so only.

Regards
Anurag

anu_1977
Offline
Joined: 2007-06-26
Points: 0

Hello Sir
I have Tried CVM_PRELOAD_LIB=false and CVM_PRELOAD=true. The CVM size is up 2.9 MB. and .so files szie is 145K(gtk.so) and 69K for (jpeg.so) .and jar files is 600K.After removing jar files size 600K.The CVM size will be 2.8MB.
how can i run "running strip" CVM size up to less than 2.3mb.?
Regards
Anurag

cjplummer
Offline
Joined: 2006-10-16
Points: 0

"strip" is a build tool that should be in same directory as the gcc you used to build cvm. Just run in on the cvm binary.

Chris

anu_1977
Offline
Joined: 2007-06-26
Points: 0

am optimzing the phoneme code for CVM size up to 2MB.So i want remove tools directory form phoneme_advanced_mr 2\ tools which contains (1)checkreports(2)\configurator(3)makefiles etc. So when i optimzed phoneme code for CVM size up to 2MB to remove phoneme_advanced_mr 2\ tools its shows Error. I want compile phoneme_advanced_mr 2 src with only with build and src directory. and make CVM size less than2 MB.I have tried CVM_PRELOAD_LIB=false. J2ME_CLASSLIB=basis but CVM size was 2.9MB.

Back to Thread List
Threads: [ Previous | Next ]

Hinkmond Wong

Hi Anu,

phonemeadvanced@mobileandembedded.org wrote:
> After change in make files in defs_basis_gtk.mk for compile Gtk Native code for porting GTK2.10 .i got Error while Excute CVM. CVM Compile Successfully using
>
> Make CVM_DEBUG=true AWT_IMPLEMENTATION=gtk J2ME_CLASSLIB=basis
>
>...
> SunToolkit()
>
>
> after SunToolkit()
>
> /usr/local/lib/libgtk-directfb-2.0.so.0: undefined symbol: g_hash_table_ref

This looks like a problem with your gcc compiler combined with your
GTK/DirectFB build.

You might want to check with someone that works on GTK, like:

http://www.gtkforums.com/

Hinkmond

> java.lang.UnsatisfiedLinkError: /root/phoneme_advanced_mr2/cdc/build/linux-x86-generic/lib/libgtkawt_g.so
> at java.lang.ClassLoader$NativeLibrary.load(Ljava/lang/String;)V(Native Method)
> at java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/lang/String;ZZ)Ljava/lang/Object;(ClassLoader.java:1717)
> at java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/io/File;Z)Ljava/lang/Object;(ClassLoader.java:1755)
> at java.lang.ClassLoader.loadLibraryInternal(Ljava/lang/Class;Ljava/lang/String;ZZ)Ljava/lang/Object;(ClassLoader.java:1615)
> at java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V(ClassLoader.java:1521)
> at java.lang.Runtime.loadLibrary0(Ljava/lang/Class;Ljava/lang/String;)V(Runtime.java:878)
> at java.lang.System.loadLibrary(Ljava/lang/String;)V(System.java:922)
> at sun.security.action.LoadLibraryAction.run()Ljava/lang/Object;(LoadLibraryAction.java:70)
> at java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;(AccessController.java:299)
> at java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;(AccessController.java:273)
> at java.awt.GdkGraphicsEnvironment.()V(GdkGraphicsEnvironment.java:36)
> at java.awt.GToolkit.()V(GToolkit.java:44)
> at java.awt.Toolkit$1.run()Ljava/lang/Object;(Toolkit.java:191)
> at java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;(AccessController.java:299)
> at java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;(AccessController.java:273)
> at java.awt.Toolkit.getDefaultToolkit()Ljava/awt/Toolkit;(Toolkit.java:183)
> at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment()Ljava/awt/GraphicsEnvironment;(GraphicsEnvironment.java:67)
> at java.awt.Window.(Ljava/awt/GraphicsConfiguration;)V(Window.java:214)
> at java.awt.Frame.(Ljava/lang/String;Ljava/awt/GraphicsConfiguration;)V(Frame.java:298)
> at java.awt.Frame.()V(Frame.java:247)
> at basis.DemoFrame.(Ljava/util/ArrayList;Ljava/awt/Dimension;)V(DemoFrame.java:124)
> at basis.DemoFrame.main([Ljava/lang/String;)V(DemoFrame.java:56)
> at sun.misc.CVM.runMain()V(CVM.java:514)
> [Message sent by forum member 'anu_1977' (anu_1977)]

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

anu_1977
Offline
Joined: 2007-06-26
Points: 0

After change in make files in defs_basis_gtk.mk for compile Gtk Native code for porting GTK2.10 .i got Error while Excute CVM. CVM Compile Successfully using

Make CVM_DEBUG=true AWT_IMPLEMENTATION=gtk J2ME_CLASSLIB=basis

JDK_HOME=path According to Systems.

/****************** Make file changes******************//
GTK_CONFIG= pkg-config gtk+-directfb-2.0 --libs --cflags

PROFILE_INCLUDE_DIRS += $(patsubst -I%,%,$(shell $(GTK_CONFIG) --cflags))
AWT_LIB_LIBS += $(shell $(GTK_CONFIG) --libs)
****************** Make file changes******************//
/***************Error **********************************//

[1] 11124
[root@localhost linux-x86-generic]# bin/cvm -cp democlasses.jar basis.DemoFrame
CVM Configuration:
Java stack chunk size (stackChunkSize): 1024
Java stack minimum size (stackMinSize): 1024
Java stack maximum size (stackMaxSize): 131072
GC[SS]: Initialized semi-space gen for generational GC
Size of *each* semispace in bytes=1048576
Limits of generation = [0x40068000,0x40268000)
First semispace = [0x40068000,0x40168000)
Second semispace = [0x40168000,0x40268000)
GC[MC]: Initialized mark-compact gen for generational GC
Size of the space in bytes=1048576
Limits of generation = [0x40268000,0x40368000)
GC[generational]: Sizes
youngGen = min 1048576 start 1048576 max 1048576
oldGen = min 1048576 start 1048576 max 4194304
overall = min 2097152 start 2097152 max 5242880
GC[generational]: Auxiliary data structures
heapBaseMemoryArea=[0x40068000,0x40668200)
cardTable=[0x40668000,0x4066b000)
objectHeaderTable=[0x4066b000,0x4066e000)
summaryTable=[0x4066e000,0x4067a000)
Changed DemoFrame main()

DemoFrame main()parse size=java.awt.Dimension[width=240,height=320]
Changed DemoFrame main() after parse demos size=
5

Container()

Window(GraphicsConfiguration gc)

Window(GraphicsConfiguration gc) checking gc==NULL

before nGraphicsEnvironment getLocalGraphicsEnvironment

Toolkit getDefaultToolkit()

Toolkit getDefaultToolkit() befor Object run()

SunToolkit()

after SunToolkit()

/usr/local/lib/libgtk-directfb-2.0.so.0: undefined symbol: g_hash_table_ref
java.lang.UnsatisfiedLinkError: /root/phoneme_advanced_mr2/cdc/build/linux-x86-generic/lib/libgtkawt_g.so
at java.lang.ClassLoader$NativeLibrary.load(Ljava/lang/String;)V(Native Method)
at java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/lang/String;ZZ)Ljava/lang/Object;(ClassLoader.java:1717)
at java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/io/File;Z)Ljava/lang/Object;(ClassLoader.java:1755)
at java.lang.ClassLoader.loadLibraryInternal(Ljava/lang/Class;Ljava/lang/String;ZZ)Ljava/lang/Object;(ClassLoader.java:1615)
at java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V(ClassLoader.java:1521)
at java.lang.Runtime.loadLibrary0(Ljava/lang/Class;Ljava/lang/String;)V(Runtime.java:878)
at java.lang.System.loadLibrary(Ljava/lang/String;)V(System.java:922)
at sun.security.action.LoadLibraryAction.run()Ljava/lang/Object;(LoadLibraryAction.java:70)
at java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;(AccessController.java:299)
at java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;(AccessController.java:273)
at java.awt.GdkGraphicsEnvironment.()V(GdkGraphicsEnvironment.java:36)
at java.awt.GToolkit.()V(GToolkit.java:44)
at java.awt.Toolkit$1.run()Ljava/lang/Object;(Toolkit.java:191)
at java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;(AccessController.java:299)
at java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;(AccessController.java:273)
at java.awt.Toolkit.getDefaultToolkit()Ljava/awt/Toolkit;(Toolkit.java:183)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment()Ljava/awt/GraphicsEnvironment;(GraphicsEnvironment.java:67)
at java.awt.Window.(Ljava/awt/GraphicsConfiguration;)V(Window.java:214)
at java.awt.Frame.(Ljava/lang/String;Ljava/awt/GraphicsConfiguration;)V(Frame.java:298)
at java.awt.Frame.()V(Frame.java:247)
at basis.DemoFrame.(Ljava/util/ArrayList;Ljava/awt/Dimension;)V(DemoFrame.java:124)
at basis.DemoFrame.main([Ljava/lang/String;)V(DemoFrame.java:56)
at sun.misc.CVM.runMain()V(CVM.java:514)

cjplummer
Offline
Joined: 2006-10-16
Points: 0

I believe this is a gtk installation problem and has nothing to do with phoneME Advanced. I would suggest googling for help. Here's one link I found, but it may not match your installation:

http://forums.fedoraforum.org/showthread.php?t=135859

Chris

sfitzjava
Offline
Joined: 2003-06-15
Points: 0

I read on a forum that you (or someone using the sig "jonek" so I'm assuming you), got the Phone ME to build for 770. However the question posted to the forums, and that I have, how to setup java to run in the scratchbox under a SDK_ARMEL target?

Did this ever get figured out?

Thanks
-Shawn

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> I read on a forum that you (or someone using the sig "jonek" so I'm assuming you), got the Phone ME to build for 770. However the question posted to the forums, and that I have, how to setup java to run in the scratchbox under a SDK_ARMEL target?
>
> Did this ever get figured out?
>

Hi Shawn,

If you're asking me, I have no idea. I'm not familiar with scratchbox
enough to understand how to run it under a SDK_ARMEL target. Maybe,
Johannes Eickhold (jonek) knows???

Hinkmond

> Thanks
> -Shawn
>
>

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

Johannes Eickhold

On Tue, 2007-07-03 at 16:12 -0700, Hinkmond Wong wrote:
> phonemeadvanced@mobileandembedded.org wrote: > I read on a forum that
> you (or someone using the sig "jonek" so I'm assuming you), got the
> Phone ME to build for 770. However the question posted to the forums,
> and that I have, how to setup java to run in the scratchbox under a
> SDK_ARMEL target? > > Did this ever get figured out? >

[...]

> If you're asking me, I have no idea. I'm not familiar with scratchbox
> enough to understand how to run it under a SDK_ARMEL target. Maybe,
> Johannes Eickhold (jonek) knows???

Hi,

scratchbox is just an environment that helps you when developing native
(e.g. C, C++, Assembler) applications. In the case of Nokia internet
tablets you can easily switch between ARMEL and PC targets. Under this
targets you can build AND run applications for the respective platform.

With Java you don't need this anymore (which is a very nice fact!). Just
compile the CVM for Linux and your internet tablet and run the same
class files on both. That's it.

Jonek

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

Johannes Eickhold

On Thu, 2007-09-13 at 14:24 +0200, Johannes Eickhold wrote:
> scratchbox is just an environment that helps you when developing native
> (e.g. C, C++, Assembler) applications. In the case of Nokia internet
> tablets you can easily switch between ARMEL and PC targets. Under this
> targets you can build AND run applications for the respective platform.

Hmmmm *think again* ... ok there is something missing.

The ARMEL target in sbox is intended for easy crosscompilation [1].

The PC target in sbox exists for 'emulation' as you have exactly the
same libs available like under the ARMEL target. If you are using this
in conjunction with something like xephyr [2], you get a nice emulator
for your internet tablet. This may help when it comes to low level
(hardware features like softkeyboard textinput or hildon UI framwork)
integration into the VM. In some cases it may also help when developing
Java apps with GUI for an internet tablet.

I wonder if some kind of generic 'target device emulator' is available
for phoneME advanced.

> With Java you don't need this anymore (which is a very nice fact!). Just
> compile the CVM for Linux and your internet tablet and run the same
> class files on both. That's it.

I only considered non-GUI apps here.

Jonek

[1]
http://maemo.org/development/documentation/tutorials/Maemo_tutorial_bora...
[2]
http://maemo.org/development/documentation/tutorials/Maemo_tutorial_bora...

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

yuzhoumao
Offline
Joined: 2007-05-08
Points: 0

All the errors have been removed now by the branch of Hinkmond Wong.
svn co
https://phoneme.dev.java.net/svn/phoneme/components/cd
c/branches/hinkmond-pp-gtk
cdc

But I can not svn ci the change.

Hi Hinkmond, how can I ci the change?

Regards
Thanks
Mao

> Hi Mao,
>
> phonemeadvanced@mobileandembedded.org wrote:
> > Hi Hinkmond:
> >
> > Could you give us some information about your
> porting or your plan?
> >
> > And it is better you could divide the whole work
> into small ones, and give part of work to other
> people( maybe me or others),
>
> That's a good idea. (I currently am working on
> another higher priority
> task so cannot spend full time on the GTK porting).
>
> For anyone who wants to help, the first step is to
> get to the
> compilation errors that I see currently.
>
> On a Linux/x86 PC, do the following:
>
> mkdir pp-gtk
> cd pp-gtk
>
> svn co
> https://phoneme.dev.java.net/svn/phoneme/components/to
> ols/trunk tools
>
> svn co
> https://phoneme.dev.java.net/svn/phoneme/components/cd
> c/branches/hinkmond-pp-gtk
> cdc
>
> cd cdc/build/linux-x86-generic
>
> make J2ME_CLASSLIB=personal AWT_PEERSET=gtk
>
> (You should see 19 compilation errors of class files
> that need updating
> to the new PP 1.1 spec.)
>
> This part is easy. For each 19 error, just add the
> missing API method
> into the class file that shows the error and keep the
> method empty for
> now (just stub it out).
>
> Let me know if you get to the point of not having any
> compilation errors.
>
>
> > So this can speed up the progress:)
>
> This is the good part of open source. Let me know
> what progress you
> get. I'll also let you know when I've put back new
> changes.
>
>
> Thanks,
> Hinkmond
>
> ------------------------------------------------------
> ---------------
> To unsubscribe, e-mail:
> advanced-unsubscribe@phoneme.dev.java.net
> For additional commands, e-mail:
> advanced-help@phoneme.dev.java.net

hinkmond
Offline
Joined: 2003-12-01
Points: 0

Hi Mao,

We are ready for your changes now. Can you send me your diffs?

Hinkmond

Johannes Eickhold

On Wed, 2007-09-05 at 16:09 -0700, phonemeadvanced@mobileandembedded.org
wrote:
> Hi Mao,
>
> We are ready for your changes now. Can you send me your diffs?

Hi Hinkmond,

can you please give a status on GTK support?

Jonek

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

Hinkmond Wong

Johannes Eickhold wrote:
> On Wed, 2007-09-05 at 16:09 -0700, phonemeadvanced@mobileandembedded.org
> wrote:
>
>> Hi Mao,
>>
>> We are ready for your changes now. Can you send me your diffs?
>>
>
> Hi Hinkmond,
>
> can you please give a status on GTK support?
>
>

Hi Johannes,

I've asked Mao for the code changes so that I can commit it to the tree.

http://forums.java.net/jive/thread.jspa?threadID=26341

No response yet.

If you or anyone else has the code changes for the Linux/GTK port please
sign the SCA and send me the code diffs so that I can put it back to the
repository.

See how to sign the SCA:
https://mobileandembedded.dev.java.net/content/sca.html

Send code diffs to:
hinkmond@dev.java.net

Thanks,

Hinkmond

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

Hinkmond Wong

Hi Mao,

phonemeadvanced@mobileandembedded.org wrote:
> Hi Hinkmond:
>
> Could you give us some information about your porting or your plan?
>
> And it is better you could divide the whole work into small ones, and give part of work to other people( maybe me or others),

That's a good idea. (I currently am working on another higher priority
task so cannot spend full time on the GTK porting).

For anyone who wants to help, the first step is to get to the
compilation errors that I see currently.

On a Linux/x86 PC, do the following:

mkdir pp-gtk
cd pp-gtk

svn co https://phoneme.dev.java.net/svn/phoneme/components/tools/trunk tools

svn co
https://phoneme.dev.java.net/svn/phoneme/components/cdc/branches/hinkmon...
cdc

cd cdc/build/linux-x86-generic

make J2ME_CLASSLIB=personal AWT_PEERSET=gtk

(You should see 19 compilation errors of class files that need updating
to the new PP 1.1 spec.)

This part is easy. For each 19 error, just add the missing API method
into the class file that shows the error and keep the method empty for
now (just stub it out).

Let me know if you get to the point of not having any compilation errors.

> So this can speed up the progress:)

This is the good part of open source. Let me know what progress you
get. I'll also let you know when I've put back new changes.

Thanks,
Hinkmond

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

simonjlewis
Offline
Joined: 2003-06-10
Points: 0

Hi Hinkmond,

I have the gtk peer classes compiling again. Let me know if you would like my changes

regards

simon

Hinkmond Wong

Hi Simon,

phonemeadvanced@mobileandembedded.org wrote:
> Hi Hinkmond,
>
> I have the gtk peer classes compiling again. Let me know if you would like my changes
>
> regards
>
> simon
>

That is great news! Can you please fill out and submit the Sun
Contributor Agreement at the following location?

https://mobileandembedded.dev.java.net/content/sca.html

After you have signed it, please let me know which way you send it in.

When that is confirmed that you have sent it, I'd like to see your diff
changes and commit your changes on your behalf. At that point you will
be credited as being a source code contributed to the phoneME project
and on your way to getting write-access as a full phoneME Developer.

Let me know if you have any questions.

Thanks again for your help!
Hinkmond

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

yuzhoumao
Offline
Joined: 2007-05-08
Points: 0

Hi Hinkmond:

Could you give us some information about your porting or your plan?

And it is better you could divide the whole work into small ones, and give part of work to other people( maybe me or others),

So this can speed up the progress:)

Regards
Mao

Johannes Eickhold

On Tue, 2007-05-15 at 19:01 -0700, phonemeadvanced@mobileandembedded.org
wrote:
> Hi Hinkmond:

Hi Hinkmond and Mao,

> Could you give us some information about your porting or your plan?

I'm also very interested in the port of phoneME advanced to the Nokia
N800!

@Hinkmond:
1. Maybe this is worth a blog entry? (You requested people to show
interest in special topics IIRC. I'm hereby doing this! :-) )
2. I tried to run my build of MR2 for the 770 on my N800 (FP only, see
[1]). It successfully executed the test suite.
3. Could you update the Nokia 770 wiki page [2]?
4. Do you plan special support of Hildon in this port?
5. Do you plan JSR82 support through BlueZ BT-stack on the N800?
6. I think it is very interesting to know for the maemo community that
Sun offically (?) has put resources on a N800/maemo port of phoneME
advanced. Maybe you can write to the maemo-developers mailing list?

> And it is better you could divide the whole work into small ones, and
> give part of work to other people( maybe me or others), So this can
> speed up the progress:)

Yay, this would be nice. I know from a couple of people who showed
interest in such a port. They come from the maemo community [3] as well
as from the OpenMoko community [4, 5].

Kind regards,
Jonek.

[1] http://i30www.ira.uka.de/p2p/ambicomp/phoneME_Nokia770/
[2]
http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatforms...
[3] http://maemo.org/community/wiki/JavaLanguage (bad state)
[4] http://projects.openmoko.org/projects/java-pkg/
[5] http://tech.groups.yahoo.com/group/java-pkg/message/15

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

Hinkmond Wong

Hi Johannes,

> I'm also very interested in the port of phoneME advanced to the Nokia
> N800!
>
> @Hinkmond:
> 1. Maybe this is worth a blog entry? (You requested people to show
> interest in special topics IIRC. I'm hereby doing this! :-) )
> 2. I tried to run my build of MR2 for the 770 on my N800 (FP only, see
> [1]). It successfully executed the test suite.
> 3. Could you update the Nokia 770 wiki page [2]?

Just sent an e-mail on this. There is nothing to report just yet, just
the 19 compilation errors you should see using my branch (see previous
e-mail).

> 4. Do you plan special support of Hildon in this port?

What is Hildon? Is that the next Nokia N800 release?

> 5. Do you plan JSR82 support through BlueZ BT-stack on the N800?

No, just PP on GTK. But, if you have BlueZ BT-stack, porting JSR 82 to
that should not be too bad. That's a separate task though.

> 6. I think it is very interesting to know for the maemo community that
> Sun offically (?) has put resources on a N800/maemo port of phoneME
> advanced. Maybe you can write to the maemo-developers mailing list?

No, there are no official resources on the N800/maemo project. We only
have 20% of our time to spend on open source issues. The PP on GTK is
one of the many issues for Java ME open source.

>> And it is better you could divide the whole work into small ones, and
>> give part of work to other people( maybe me or others), So this can
>> speed up the progress:)
>
> Yay, this would be nice. I know from a couple of people who showed
> interest in such a port. They come from the maemo community [3] as well
> as from the OpenMoko community [4, 5].

Please have them try to see if they can get to the same place I am in
the last e-mail

This is great to be able to get help from you and the other developer's
from maemo! ;-)

Thanks,
Hinkmond

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

Johannes Eickhold

Hello Hinkmond!

On Wed, 2007-05-16 at 08:02 -0700, Hinkmond Wong wrote:
> > 4. Do you plan special support of Hildon in this port?
>
> What is Hildon?

Hildon (or more precise Hildon UI) is an adaption/wrapper/modification
of GTK for stylus/touch screen based tablets like the Nokia 770 and
N800. See this link for more detailed information:

- How Hildon fits into maemo:
http://maemo.org/development/documentation/tutorials/Maemo_tutorial_bora...

- Hildon doxygen:
http://maemo.org/api_refs/3.0/hildon-docs/hildon-libs/index.html

If I understand it correctly, plain GTK support isn't enough to enable
Java GUI on the Nokia internet tablets because it would not integrate
seamlessly with the rest of the UI.

> > 5. Do you plan JSR82 support through BlueZ BT-stack on the N800?
>
> No, just PP on GTK. But, if you have BlueZ BT-stack, porting JSR 82 to
> that should not be too bad. That's a separate task though.

It's not me having the BlueZ stack but the Linux running on the Nokia
internet tablets. You can consider BlueZ an integral part of their
software (like it is on most Linux distributions theses days).

An GPL JSR-82 implementation using BlueZ is:

http://sourceforge.net/projects/avetanabt/

> > 6. I think it is very interesting to know for the maemo community that
> > Sun offically (?) has put resources on a N800/maemo port of phoneME
> > advanced. Maybe you can write to the maemo-developers mailing list?
>
> No, there are no official resources on the N800/maemo project. We only
> have 20% of our time to spend on open source issues. The PP on GTK is
> one of the many issues for Java ME open source.

Nice! Just like Google does?

Cheers,
Jonek.

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

Hinkmond Wong

Hi Johannes,

Johannes Eickhold wrote:
>
>> What is Hildon?
>>
>
> Hildon (or more precise Hildon UI) is an adaption/wrapper/modification
> of GTK for stylus/touch screen based tablets like the Nokia 770 and
> N800. See this link for more detailed information:
>
> - How Hildon fits into maemo:
> http://maemo.org/development/documentation/tutorials/Maemo_tutorial_bora...
>
> - Hildon doxygen:
> http://maemo.org/api_refs/3.0/hildon-docs/hildon-libs/index.html
>
> If I understand it correctly, plain GTK support isn't enough to enable
> Java GUI on the Nokia internet tablets because it would not integrate
> seamlessly with the rest of the UI.
>

Thanks very much for the pointers. This helps. I'd like to see the
first part of the porting effort center on GTK widgets-only, since we
can then use the generic GTK port of pMEA Personal Profile to run on
other GTK devices (especially like the OpenMoko cell phone).

Then if you and others want, you can branch off the generic GTK port to
be Hildon-specific for the Nokia N770/N800. This way we can still get
broad coverage of the GTK port for other GTK devices and even
Linux/x86/GTK, which having another branch that takes advantage of
special Nokia N770/N800 features.

Does this sound OK with you (and others on this list)?

Thanks,
Hinkmond

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

anu_1977
Offline
Joined: 2007-06-26
Points: 0

Hi All,
I am working on the porting of GTK 2.10 on phoneMe advanced mr2.when i try to run the DemoFrame after making some changes in native code as well as in java code.I got the following error.
Assertion failed at line 900 in ../../src/share/javavm/runtime/jni_impl.c: jfb != NULL
I am Runing CVM_DEBUG=true AWT_IMPLEMETATION=gtk J2ME_CLASSLIB=basis .

Hinkmond Wong

Hi anu_1977,

phonemeadvanced@mobileandembedded.org wrote:
> Hi All,
> I am working on the porting of GTK 2.10 on phoneMe advanced mr2.when i try to run the DemoFrame after making some changes in native code as well as in java code.I got the following error.
> Assertion failed at line 900 in ../../src/share/javavm/runtime/jni_impl.c: jfb != NULL
> I am Runing CVM_DEBUG=true AWT_IMPLEMETATION=gtk J2ME_CLASSLIB=basis .
> [Message sent by forum member 'anu_1977' (anu_1977)]
>

Please see my response to the same topic at this thread:

http://forums.java.net/jive/message.jspa?messageID=238392#238505

Thanks,

Hinkmond

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

anu_1977
Offline
Joined: 2007-06-26
Points: 0

Hello
When I make CVM_DEBUG=false CVM_PRELOAD=true AWT_IMPLEMETATION=gtk J2ME_CLASSLIB=basis. Then Assertion Error is resloved.Still Some SetIntfield is not Working.

Hinkmond Wong

Hi Mao,

I'm also working on a phoneME Personal Profile port for the Nokia N800.
Since the code will be shared code, you can participate in helping with
this port so that you can use it for your purpose also.

The GTK port branch I created is at:

https://phoneme.dev.java.net/svn/phoneme/components/cdc/branches/hinkmon...

Watch the commit log messages there for the status. I haven't started
committing the changes yet, so you will get compilation errors.

Here is the build command you should be using:
cdc cdc/build/
make J2ME_CLASSLIB=personal AWT_PEERSET=gtk ...
(You should see 19 class build errors currently)

I'll let you know more as we add to it.

Thanks,

Hinkmond

phonemeadvanced@mobileandembedded.org wrote:
> Hello Everyone:
>
> I am porting phoneme advanced to gtk+, include foundation, personal profile, midp, AMS.
>
> I have downloaded MR1, and I found there are no gtk things in MR1.
>
> Also I downloaded PhoneMe advanced MR2 by zip package and svn.
>
> It is found that cdc foundation can be build successfully.
>
> But personal profile can not be compiled together with gtk both zip package and source code from svn.
>
> Read article and blog of Darryl Mocek I know that gtk can be supportted by phoneme advanced personal.
>
> I want to know if SUN has plan when to release gtk version which can be compiled successfully?
>
> Or how can I update the Personal GTK code to the v1.1 codebase
>
> Or can I get commercial version of phoneme advanced?
>
> Thanks
> Regards
>
> Mao
> [Message sent by forum member 'yuzhoumao' (yuzhoumao)]
>
> http://forums.java.net/jive/thread.jspa?messageID=216752
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
> For additional commands, e-mail: advanced-help@phoneme.dev.java.net
>
>

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

yuzhoumao
Offline
Joined: 2007-05-08
Points: 0

Hi Hinkmond:

Very glad to receive your reply so quickly.

And I am glad to join your work to finish gtk peer.

Regards
Mao

> Hi Mao,
>
> I'm also working on a phoneME Personal Profile port
> for the Nokia N800.
> Since the code will be shared code, you can
> participate in helping with
> this port so that you can use it for your purpose
> also.
>
> The GTK port branch I created is at:
>
>
> tps://phoneme.dev.java.net/svn/phoneme/components/cdc/
> branches/hinkmond-pp-gtk
>
> Watch the commit log messages there for the status.
> I haven't started
> ommitting the changes yet, so you will get
> compilation errors.
>
> Here is the build command you should be using:
> cdc cdc/build/
> make J2ME_CLASSLIB=personal AWT_PEERSET=gtk ...
> (You should see 19 class build errors currently)
>
> I'll let you know more as we add to it.
>
> Thanks,
>
> Hinkmond
>
> phonemeadvanced@mobileandembedded.org wrote:
> > Hello Everyone:
> >
> > I am porting phoneme advanced to gtk+, include
> foundation, personal profile, midp, AMS.
> >
> > I have downloaded MR1, and I found there are no gtk
> things in MR1.
> >
> > Also I downloaded PhoneMe advanced MR2 by zip
> package and svn.
> >
> > It is found that cdc foundation can be build
> successfully.
> >
> > But personal profile can not be compiled together
> with gtk both zip package and source code from svn.
> >
> > Read article and blog of Darryl Mocek I know that
> gtk can be supportted by phoneme advanced personal.
> >
> > I want to know if SUN has plan when to release gtk
> version which can be compiled successfully?
> >
> > Or how can I update the Personal GTK code to the
> v1.1 codebase
> >
> > Or can I get commercial version of phoneme
> advanced?
> >
> > Thanks
> > Regards
> >
> > Mao
> > [Message sent by forum member 'yuzhoumao'
> (yuzhoumao)]
> >
> >
> http://forums.java.net/jive/thread.jspa?messageID=2167
> 52
> >
> >
> ------------------------------------------------------
> ---------------
> > To unsubscribe, e-mail:
> advanced-unsubscribe@phoneme.dev.java.net
> > For additional commands, e-mail:
> advanced-help@phoneme.dev.java.net
> >
> >
>
> ------------------------------------------------------
> ---------------
> To unsubscribe, e-mail:
> advanced-unsubscribe@phoneme.dev.java.net
> For additional commands, e-mail:
> advanced-help@phoneme.dev.java.net