Skip to main content

19 errors in phoneME Advanced based on gtk

7 replies [Last post]
lanshouzhen
Offline
Joined: 2010-02-21

Hi:
I've posted a thread about building phoneME Advance personal profile and gtk, but there are still some errors remain unsolved.
Fitst i download phoneME version:
svn co https://phoneme.dev.java.net/svn/phoneme/components/cdc/trunk cdc
svn co https://phoneme.dev.java.net/svn/phoneme/components/tools/trunk tools
and then
cd cdc/build/linux-arm-generic and JDK_HOME=/usr/local/j2sdk1.4.2 J2ME_CLASSLIB=foundation
everything works smoothly and with no errors

but when i bulid with gtk as J2ME_CLASSLIB=personal AWT_IMPLEMENTATION=peer_based AWT_PEERSET=gtk

i got 19 errors(as bellow) ,then i check out the branch hinkmond-pp-gtk and build .
but it doesn't work and the 19 errors remain.
the errors is also posted by yuzhoumao in http://forums.java.net/jive/thread.jspa?threadID=27372 and It seems that it needs some patches(how to get it ?)

i have tried a long time but quite lost in this point .
Could someone tell me how to bulid cdc based on gtk or how to slove this problems.
My email: lan200807@hotmail.com
Any help will be greatly appreciated.

Thank you in advance!
regards

zhen

19 errors:
Compiling phoneME Advanced classes...
/home/lanshouzhen/java/phoneme_advanced/cdc/src/share/personal/classes/awt/peer_based/sun/awt/gtk/GButtonPeer.java:40:
sun.awt.gtk.GButtonPeer is not

abstract and does not override abstract method createVolatileImage(int,int) in sun.awt.peer.ComponentPeer
class GButtonPeer extends GComponentPeer implements ButtonPeer {
^
/home/lanshouzhen/java/phoneme_advanced/cdc/src/share/personal/classes/awt/peer_based/sun/awt/gtk/GCanvasPeer.java:39:

sun.awt.gtk.GCanvasPeer is not

abstract and does not override abstract method createVolatileImage(int,int) in sun.awt.peer.ComponentPeer
class GCanvasPeer extends GComponentPeer implements CanvasPeer {
^
/home/lanshouzhen/java/phoneme_advanced/cdc/src/share/personal/classes/awt/peer_based/sun/awt/gtk/GChoicePeer.java:40:

sun.awt.gtk.GChoicePeer is not

abstract and does not override abstract method createVolatileImage(int,int) in sun.awt.peer.ComponentPeer
class GChoicePeer extends GComponentPeer implements ChoicePeer {
^
.......
(omitted)
.......
abstract and does not override abstract method createVolatileImage(int,int) in sun.awt.peer.ComponentPeer
class GScrollbarPeer extends GComponentPeer implements ScrollbarPeer {
^
/home/lanshouzhen/java/phoneme_advanced/cdc/src/share/personal/classes/awt/peer_based/sun/awt/gtk/GTextAreaPeer.java:39:

sun.awt.gtk.GTextAreaPeer is not

abstract and does not override abstract method createVolatileImage(int,int) in sun.awt.peer.ComponentPeer
class GTextAreaPeer extends GTextComponentPeer implements TextAreaPeer {
^
/home/lanshouzhen/java/phoneme_advanced/cdc/src/share/personal/classes/awt/peer_based/sun/awt/gtk/GTextFieldPeer.java:40:

sun.awt.gtk.GTextFieldPeer is not

abstract and does not override abstract method createVolatileImage(int,int) in sun.awt.peer.ComponentPeer
class GTextFieldPeer extends GTextComponentPeer implements TextFieldPeer {
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
19 errors

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
lanshouzhen
Offline
Joined: 2010-02-21

Hi Davy :
The 19 errors have been removed now after dowanload patch from http://www2.cs.kuleuven.be/~davy/phoneme/public/other.htm.
it really works although there still exists other type of errors(e.g. lack of head file) that still need to to solved.

Thanks again for your help,

Regards
zhen

davyp
Offline
Joined: 2007-01-03

I have corrected the links to the patches, and also updated them. The ones of
http://www2.cs.kuleuven.be/~davy/phoneme/public/other.htm are outdated, so
use the ones of http://www.cs.kuleuven.be/~davy/phoneme/?q=node/19 instead.
With these patches I am able to build phoneME Personal Profile with gtk 1.2 from
svn trunk.

Davy

lanshouzhen
Offline
Joined: 2010-02-21

Hi Davy:
I did as above,
now the original problem is resolved, but giving rise to new errors:

../../../../../../../usr/include/glib-2.0/glib/gfileutils.h:108: error: syntax error before "size"
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `setStyleRecursively':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:224: error: structure has no member named `font'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:225: error: structure has no member named `font'
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `awt_gtk_GComponentPeerData_init':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:596: error: structure has no member named `font'
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `Java_sun_awt_gtk_GComponentPeer_requestFocus':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:886: warning: implicit declaration of function `gtk_container_focus'
../../src/share/personal/native/awt/gtk/GComponentPeer.c: At top level:
../../src/share/personal/native/awt/gtk/GComponentPeer.c:69: warning: 'multichar_draw_string' defined but not used
make: *** [obj/GComponentPeer.o] Error 1

maybe the error is with the version of GTK( Ibuild pp with gtk 2.0)
i will work on it or try other gtk version

Thanks for your helpful reply.

davyp
Offline
Joined: 2007-01-03

Yes, this pretty much looks like compilation errors due to Gtk 2.0. If you are able to
fix those compilations and willing to share your changes, I think other people would be
interested too!

Davy

lanshouzhen
Offline
Joined: 2010-02-21

I will be glad to post here if I get it going and move forward.

Thanks

zhen

davyp
Offline
Joined: 2007-01-03

Hi

It has been a while a tried, but I have been able to compile phoneME Personal Profile with Gtk
1.2 for x86 linux systems. The patches I used are available here (the link to the rev16872 binary
is broken however):

http://www.cs.kuleuven.be/~davy/phoneme/?q=node/19

I used the trunk branch to compile the sources and I was able to run the personal profile demo
application, but there were still some issues in need of fixing. And probably it would be nice if
we have a Gtk 2 graphics backend.

I have never tried to compile the gtk backend for linux ARM platforms though.

Regards,
Davy

lanshouzhen
Offline
Joined: 2010-02-21

Hi Davy :
Thanks for your reply.
the patches gtk-java.diff and gtk-native.diff in http://www.cs.kuleuven.be/~davy/phoneme/?q=node/19 are unavailable (it seems that the link to that patchs no longer exists )

Could you tell me how to download the patch again
I'll be grateful for your reply .

Regards
zhen