Skip to main content

Error compiling CDC Personal to N800

23 replies [Last post]
mfabiop
Offline
Joined: 2005-03-06
Points: 0

Hi All,

I'm trying to compile CDC Personal to N800 and got same errors that i've resolved with help of Chris and Hinkmond in this Forum (In thread [N800 Branch]).

Now i get the following errors when try to compile:

cc ../../src/linux/personal/native/sun/audio/audioDevice.c
cc ../../src/share/personal/native/sun/awt/common/embeddedframe.c
cc ../../src/share/personal/native/awt/gtk/GComponentPeer.c
In file included from /usr/include/gtk-1.2/gdk/gdkx.h:30,
from ../../src/share/personal/native/awt/gtk/GComponentPeer.c:29:
/usr/include/gtk-1.2/gdk/gdkprivate.h:31:22: X11/Xlib.h: No such file or directory
/usr/include/gtk-1.2/gdk/gdkprivate.h:32:23: X11/Xutil.h: No such file or directory
In file included from /usr/include/gtk-1.2/gdk/gdkx.h:30,
from ../../src/share/personal/native/awt/gtk/GComponentPeer.c:29:
/usr/include/gtk-1.2/gdk/gdkprivate.h:64: error: syntax error before "Window"
/usr/include/gtk-1.2/gdk/gdkprivate.h:64: warning: no semicolon at end of struct or union
/usr/include/gtk-1.2/gdk/gdkprivate.h:65: warning: type defaults to `int' in declaration of `xdisplay'
/usr/include/gtk-1.2/gdk/gdkprivate.h:65: warning: data definition has no type or storage class
/usr/include/gtk-1.2/gdk/gdkprivate.h:73: error: syntax error before ':' token
/usr/include/gtk-1.2/gdk/gdkprivate.h:74: error: syntax error before ':' token

As I didn't have the Xlib.h file in the "/usr/include/X11", i've installed xlibs-dev and now it exist in this folder. But the above error message yet happenings.

In the make command i've GTK_CONFIG=/usr/bin/gtk-config.

Could anyone help me?

Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
saadliaquat
Offline
Joined: 2007-08-31
Points: 0

Hi Marcos,
Could you post your steps from the last stage where you were stuck (right where I was)?

Thanks in advance.
Saad

mfabiop
Offline
Joined: 2005-03-06
Points: 0

Really sorry Saad,

I`ve get problems last december and stop access the forum. But now i`m back and i want start the works.

Is there a branch to N800/N810? If don`t, let`s start?

regards

Marcos Fabio

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> .........
>
> Missing files are present in /usr/include/X11.
> /usr/lib/pkg-config/x11.pc contains:
>
> prefix=/usr
> exec_prefix=${prefix}
> libdir=${exec_prefix}/lib
> includedir=${prefix}/include
>
> xthreadlib=-lpthread
>
> Name: X11
> Description: X Library
> Version: 1.1.1
> Requires: xproto kbproto
> Requires.private: xau xdmcp
> Cflags: -I${includedir}
> Libs: -L${libdir} -lX11
> Libs.private: -lpthread
>
> How can I make the Xlib.h etc files available to the make command? As always, any help is appreciated.
>

Did you try going into the Makefiles finding which .mk file has

AWT_LIB_LIBS

and then add a "-I/usr/include/X11 " to the rest of the include paths?

Hinkmond

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

mfabiop
Offline
Joined: 2005-03-06
Points: 0

I did!!!

I've compiled CDC PP without error!! :)

Later i will post my all steps.

But when i'm trying to run democlasses.jar in the N800 i get some errors. I will post that errors too.

Thanks a lot to everybody!

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> I did!!!
>
> I've compiled CDC PP without error!! :)
>
> Later i will post my all steps.
>
> But when i'm trying to run democlasses.jar in the N800 i get some errors. I will post that errors too.
>
> Thanks a lot to everybody!
>
>

That's great news, Marcos! Please let us all know how it's going with
running.

Thanks,

Hinkmond

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

saadliaquat
Offline
Joined: 2007-08-31
Points: 0

> Can you do something like this?
>
> touch
> /usr/tools/lib/linux-arm-generic/usr/bin/gtk-config
> chmod 755
> /usr/tools/lib/linux-arm-generic/usr/bin/gtk-config
> vi
> /usr/tools/lib/linux-arm-generic/usr/bin/gtk-config
>
> ---
> !#/bin/sh
>
> pkg-config --cflags gtk+-2.0
>

Hi Hinkmond, I did the above, created the gtk-config file. I believe its #!/bin/sh above.

Now the original problem is resolved, giving rise to a new set of missing file errors:

make CVM_TARGET_TOOLS_PREFIX=/scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux- USE_AAPCS=true J2ME_CLASSLIB=personal AWT_PEERSET=gtk TOOLS_DIR=/pmea/tools/trunk/
MAKEFLAGS = TOOLS_DIR=/pmea/tools/trunk/ AWT_PEERSET=gtk J2ME_CLASSLIB=personal USE_AAPCS=true CVM_TARGET_TOOLS_PREFIX=/scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-
CVM_HOST = i686-Ubuntu-linux
CVM_TARGET = linux-arm-generic
SHELL = sh -e
HOST_CC = /usr/bin/cc
HOST_CCC = /usr/bin/g++
ZIP = /usr/bin/zip
FLEX = /usr/bin/flex
BISON = /usr/bin/bison
CVM_JAVA = /home/slk/java/jdk1.4.2/bin/java
CVM_JAVAC = /home/slk/java/jdk1.4.2/bin/javac
CVM_JAVAH = /home/slk/java/jdk1.4.2/bin/javah
CVM_JAR = /home/slk/java/jdk1.4.2/bin/jar
TARGET_CC = /scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-gcc
TARGET_CCC = /scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-g++
TARGET_AS = /scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-gcc
TARGET_LD = /scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-gcc
TARGET_AR = /scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-ar
TARGET_RANLIB = /scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-ranlib
LINKFLAGS = -g -Wl,-export-dynamic
LINKLIBS = -lpthread -ldl
ASM_FLAGS = -c -fno-common -traditional
CCCFLAGS = -fno-rtti
CCFLAGS_SPEED = -c -fno-common -Wall -fno-strict-aliasing -O4
CCFLAGS_SPACE = -c -fno-common -Wall -fno-strict-aliasing -O2
CCFLAGS_LOOP = -c -fno-common -Wall -fno-strict-aliasing -O4
CCFLAGS_FDLIB = -c -fno-common -Wall -fno-strict-aliasing -O4
JAVAC_OPTIONS = -g:none -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -target 1.4
CVM_DEFINES = -DCVM_OPTIMIZED -DCVM_DEBUG_STACKTRACES -DNDEBUG -DCVM_CLASSLOADING -DCVM_SERIALIZATION -DCVM_REFLECT -DCVM_DYNAMIC_LINKING -DCVM_JIT -DCVM_JIT_REGISTER_LOCALS -DCVM_TIMESTAMPING -DJ2ME_CLASSLIB=personal -DTARGET_CPU_FAMILY=arm -DCVM_JIT_COPY_CCMCODE_TO_CODECACHE -D_GNU_SOURCE -DCVM_IAI_OPT_ALL -DAAPCS -Dgtk
host uname = Linux maemo 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux
TARGET_CC version = 3.4.4 arm-none-linux-gnueabi
HOST_CC version = 4.1.3 i486-linux-gnu
CVM_JAVA version = java version 1.4.2_16
TOOLS_DIR = /pmea/tools/trunk/
AWT_LIB_LIBS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -lgthread
AWT_IMPLEMENTATION = peer_based
AWT_PEERSET = gtk
GTK_CONFIG = /usr/tools/lib/linux-arm-generic/usr/bin/gtk-config
updating ../../build/linux-arm-generic/./generated/build_defs.mk ...
Checking for build-time classes to compile ...
Checking for phoneME Advanced classes to compile ...
Checking for test classes to compile ...
Checking for demo classes to compile ...
cc ../../src/share/personal/native/awt/gtk/GComponentPeer.c
In file included from ../../src/share/personal/native/awt/gtk/GComponentPeer.c:29:

[b]/usr/include/gtk-2.0/gdk/gdkx.h:33:22: X11/Xlib.h: No such file or directory[/b]
[b]/usr/include/gtk-2.0/gdk/gdkx.h:34:23: X11/Xutil.h: No such file or directory[/b]
In file included from ../../src/share/personal/native/awt/gtk/GComponentPeer.c:29:
[b]/usr/include/gtk-2.0/gdk/gdkx.h:39: error: syntax error before '*' token[/b]
/usr/include/gtk-2.0/gdk/gdkx.h:39: warning: type defaults to `int' in declaration of `gdk_display'
/usr/include/gtk-2.0/gdk/gdkx.h:39: warning: data definition has no type or storage class
/usr/include/gtk-2.0/gdk/gdkx.h:42: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:42: warning: type defaults to `int' in declaration of `gdk_x11_drawable_get_xdisplay'
...
......
.........

Missing files are present in /usr/include/X11.
/usr/lib/pkg-config/x11.pc contains:

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

xthreadlib=-lpthread

Name: X11
Description: X Library
Version: 1.1.1
Requires: xproto kbproto
Requires.private: xau xdmcp
Cflags: -I${includedir}
Libs: -L${libdir} -lX11
Libs.private: -lpthread

How can I make the Xlib.h etc files available to the make command? As always, any help is appreciated.

Saad

Message was edited by: saadliaquat

Message was edited by: saadliaquat

mfabiop
Offline
Joined: 2005-03-06
Points: 0

Hi Saad,

i've copied /usr/include/X11 folder into /usr/include/gtk-2.0 folder.

It works fine, but i got other error when using gtk-2.0. I've to back to the gtk-1.2. Changing my gtk-config to 'pkg-config --cflags gtk+'

Bye

saadliaquat
Offline
Joined: 2007-08-31
Points: 0

> Hi Saad,
>
> i've copied /usr/include/X11 folder into
> /usr/include/gtk-2.0 folder.
>
> It works fine, but i got other error when using
> gtk-2.0. I've to back to the gtk-1.2. Changing my
> gtk-config to 'pkg-config --cflags gtk+'
>

Hi (Fabio, is it?)

Thanks :)

So I did what you did and it takes me one step forward (or backwards?)
By using GTK1.2 in the /usr/tools/..../gtk-config file, I get the following error:

c ../../src/share/personal/native/awt/gtk/GTextComponentPeer.c
cc ../../src/share/personal/native/sun/awt/common/PeerBasedToolkit.c
cc ../../src/share/basis/native/image/gif/gifdecoder.c
Linking ../../build/linux-arm-generic/./lib/libgtkawt.so
/scratchbox/compilers/cs2005q3.2-glibc-arm/lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lgthread
collect2: ld returned 1 exit status

If I use GTK+-2.0, the errors are:

jcc romjava.c files
964 Total Classes
... of which 200 classes have static initializers
(9382/13667 quickening sites)
8743 method blocks
... of which 8743 blocks are writable
... for 863 classes
... of which 2942 have checkinit opcodes in the code
434568 bytes of Java code
1558 catch frames
3890 field blocks
952 inner class attribute entries
11386 constant pool entries
3729 Java strings
cc ../../src/linux/personal/native/sun/audio/audioDevice.c
cc ../../src/share/personal/native/sun/awt/common/embeddedframe.c
cc ../../src/share/personal/native/awt/gtk/GComponentPeer.c
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `setStyleRecursively':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:212: error: structure has no member named `font'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:213: error: structure has no member named `font'
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `updateWidgetStyle':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:272: error: structure has no member named `klass'
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `awt_gtk_GComponentPeerData_init':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:584: 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:874: warning: implicit declaration of function `gtk_container_focus'
make: *** [../../build/linux-arm-generic/./obj/GComponentPeer.o] Error 1

Let me work on it a bit, if I get it going and move forward, I will post here.

Meanwhile, if you come up with anything ... :)

saad

mfabiop
Offline
Joined: 2005-03-06
Points: 0

Hi Saad,

Yes, my name is Fabio. Can call me Marcos too :). My name is Marcos Fábio.

I got exactly the same thing, using GTK 1.2 and GTK 2.0.

I think the right version is the 1.2, because i don't have found the font member in the GtkStyle of the 2.0.

We're in the same step.

saadliaquat
Offline
Joined: 2007-08-31
Points: 0

Hi Marcos,
Thanks

I think what we need to do is make gthread library available to the runtime. I think it is installed with dev packages but not available at runtime somehow, I am looking into it and once I resolve it, I will let you know.

Meanwhile, I am open to any helpful tips :)

Saad

saadliaquat
Offline
Joined: 2007-08-31
Points: 0

Hi Hinkmond,
Thanks ...

> Can you do something like this?
>
> touch
> /usr/tools/lib/linux-arm-generic/usr/bin/gtk-config
> chmod 755
> /usr/tools/lib/linux-arm-generic/usr/bin/gtk-config
> vi
> /usr/tools/lib/linux-arm-generic/usr/bin/gtk-config

/usr/tools does not exist!

Did I miss some step which builds/puts gtk-config in /usr/tools for linux-arm-generic?

(I did a make clean and ran make again, just in case)

Saad

Message was edited by: saadliaquat

mfabiop
Offline
Joined: 2005-03-06
Points: 0

Hi Saad,

I've /usr/tools/lib/linux-arm-generic/usr/bin/ in my computer. I think that was put there when i've installed scratchbox and maemo sdk.

saadliaquat
Offline
Joined: 2007-08-31
Points: 0

Thank you, I guess I will redo the scratchbox/maemo install.

mfabiop
Offline
Joined: 2005-03-06
Points: 0

Hi Saad,

When you redo the installing of maemo and scratchbox told me if you get this problem:

cc ../../src/share/basis/native/image/gif/gifdecoder.c
Linking ../../build/linux-arm-generic/./lib/libgtkawt.so
/scratchbox/compilers/cs2005q3.2-glibc-arm/lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lgthread
collect2: ld returned 1 exit status
make: *** [../../build/linux-arm-generic/./lib/libgtkawt.so] Error 1

If don't, told me what you did :)

I think we're in the same step.

saadliaquat
Offline
Joined: 2007-08-31
Points: 0

> Hi Saad,
>
> When you redo the installing of maemo and scratchbox
> told me if you get this problem:
>

Nops, not getting _any_ problem, while installing scratchbox and maemo sdk.
Here is what I do:
1. Install scratchbox using installation script, instructions here: http://tablets-dev.nokia.com/3.1/INSTALL.txt

2. Install bora 3.1 using installer script, xephyr, nokia binaries; instructions on same link above

3. Install bora 3.2; instructions here: http://repository.maemo.org/stable/bora/INSTALL.txt

4. Build PhoneMe Advanced using instructions here: http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatforms...

The generated file works fine on N800, cvm can run test program, show version etc.

So things look fine up till here.

Then I start compiling phoneMe Advanced with PP and you know where it leads me. No /usr/tools for linux-arm-generic gtk-config :)
[I am building on Ubunty Gutsy (#uname -r = 2.6.22-14-generic)]

Sorry can't reproduce or track the error you are facing.

Saad

Message was edited by: saadliaquat

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
>
>
> You mentioned in an earlier post
>
>> Try using this from the N800 Maemo toolchain command: pkg-config --cflags gtk
>>
>
> I did:
>
> [sbox-SDK_X86: ~] > pkg-config --cflags gtk+-2.0
> -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
>
> also did the same from SDK_Armel menu.
>
> Could you help me out here?
>
>

Hi Saad,

Can you do something like this?

touch /usr/tools/lib/linux-arm-generic/usr/bin/gtk-config
chmod 755 /usr/tools/lib/linux-arm-generic/usr/bin/gtk-config
vi /usr/tools/lib/linux-arm-generic/usr/bin/gtk-config

---
!#/bin/sh

pkg-config --cflags gtk+-2.0

---

What you want to do is to have the Makefiles be able to find a
gtk-config shell script at
/usr/tools/lib/linux-arm-generic/usr/bin/gtk-config and run it during
the build process, but you want it to really map to the maemo command
"pkg-config --cflags gtk+-2.0".

Hinkmond

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

mfabiop
Offline
Joined: 2005-03-06
Points: 0

Hi Hinkmond,

I did it, but i got a error that i find out is wrong version of GTK.

(GtkStyle struct doesn't have a font member)

As exist a font member in GtkStyle of the GTK-1.2, i've put 'pkg-config --cflags gtk+' in gtk-config and run again.

'pkg-config --cflags gtk+' returns '-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include'

And i've copied /usr/include/X11 folder into /usr/include/gtk-1.2 folder.

Now i got the following errors.

jcc romjava.c files
965 Total Classes
... of which 200 classes have static initializers
(9389/13680 quickening sites)
8743 method blocks
... of which 8743 blocks are writable
... for 863 classes
... of which 2942 have checkinit opcodes in the code
435883 bytes of Java code
1575 catch frames
3890 field blocks
953 inner class attribute entries
11387 constant pool entries
3729 Java strings
cc ../../src/linux/personal/native/sun/audio/audioDevice.c
cc ../../src/share/personal/native/sun/awt/common/embeddedframe.c
cc ../../src/share/personal/native/awt/gtk/GComponentPeer.c
cc ../../src/share/personal/native/awt/gtk/GFramePeer.c
cc ../../src/share/personal/native/awt/gtk/GPanelPeer.c
cc ../../src/share/personal/native/awt/gtk/GToolkit.c
cc ../../src/share/personal/native/awt/gtk/GWindowPeer.c
cc ../../src/share/personal/native/awt/gtk/GdkGraphics.c
../../src/share/personal/native/awt/gtk/GdkGraphics.c: In function `Java_sun_awt_gtk_GdkGraphics_drawStringNative':
../../src/share/personal/native/awt/gtk/GdkGraphics.c:715: warning: comparison between pointer and integer
cc ../../src/share/personal/native/awt/gtk/KeyCodes.c
cc ../../src/share/personal/native/awt/gtk/ThreadLocking.c
../../src/share/personal/native/awt/gtk/ThreadLocking.c: In function `awt_gtk_threadsLeave':
../../src/share/personal/native/awt/gtk/ThreadLocking.c:104: warning: unused variable `self'
cc ../../src/share/personal/native/awt/gtk/GdkImageRepresentation.c
../../src/share/personal/native/awt/gtk/GdkImageRepresentation.c:37:1: warning: "MIN" redefined
In file included from /usr/include/gtk-1.2/gdk/gdktypes.h:33,
from /usr/include/gtk-1.2/gdk/gdk.h:31,
from /usr/include/gtk-1.2/gtk/gtk.h:31,
from ../../src/share/personal/native/awt/gtk/GdkImageRepresentation.c:28:
/usr/include/glib-1.2/glib.h:137:1: warning: this is the location of the previous definition
../../src/share/personal/native/awt/gtk/GdkImageRepresentation.c: In function `Java_sun_awt_gtk_GdkImageRepresentation_setBytePixels':
../../src/share/personal/native/awt/gtk/GdkImageRepresentation.c:485: warning: 'rgbs' might be used uninitialized in this function
../../src/share/personal/native/awt/gtk/GdkImageRepresentation.c: In function `Java_sun_awt_gtk_GdkImageRepresentation_setIntPixels':
../../src/share/personal/native/awt/gtk/GdkImageRepresentation.c:631: warning: 'rgbs' might be used uninitialized in this function
../../src/share/personal/native/awt/gtk/GdkImageRepresentation.c: In function `Java_sun_awt_gtk_GdkImageRepresentation_imageStretch':
../../src/share/personal/native/awt/gtk/GdkImageRepresentation.c:1003: warning: 'pixel' might be used uninitialized in this function
../../src/share/personal/native/awt/gtk/GdkImageRepresentation.c:1003: warning: 'pixel' might be used uninitialized in this function
cc ../../src/share/personal/native/awt/gtk/GtkClipboard.c
cc ../../src/share/personal/native/awt/gtk/GFontPeer.c
../../src/share/personal/native/awt/gtk/GFontPeer.c: In function `Java_sun_awt_gtk_GFontPeer_asciiCharWidth':
../../src/share/personal/native/awt/gtk/GFontPeer.c:164: warning: 'gdkfont' might be used uninitialized in this function
cc ../../src/share/personal/native/awt/gtk/OffScreenImageSource.c
cc ../../src/share/personal/native/awt/gtk/GButtonPeer.c
cc ../../src/share/personal/native/awt/gtk/GCanvasPeer.c
cc ../../src/share/personal/native/awt/gtk/GChoicePeer.c
cc ../../src/share/personal/native/awt/gtk/GCheckboxMenuItemPeer.c
cc ../../src/share/personal/native/awt/gtk/GCheckboxPeer.c
cc ../../src/share/personal/native/awt/gtk/GDialogPeer.c
cc ../../src/share/personal/native/awt/gtk/GFileDialogPeer.c
cc ../../src/share/personal/native/awt/gtk/GLabelPeer.c
cc ../../src/share/personal/native/awt/gtk/GListPeer.c
cc ../../src/share/personal/native/awt/gtk/GMenuPeer.c
cc ../../src/share/personal/native/awt/gtk/GMenuBarPeer.c
cc ../../src/share/personal/native/awt/gtk/GMenuItemPeer.c
cc ../../src/share/personal/native/awt/gtk/GPopupMenuPeer.c
cc ../../src/share/personal/native/awt/gtk/GPlatformFont.c
cc ../../src/share/personal/native/awt/gtk/GScrollPanePeer.c
cc ../../src/share/personal/native/awt/gtk/GScrollbarPeer.c
cc ../../src/share/personal/native/awt/gtk/GTextAreaPeer.c
cc ../../src/share/personal/native/awt/gtk/GTextFieldPeer.c
cc ../../src/share/personal/native/awt/gtk/GTextComponentPeer.c
cc ../../src/share/personal/native/sun/awt/common/PeerBasedToolkit.c
cc ../../src/share/basis/native/image/gif/gifdecoder.c
Linking ../../build/linux-arm-generic/./lib/libgtkawt.so
/scratchbox/compilers/cs2005q3.2-glibc-arm/lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lgthread
collect2: ld returned 1 exit status
make: *** [../../build/linux-arm-generic/./lib/libgtkawt.so] Error 1

Could you help me? I think i almost compiling PP to N800 :)

Thanks in advance!

PS: I'm running make command outside scratchbox now (Thanks Saad!) :)

Message was edited by: mfabiop

saadliaquat
Offline
Joined: 2007-08-31
Points: 0

Hi,

> PS: I'm running make command outside scratchbox now
> (Thanks Saad!) :)

Nice to see you moving forward. Do you have any idea when was /usr/tools/lib/linux-arm-generic/usr/bin/gtk-config generated in your setup?

thanks,

saad

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

You are doing a cross compile that targets the N800, but you are using the gtk-config that is meant for builds that target your host. Thus you are getting the wrong headers and libs. I'm not sure where the proper gtk-config is for your build, but I'm pretty sure it is not the one in /usr/bin/gtk-config.

Chris

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> You are doing a cross compile that targets the N800, but you are using the gtk-config that is meant for builds that target your host. Thus you are getting the wrong headers and libs. I'm not sure where the proper gtk-config is for your build, but I'm pretty sure it is not the one in /usr/bin/gtk-config.
>
> Chris
>

Hi Marcos,

Chris is right: you're using the wrong gtk-config tool.

Try using this from the N800 Maemo toolchain command:

"pkg-config --cflags gtk"

See this for reference:

http://www.mail-archive.com/maemo-developers@maemo.org/msg01792.html

Hinkmond

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

saadliaquat
Offline
Joined: 2007-08-31
Points: 0

> Hi Marcos,
>
> Chris is right: you're using the wrong gtk-config
> tool.
>
> Try using this from the N800 Maemo toolchain command:
>
> "pkg-config --cflags gtk"
> See this for reference:
>
> http://www.mail-archive.com/maemo-developers@maemo.org
> /msg01792.html
>
>
> Hinkmond
>
Hi Hinkmond,

I am building CDC PP with GTK using this command :

make CVM_TARGET_TOOLS_PREFIX=/scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux- USE_AAPCS=true J2ME_CLASSLIB=personal AWT_PEERSET=gtk TOOLS_DIR=/pmea/tools/trunk

For reference:

1. root@maemo:/pmea/cdc/trunk/build/linux-arm-generic# pkg-config --cflags gtk+-2.0
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12

2. Xlib.h, Xatom.h, Xutil.h present in /usr/include/X11/

The errors I am getting-->

root@maemo:/pmea/cdc/trunk/build/linux-arm-generic# make CVM_TARGET_TOOLS_PREFIX=/scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux- USE_AAPCS=true J2ME_CLASSLIB=personal AWT_PEERSET=gtk TOOLS_DIR=/pmea/tools/trunk
MAKEFLAGS = TOOLS_DIR=/pmea/tools/trunk AWT_PEERSET=gtk J2ME_CLASSLIB=personal USE_AAPCS=true CVM_TARGET_TOOLS_PREFIX=/scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-
CVM_HOST = i686-Ubuntu-linux
CVM_TARGET = linux-arm-generic
SHELL = sh -e
HOST_CC = /usr/bin/cc
HOST_CCC = /usr/bin/g++
ZIP = /usr/bin/zip
FLEX = /usr/bin/flex
BISON = /usr/bin/bison
CVM_JAVA = /home/slk/java/jdk1.4.2/bin/java
CVM_JAVAC = /home/slk/java/jdk1.4.2/bin/javac
CVM_JAVAH = /home/slk/java/jdk1.4.2/bin/javah
CVM_JAR = /home/slk/java/jdk1.4.2/bin/jar
TARGET_CC = /scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-gcc
TARGET_CCC = /scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-g++
TARGET_AS = /scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-gcc
TARGET_LD = /scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-gcc
TARGET_AR = /scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-ar
TARGET_RANLIB = /scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-ranlib
LINKFLAGS = -g -Wl,-export-dynamic
LINKLIBS = -lpthread -ldl
ASM_FLAGS = -c -fno-common -traditional
CCCFLAGS = -fno-rtti
CCFLAGS_SPEED = -c -fno-common -Wall -fno-strict-aliasing -O4
CCFLAGS_SPACE = -c -fno-common -Wall -fno-strict-aliasing -O2
CCFLAGS_LOOP = -c -fno-common -Wall -fno-strict-aliasing -O4
CCFLAGS_FDLIB = -c -fno-common -Wall -fno-strict-aliasing -O4
JAVAC_OPTIONS = -g:none -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -target 1.4
CVM_DEFINES = -DCVM_OPTIMIZED -DCVM_DEBUG_STACKTRACES -DNDEBUG -DCVM_CLASSLOADING -DCVM_SERIALIZATION -DCVM_REFLECT -DCVM_DYNAMIC_LINKING -DCVM_JIT -DCVM_JIT_REGISTER_LOCALS -DCVM_TIMESTAMPING -DJ2ME_CLASSLIB=personal -DTARGET_CPU_FAMILY=arm -DCVM_JIT_COPY_CCMCODE_TO_CODECACHE -D_GNU_SOURCE -DCVM_IAI_OPT_ALL -DAAPCS -Dgtk
host uname = Linux maemo 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux
TARGET_CC version = 3.4.4 arm-none-linux-gnueabi
HOST_CC version = 4.1.3 i486-linux-gnu
CVM_JAVA version = java version 1.4.2_16
TOOLS_DIR = /pmea/tools/trunk
sh: /usr/tools/lib/linux-arm-generic/usr/bin/gtk-config: not found
AWT_LIB_LIBS = -lgthread
AWT_IMPLEMENTATION = peer_based
AWT_PEERSET = gtk
[b]GTK_CONFIG =[/b]
updating ../../build/linux-arm-generic/./generated/build_defs.mk ...
Checking for build-time classes to compile ...
Checking for phoneME Advanced classes to compile ...
Checking for test classes to compile ...
Checking for demo classes to compile ...
[b]sh: /usr/tools/lib/linux-arm-generic/usr/bin/gtk-config: not found[/b]
sh: /usr/tools/lib/linux-arm-generic/usr/bin/gtk-config: not found
cc ../../src/share/personal/native/awt/gtk/GComponentPeer.c
../../src/share/personal/native/awt/gtk/GComponentPeer.c:28:21: gtk/gtk.h: No such file or directory
../../src/share/personal/native/awt/gtk/GComponentPeer.c:29:22: gdk/gdkx.h: No such file or directory
In file included from ../../src/share/personal/native/awt/gtk/GComponentPeer.h:31,
from ../../src/share/personal/native/awt/gtk/GComponentPeer.c:37:
../../src/share/personal/native/awt/gtk/awt.h:34:22: X11/Xlib.h: No such file or directory
../../src/share/personal/native/awt/gtk/awt.h:35:23: X11/Xatom.h: No such file or directory
../../src/share/personal/native/awt/gtk/awt.h:36:23: X11/Xutil.h: No such file or directory
In file included from ../../src/share/personal/native/awt/gtk/GComponentPeer.c:37:
../../src/share/personal/native/awt/gtk/GComponentPeer.h:46: error: syntax error before "GtkWidget"
../../src/share/personal/native/awt/gtk/GComponentPeer.h:46: warning: no semicolon at end of struct or union
../../src/share/personal/native/awt/gtk/GComponentPeer.h:50: warning: type defaults to `int' in declaration of `drawWidget'
../../src/share/personal/native/awt/gtk/GComponentPeer.h:50: warning: data definition has no type or storage class
../../src/share/personal/native/awt/gtk/GComponentPeer.h:59: error: syntax error before "lastClickTime"
../../src/share/personal/native/awt/gtk/GComponentPeer.h:59: warning: type defaults to `int' in declaration of `lastClickTime'
../../src/share/personal/native/awt/gtk/GComponentPeer.h:59: warning: data definition has no type or storage class
../../src/share/personal/native/awt/gtk/GComponentPeer.h:67: error: syntax error before '*' token
../../src/share/personal/native/awt/gtk/GComponentPeer.h:67: warning: type defaults to `int' in declaration of `cursor'
../../src/share/personal/native/awt/gtk/GComponentPeer.h:67: warning: data definition has no type or storage class
../../src/share/personal/native/awt/gtk/GComponentPeer.h:80: error: syntax error before '}' token
../../src/share/personal/native/awt/gtk/GComponentPeer.h:80: warning: type defaults to `int' in declaration of `GComponentPeerData'
../../src/share/personal/native/awt/gtk/GComponentPeer.h:80: warning: data definition has no type or storage class
../../src/share/personal/native/awt/gtk/GComponentPeer.h:89: error: syntax error before "GComponentPeerData"
../../src/share/personal/native/awt/gtk/GComponentPeer.h:94: error: syntax error before '*' token
../../src/share/personal/native/awt/gtk/GComponentPeer.h:94: warning: type defaults to `int' in declaration of `awt_gtk_getData'
../../src/share/personal/native/awt/gtk/GComponentPeer.h:94: warning: data definition has no type or storage class
../../src/share/personal/native/awt/gtk/GComponentPeer.h:95: error: syntax error before '*' token
../../src/share/personal/native/awt/gtk/GComponentPeer.h:95: error: syntax error before '*' token
../../src/share/personal/native/awt/gtk/GComponentPeer.h:95: warning: type defaults to `int' in declaration of `awt_gtk_getDataFromWidget'
../../src/share/personal/native/awt/gtk/GComponentPeer.h:95: warning: data definition has no type or storage class
In file included from ../../src/share/personal/native/awt/gtk/GComponentPeer.c:38:
../../src/share/personal/native/awt/gtk/KeyCodes.h:31: error: syntax error before "awt_gtk_getGdkKeyCode"
../../src/share/personal/native/awt/gtk/KeyCodes.h:31: warning: type defaults to `int' in declaration of `awt_gtk_getGdkKeyCode'
../../src/share/personal/native/awt/gtk/KeyCodes.h:31: warning: data definition has no type or storage class
../../src/share/personal/native/awt/gtk/KeyCodes.h:32: error: syntax error before "keyCode"
In file included from ../../src/share/personal/native/awt/gtk/GComponentPeer.c:39:
../../src/share/personal/native/awt/gtk/GdkGraphics.h:38: error: syntax error before "GdkDrawable"
../../src/share/personal/native/awt/gtk/GdkGraphics.h:38: warning: no semicolon at end of struct or union
../../src/share/personal/native/awt/gtk/GdkGraphics.h:42: warning: type defaults to `int' in declaration of `gc'
../../src/share/personal/native/awt/gtk/GdkGraphics.h:42: warning: data definition has no type or storage class
../../src/share/personal/native/awt/gtk/GdkGraphics.h:48: error: syntax error before "isPixmap"
../../src/share/personal/native/awt/gtk/GdkGraphics.h:48: warning: type defaults to `int' in declaration of `isPixmap'
../../src/share/personal/native/awt/gtk/GdkGraphics.h:48: warning: data definition has no type or storage class
../../src/share/personal/native/awt/gtk/GdkGraphics.h:52: error: syntax error before "clipBounds"
../../src/share/personal/native/awt/gtk/GdkGraphics.h:52: warning: type defaults to `int' in declaration of `clipBounds'
../../src/share/personal/native/awt/gtk/GdkGraphics.h:52: warning: data definition has no type or storage class
../../src/share/personal/native/awt/gtk/GdkGraphics.h:56: error: syntax error before "clipHasBeenSet"
../../src/share/personal/native/awt/gtk/GdkGraphics.h:56: warning: type defaults to `int' in declaration of `clipHasBeenSet'
../../src/share/personal/native/awt/gtk/GdkGraphics.h:56: warning: data definition has no type or storage class
../../src/share/personal/native/awt/gtk/GdkGraphics.h:60: error: syntax error before "foreground"
../../src/share/personal/native/awt/gtk/GdkGraphics.h:60: warning: type defaults to `int' in declaration of `foreground'
../../src/share/personal/native/awt/gtk/GdkGraphics.h:60: warning: data definition has no type or storage class
../../src/share/personal/native/awt/gtk/GdkGraphics.h:64: error: syntax error before "xorMode"
../../src/share/personal/native/awt/gtk/GdkGraphics.h:64: warning: type defaults to `int' in declaration of `xorMode'
../../src/share/personal/native/awt/gtk/GdkGraphics.h:64: warning: data definition has no type or storage class
../../src/share/personal/native/awt/gtk/GdkGraphics.h:66: error: syntax error before "xorColor"
../../src/share/personal/native/awt/gtk/GdkGraphics.h:66: warning: type defaults to `int' in declaration of `xorColor'
../../src/share/personal/native/awt/gtk/GdkGraphics.h:66: warning: data definition has no type or storage class
../../src/share/personal/native/awt/gtk/GdkGraphics.h:74: error: syntax error before '}' token
../../src/share/personal/native/awt/gtk/GdkGraphics.h:74: warning: type defaults to `int' in declaration of `GdkGraphicsData'
../../src/share/personal/native/awt/gtk/GdkGraphics.h:74: warning: data definition has no type or storage class
../../src/share/personal/native/awt/gtk/GdkGraphics.h:76: error: syntax error before "awt_gtk_getColor"
../../src/share/personal/native/awt/gtk/GdkGraphics.h:76: error: syntax error before "GdkColor"
../../src/share/personal/native/awt/gtk/GdkGraphics.h:76: warning: type defaults to `int' in declaration of `awt_gtk_getColor'
../../src/share/personal/native/awt/gtk/GdkGraphics.h:76: warning: data definition has no type or storage class
../../src/share/personal/native/awt/gtk/GComponentPeer.c:44: error: syntax error before "GtkStyle"
../../src/share/personal/native/awt/gtk/GComponentPeer.c:44: warning: no semicolon at end of struct or union
../../src/share/personal/native/awt/gtk/GComponentPeer.c:45: warning: type defaults to `int' in declaration of `window'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:45: warning: data definition has no type or storage class
../../src/share/personal/native/awt/gtk/GComponentPeer.c:46: error: syntax error before "state_type"
../../src/share/personal/native/awt/gtk/GComponentPeer.c:46: warning: type defaults to `int' in declaration of `state_type'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:46: warning: data definition has no type or storage class
../../src/share/personal/native/awt/gtk/GComponentPeer.c:47: error: syntax error before '*' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c:47: warning: type defaults to `int' in declaration of `area'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:47: warning: data definition has no type or storage class
../../src/share/personal/native/awt/gtk/GComponentPeer.c:48: error: syntax error before '*' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c:48: warning: type defaults to `int' in declaration of `widget'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:48: warning: data definition has no type or storage class
../../src/share/personal/native/awt/gtk/GComponentPeer.c:49: error: syntax error before '*' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c:49: warning: type defaults to `int' in declaration of `detail'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:49: warning: data definition has no type or storage class
../../src/share/personal/native/awt/gtk/GComponentPeer.c:50: error: syntax error before '}' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c:52: error: syntax error before '*' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `multichar_draw_string':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:63: error: `peerData' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:63: error: (Each undeclared identifier is reported only once
../../src/share/personal/native/awt/gtk/GComponentPeer.c:63: error: for each function it appears in.)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:63: error: syntax error before ')' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c:64: error: storage size of 'gds' isn't known
../../src/share/personal/native/awt/gtk/GComponentPeer.c:80: error: `string' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:80: error: `x' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:80: error: `y' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:64: warning: unused variable `gds'
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `Java_sun_awt_gtk_GComponentPeer_drawMCStringNative':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:92: error: `gchar' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:92: error: `gtext' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:93: error: `GdkFont' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:93: error: `gdkfont' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:93: error: syntax error before ')' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c:102: error: syntax error before ')' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c:107: error: dereferencing pointer to incomplete type
../../src/share/personal/native/awt/gtk/GComponentPeer.c:109: warning: implicit declaration of function `gdk_gc_set_clip_rectangle'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:109: error: dereferencing pointer to incomplete type
../../src/share/personal/native/awt/gtk/GComponentPeer.c:109: error: dereferencing pointer to incomplete type
../../src/share/personal/native/awt/gtk/GComponentPeer.c:110: error: dereferencing pointer to incomplete type
../../src/share/personal/native/awt/gtk/GComponentPeer.c:110: error: dereferencing pointer to incomplete type
../../src/share/personal/native/awt/gtk/GComponentPeer.c:110: error: dereferencing pointer to incomplete type
../../src/share/personal/native/awt/gtk/GComponentPeer.c:113: error: dereferencing pointer to incomplete type
../../src/share/personal/native/awt/gtk/GComponentPeer.c:113: error: `GTK_STATE_INSENSITIVE' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:114: warning: implicit declaration of function `gdk_draw_text'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:114: error: dereferencing pointer to incomplete type
../../src/share/personal/native/awt/gtk/GComponentPeer.c:114: error: dereferencing pointer to incomplete type
../../src/share/personal/native/awt/gtk/GComponentPeer.c:116: error: dereferencing pointer to incomplete type
../../src/share/personal/native/awt/gtk/GComponentPeer.c:116: error: dereferencing pointer to incomplete type
../../src/share/personal/native/awt/gtk/GComponentPeer.c:116: error: dereferencing pointer to incomplete type
../../src/share/personal/native/awt/gtk/GComponentPeer.c:118: error: dereferencing pointer to incomplete type
../../src/share/personal/native/awt/gtk/GComponentPeer.c:120: error: dereferencing pointer to incomplete type
../../src/share/personal/native/awt/gtk/GComponentPeer.c:121: error: dereferencing pointer to incomplete type
../../src/share/personal/native/awt/gtk/GComponentPeer.c:121: error: dereferencing pointer to incomplete type
../../src/share/personal/native/awt/gtk/GComponentPeer.c: At top level:
../../src/share/personal/native/awt/gtk/GComponentPeer.c:130: error: syntax error before '*' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `postPaintEvent':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:132: error: `data' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:141: error: request for member `x' in something not a structure or union
../../src/share/personal/native/awt/gtk/GComponentPeer.c:142: error: request for member `y' in something not a structure or union
../../src/share/personal/native/awt/gtk/GComponentPeer.c:143: error: request for member `width' in something not a structure or union
../../src/share/personal/native/awt/gtk/GComponentPeer.c:144: error: request for member `height' in something not a structure or union
../../src/share/personal/native/awt/gtk/GComponentPeer.c: At top level:
../../src/share/personal/native/awt/gtk/GComponentPeer.c:153: error: syntax error before '*' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `componentExposed':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:155: error: `data' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:155: error: `event' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c: At top level:
../../src/share/personal/native/awt/gtk/GComponentPeer.c:159: error: syntax error before '*' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `componentDrawn':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:161: error: `data' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c: At top level:
../../src/share/personal/native/awt/gtk/GComponentPeer.c:170: error: syntax error before '*' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `setStyleRecursively':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:175: error: `style' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:175: warning: comparison between pointer and integer
../../src/share/personal/native/awt/gtk/GComponentPeer.c:175: error: `font' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:178: warning: implicit declaration of function `GTK_IS_CONTAINER'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:180: error: `GList' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:180: error: `children' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:180: warning: implicit declaration of function `gtk_container_children'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:180: warning: implicit declaration of function `GTK_CONTAINER'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:184: error: `GtkWidget' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:184: error: `child' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:184: warning: implicit declaration of function `GTK_WIDGET'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:185: error: `childData' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:185: error: syntax error before ')' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c:189: error: `data' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:200: warning: implicit declaration of function `gtk_widget_ensure_style'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:201: warning: implicit declaration of function `gtk_style_copy'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:201: error: request for member `style' in something not a structure or union
../../src/share/personal/native/awt/gtk/GComponentPeer.c:203: warning: comparison between pointer and integer
../../src/share/personal/native/awt/gtk/GComponentPeer.c:205: error: `GTK_STATE_NORMAL' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:205: error: invalid type argument of `unary *'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:206: error: invalid type argument of `unary *'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:211: warning: implicit declaration of function `gdk_font_ref'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:212: warning: implicit declaration of function `gdk_font_unref'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:216: warning: implicit declaration of function `gtk_widget_set_style'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:217: warning: implicit declaration of function `gtk_style_unref'
../../src/share/personal/native/awt/gtk/GComponentPeer.c: At top level:
../../src/share/personal/native/awt/gtk/GComponentPeer.c:234: error: syntax error before "GComponentPeerData"
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `updateWidgetStyle':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:236: error: `data' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:241: error: `GtkWidget' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:243: error: `GdkColor' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:243: error: syntax error before "gdkforeground"
../../src/share/personal/native/awt/gtk/GComponentPeer.c:244: error: `gdkforegroundptr' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:245: error: `GdkFont' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:245: error: `gdkfont' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:246: error: `GtkStyle' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:246: error: `style' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:250: error: `env' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:265: error: `gdkbackground' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:267: warning: implicit declaration of function `gtk_style_new'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:268: error: `GTK_STATE_NORMAL' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:279: error: `gdkforeground' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c: At top level:
../../src/share/personal/native/awt/gtk/GComponentPeer.c:316: error: syntax error before "GComponentPeerData"
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `updateWidgetCursor':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:318: error: `data' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:320: error: `GdkCursorType' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:320: error: syntax error before "gdktype"
../../src/share/personal/native/awt/gtk/GComponentPeer.c:327: error: `GDK_CROSSHAIR' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:327: error: initializer element is not constant
../../src/share/personal/native/awt/gtk/GComponentPeer.c:327: error: (near initialization for `cursorTypes[3]')
../../src/share/personal/native/awt/gtk/GComponentPeer.c:328: error: `GDK_XTERM' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:328: error: initializer element is not constant
../../src/share/personal/native/awt/gtk/GComponentPeer.c:328: error: (near initialization for `cursorTypes[5]')
../../src/share/personal/native/awt/gtk/GComponentPeer.c:329: error: `GDK_WATCH' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:329: error: initializer element is not constant
../../src/share/personal/native/awt/gtk/GComponentPeer.c:329: error: (near initialization for `cursorTypes[7]')
../../src/share/personal/native/awt/gtk/GComponentPeer.c:330: error: `GDK_BOTTOM_LEFT_CORNER' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:330: error: initializer element is not constant
../../src/share/personal/native/awt/gtk/GComponentPeer.c:330: error: (near initialization for `cursorTypes[9]')
../../src/share/personal/native/awt/gtk/GComponentPeer.c:331: error: `GDK_BOTTOM_RIGHT_CORNER' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:331: error: initializer element is not constant
../../src/share/personal/native/awt/gtk/GComponentPeer.c:331: error: (near initialization for `cursorTypes[11]')
../../src/share/personal/native/awt/gtk/GComponentPeer.c:332: error: `GDK_TOP_LEFT_CORNER' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:332: error: initializer element is not constant
../../src/share/personal/native/awt/gtk/GComponentPeer.c:332: error: (near initialization for `cursorTypes[13]')
../../src/share/personal/native/awt/gtk/GComponentPeer.c:333: error: `GDK_TOP_RIGHT_CORNER' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:333: error: initializer element is not constant
../../src/share/personal/native/awt/gtk/GComponentPeer.c:333: error: (near initialization for `cursorTypes[15]')
../../src/share/personal/native/awt/gtk/GComponentPeer.c:334: error: `GDK_TOP_SIDE' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:334: error: initializer element is not constant
../../src/share/personal/native/awt/gtk/GComponentPeer.c:334: error: (near initialization for `cursorTypes[17]')
../../src/share/personal/native/awt/gtk/GComponentPeer.c:335: error: `GDK_BOTTOM_SIDE' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:335: error: initializer element is not constant
../../src/share/personal/native/awt/gtk/GComponentPeer.c:335: error: (near initialization for `cursorTypes[19]')
../../src/share/personal/native/awt/gtk/GComponentPeer.c:336: error: `GDK_LEFT_SIDE' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:336: error: initializer element is not constant
../../src/share/personal/native/awt/gtk/GComponentPeer.c:336: error: (near initialization for `cursorTypes[21]')
../../src/share/personal/native/awt/gtk/GComponentPeer.c:337: error: `GDK_RIGHT_SIDE' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:337: error: initializer element is not constant
../../src/share/personal/native/awt/gtk/GComponentPeer.c:337: error: (near initialization for `cursorTypes[23]')
../../src/share/personal/native/awt/gtk/GComponentPeer.c:338: error: `GDK_HAND2' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:338: error: initializer element is not constant
../../src/share/personal/native/awt/gtk/GComponentPeer.c:338: error: (near initialization for `cursorTypes[25]')
../../src/share/personal/native/awt/gtk/GComponentPeer.c:339: error: `GDK_FLEUR' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:339: error: initializer element is not constant
../../src/share/personal/native/awt/gtk/GComponentPeer.c:339: error: (near initialization for `cursorTypes[27]')
../../src/share/personal/native/awt/gtk/GComponentPeer.c:345: error: `env' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:355: error: `gdktype' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:364: warning: implicit declaration of function `gdk_cursor_destroy'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:367: warning: implicit declaration of function `gdk_cursor_new'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:371: warning: implicit declaration of function `gdk_window_set_cursor'
../../src/share/personal/native/awt/gtk/GComponentPeer.c: At top level:
../../src/share/personal/native/awt/gtk/GComponentPeer.c:377: error: syntax error before '*' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `componentRealized':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:384: error: `data' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c: At top level:
../../src/share/personal/native/awt/gtk/GComponentPeer.c:442: error: syntax error before '*' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c:444: warning: return type defaults to `int'
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `awt_gtk_getData':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:445: error: `data' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:445: error: syntax error before ')' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c: At top level:
../../src/share/personal/native/awt/gtk/GComponentPeer.c:456: error: syntax error before '*' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c:457: error: syntax error before '*' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c:458: warning: return type defaults to `int'
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `awt_gtk_getDataFromWidget':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:459: error: `data' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:465: warning: implicit declaration of function `GTK_IS_MENU_ITEM'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:468: error: syntax error before ')' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c:473: error: request for member `parent' in something not a structure or union
../../src/share/personal/native/awt/gtk/GComponentPeer.c: At top level:
../../src/share/personal/native/awt/gtk/GComponentPeer.c:485: error: syntax error before "GdkColor"
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `createColor':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:489: error: `color' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:493: error: `env' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c: At top level:
../../src/share/personal/native/awt/gtk/GComponentPeer.c:515: error: syntax error before "GComponentPeerData"
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `awt_gtk_GComponentPeerData_init':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:524: error: `data' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:526: error: `env' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:526: error: `this' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:540: error: `styleWidget' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:553: error: `usesBaseForBackground' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:553: error: `GTK_STATE_NORMAL' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:599: warning: implicit declaration of function `gtk_object_set_data'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:599: warning: implicit declaration of function `GTK_OBJECT'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:608: warning: implicit declaration of function `gtk_widget_add_events'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:608: error: `GDK_POINTER_MOTION_MASK' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:609: error: `GDK_BUTTON_MOTION_MASK' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:610: error: `GDK_BUTTON_PRESS_MASK' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:611: error: `GDK_BUTTON_RELEASE_MASK' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:612: error: `GDK_ENTER_NOTIFY_MASK' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:613: error: `GDK_LEAVE_NOTIFY_MASK' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:614: error: `GDK_KEY_PRESS_MASK' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:615: error: `GDK_KEY_RELEASE_MASK' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:617: error: `GDK_EXPOSURE_MASK' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:619: warning: implicit declaration of function `gtk_signal_connect'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:619: warning: implicit declaration of function `GTK_SIGNAL_FUNC'
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `Java_sun_awt_gtk_GComponentPeer_disposeNative':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:629: error: `data' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:649: warning: implicit declaration of function `gtk_widget_unref'
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `Java_sun_awt_gtk_GComponentPeer_getLocationOnScreen':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:704: error: `data' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:707: error: `Display' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:707: error: `display' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:708: error: `GdkWindow' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:709: error: `Window' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:709: error: syntax error before "xwindow"
../../src/share/personal/native/awt/gtk/GComponentPeer.c:710: error: `children' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:723: warning: implicit declaration of function `gdk_error_trap_push'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:725: error: `xwindow' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:725: warning: implicit declaration of function `GDK_WINDOW_XWINDOW'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:726: warning: implicit declaration of function `GDK_WINDOW_XDISPLAY'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:728: warning: implicit declaration of function `XGetGeometry'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:728: error: `xroot' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:729: warning: implicit declaration of function `XQueryTree'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:729: error: `xparent' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:732: warning: implicit declaration of function `XFree'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:734: warning: implicit declaration of function `XTranslateCoordinates'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:734: error: `child' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:736: warning: implicit declaration of function `gdk_error_trap_pop'
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `Java_sun_awt_gtk_GComponentPeer_getPreferredSize':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:745: error: `data' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:760: warning: implicit declaration of function `gtk_widget_size_request'
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `Java_sun_awt_gtk_GComponentPeer_setBoundsNative':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:774: error: `data' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:774: error: syntax error before ')' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c:775: error: `GtkAllocation' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:775: error: syntax error before "allocation"
../../src/share/personal/native/awt/gtk/GComponentPeer.c:780: error: `allocation' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:790: warning: implicit declaration of function `gtk_widget_size_allocate'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:792: warning: implicit declaration of function `gtk_widget_set_usize'
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `Java_sun_awt_gtk_GComponentPeer_show':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:800: error: `data' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:806: warning: implicit declaration of function `gtk_widget_show'
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `Java_sun_awt_gtk_GComponentPeer_hide':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:813: error: `data' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:820: warning: implicit declaration of function `gtk_widget_hide'
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `Java_sun_awt_gtk_GComponentPeer_setEnabled':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:828: error: `data' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:834: warning: implicit declaration of function `gtk_widget_set_sensitive'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:834: error: `gboolean' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:834: error: syntax error before "enabled"
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `Java_sun_awt_gtk_GComponentPeer_updateWidgetStyle':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:841: error: `data' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `Java_sun_awt_gtk_GComponentPeer_setCursorNative':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:852: error: `data' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `Java_sun_awt_gtk_GComponentPeer_requestFocus':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:863: error: `data' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:874: warning: implicit declaration of function `gtk_container_focus'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:874: error: `GTK_DIR_TAB_FORWARD' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:877: warning: implicit declaration of function `gtk_widget_grab_focus'
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `Java_sun_awt_gtk_GComponentPeer_postMouseEventToGtk':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:890: error: `GdkEvent' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:890: error: `gdkevent' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:890: error: syntax error before ')' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c:903: warning: implicit declaration of function `gdk_event_put'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:911: error: `GDK_BUTTON_PRESS' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:917: error: `GDK_2BUTTON_PRESS' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:923: error: `GDK_3BUTTON_PRESS' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:930: warning: implicit declaration of function `gdk_event_free'
../../src/share/personal/native/awt/gtk/GComponentPeer.c: In function `Java_sun_awt_gtk_GComponentPeer_postKeyEventToGtk':
../../src/share/personal/native/awt/gtk/GComponentPeer.c:940: error: `GdkEvent' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:940: error: `gdkevent' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:940: error: syntax error before ')' token
../../src/share/personal/native/awt/gtk/GComponentPeer.c:979: warning: implicit declaration of function `g_free'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:995: warning: implicit declaration of function `g_strndup'
../../src/share/personal/native/awt/gtk/GComponentPeer.c:995: error: syntax error before "gchar"
../../src/share/personal/native/awt/gtk/GComponentPeer.c:1019: error: syntax error before "gchar"
../../src/share/personal/native/awt/gtk/GComponentPeer.c:1035: error: `GDK_SHIFT_MASK' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:1038: error: `GDK_CONTROL_MASK' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:1041: error: `GDK_MOD1_MASK' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:1044: error: `GDK_MOD2_MASK' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:1047: error: `GDK_BUTTON1_MASK' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:1050: error: `GDK_BUTTON2_MASK' undeclared (first use in this function)
../../src/share/personal/native/awt/gtk/GComponentPeer.c:1053: error: `GDK_BUTTON3_MASK' undeclared (first use in this function)
make: *** [../../build/linux-arm-generic/./obj/GComponentPeer.o] Error 1

You mentioned in an earlier post
>Try using this from the N800 Maemo toolchain command: pkg-config --cflags gtk

I did:

[sbox-SDK_X86: ~] > pkg-config --cflags gtk+-2.0
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include

also did the same from SDK_Armel menu.

Could you help me out here?

Thanks in advance.

Saad

mfabiop
Offline
Joined: 2005-03-06
Points: 0

Hi Saad,

Are you running make command inside or outside scratchbox?

I got the same error when tried to make outside scratchbox. If i try inside scratchbox, i don't have a valid Java installation inside it and get the following lines when try to compile.

BISON = /usr/bin/bison
CVM_JAVA =
CVM_JAVAC =
CVM_JAVAH =
CVM_JAR =
TARGET_CC = /scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-gcc

Thanks!

saadliaquat
Offline
Joined: 2007-08-31
Points: 0

Hi,
> Are you running make command inside or outside
> scratchbox?
>

Running make outside the scratchbox.

> If i try inside scratchbox,

I can't try that, can not see / (top level) directory completely in scratchbox environment.

I am pretty sure it is supposed to be built outside scratchbox (everything has gone smoothly up till now) and I have successfully built phoneMe advanced without personal profile and tested on n800. make in that case was run out of scratch box.

Do drop in a line if you come across a solution.

Thanks,

Saad

Message was edited by: saadliaquat