Kompilieren von Anwendungen mit GKT2 unter SuSE 9.3 -> Hi

Alles rund um die möglichen Desktopumgebungen wie KDE, Gnome, XFCE usw. die es unter Linux gibt

Moderator: Moderatoren

Antworten
Luzypher
Newbie
Newbie
Beiträge: 23
Registriert: 5. Jul 2004, 21:22

Kompilieren von Anwendungen mit GKT2 unter SuSE 9.3 -> Hi

Beitrag von Luzypher » 13. Aug 2005, 22:40

Hi folks!

Ich habe einige interessante Proggis im Netz für Gnome gefunden, u.a. gnomebaker. Leider kann ich, obwohl alle nötigen devel-Pakete installiert sind, keine einzige Anwendung für Gnome/GTK2 kompilieren! Ich erhalte dabei immer die gleichen Fehlermeldungen beim Kompilieren. Hier mal von gnomebaker:

---

if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DORBIT2=1 -pthread -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/libart-2.0 -I/usr/include/libxml2 -I/opt/gnome/include/libgnomeui-2.0 -I/opt/gnome/include/libgnome-2.0 -I/opt/gnome/include/libgnomecanvas-2.0 -I/opt/gnome/include/gtk-2.0 -I/opt/gnome/include/gconf/2 -I/opt/gnome/include/libbonoboui-2.0 -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -I/opt/gnome/include/orbit-2.0 -I/opt/gnome/include/libbonobo-2.0 -I/opt/gnome/include/gnome-vfs-2.0 -I/opt/gnome/lib/gnome-vfs-2.0/include -I/opt/gnome/include/bonobo-activation-2.0 -I/opt/gnome/include/pango-1.0 -I/usr/include/freetype2 -I/opt/gnome/lib/gtk-2.0/include -I/usr/X11R6/include -I/opt/gnome/include/atk-1.0 -I/usr/include/freetype2/config -I/opt/gnome/include/libglade-2.0 -I/opt/gnome/include/gstreamer-0.8 -Wall -g -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
In file included from /opt/gnome/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:33,
from /opt/gnome/include/gtk-2.0/gdk/gdkcursor.h:5,
from /opt/gnome/include/gtk-2.0/gdk/gdk.h:31,
from /opt/gnome/include/gtk-2.0/gtk/gtkwidget.h:30,
from /opt/gnome/include/libglade-2.0/glade/glade-xml.h:26,
from /opt/gnome/include/libglade-2.0/glade/glade.h:28,
from gnomebaker.h:29,
from main.c:26:
/opt/gnome/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:163: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:163: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:163: Warnung: data definition has no type or storage class
/opt/gnome/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:184: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:184: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:184: Warnung: data definition has no type or storage class
/opt/gnome/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:201: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:201: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:201: Warnung: data definition has no type or storage class
In file included from /opt/gnome/include/gtk-2.0/gtk/gtkwidget.h:32,
from /opt/gnome/include/libglade-2.0/glade/glade-xml.h:26,
from /opt/gnome/include/libglade-2.0/glade/glade.h:28,
from gnomebaker.h:29,
from main.c:26:
/opt/gnome/include/gtk-2.0/gtk/gtkobject.h:129: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtkobject.h:129: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtkobject.h:129: Warnung: data definition has no type or storage class
/opt/gnome/include/gtk-2.0/gtk/gtkobject.h:207: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtkobject.h:207: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtkobject.h:207: Warnung: data definition has no type or storage class
/opt/gnome/include/gtk-2.0/gtk/gtkobject.h:210: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtkobject.h:210: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtkobject.h:210: Warnung: data definition has no type or storage class
In file included from /opt/gnome/include/libglade-2.0/glade/glade-xml.h:26,
from /opt/gnome/include/libglade-2.0/glade/glade.h:28,
from gnomebaker.h:29,
from main.c:26:
/opt/gnome/include/gtk-2.0/gtk/gtkwidget.h:438: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtkwidget.h:438: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtkwidget.h:438: Warnung: data definition has no type or storage class
/opt/gnome/include/gtk-2.0/gtk/gtkwidget.h:447: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtkwidget.h:447: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtkwidget.h:447: Warnung: data definition has no type or storage class
/opt/gnome/include/gtk-2.0/gtk/gtkwidget.h:719: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtkwidget.h:719: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtkwidget.h:719: Warnung: data definition has no type or storage class
In file included from /opt/gnome/include/gtk-2.0/gtk/gtkbin.h:32,
from /opt/gnome/include/gtk-2.0/gtk/gtkwindow.h:33,
from /opt/gnome/include/gtk-2.0/gtk/gtktooltips.h:31,
from /opt/gnome/include/libglade-2.0/glade/glade-xml.h:27,
from /opt/gnome/include/libglade-2.0/glade/glade.h:28,
from gnomebaker.h:29,
from main.c:26:
/opt/gnome/include/gtk-2.0/gtk/gtkcontainer.h:177: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtkcontainer.h:177: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtkcontainer.h:177: Warnung: data definition has no type or storage class
/opt/gnome/include/gtk-2.0/gtk/gtkcontainer.h:181: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtkcontainer.h:181: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtkcontainer.h:181: Warnung: data definition has no type or storage class
/opt/gnome/include/gtk-2.0/gtk/gtkcontainer.h:185: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtkcontainer.h:185: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtkcontainer.h:185: Warnung: data definition has no type or storage class
In file included from /opt/gnome/include/gtk-2.0/gtk/gtkaboutdialog.h:28,
from /opt/gnome/include/gtk-2.0/gtk/gtk.h:32,
from /opt/gnome/include/libgnomeui-2.0/gnome.h:4,
from gnomebaker.h:30,
from main.c:26:
/opt/gnome/include/gtk-2.0/gtk/gtkdialog.h:133: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtkdialog.h:133: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtkdialog.h:133: Warnung: data definition has no type or storage class
/opt/gnome/include/gtk-2.0/gtk/gtkdialog.h:143: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtkdialog.h:143: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtkdialog.h:143: Warnung: data definition has no type or storage class
In file included from /opt/gnome/include/gtk-2.0/gtk/gtk.h:32,
from /opt/gnome/include/libgnomeui-2.0/gnome.h:4,
from gnomebaker.h:30,
from main.c:26:
/opt/gnome/include/gtk-2.0/gtk/gtkaboutdialog.h:65: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtkaboutdialog.h:65: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtkaboutdialog.h:65: Warnung: data definition has no type or storage class
In file included from /opt/gnome/include/gtk-2.0/gtk/gtkcelllayout.h:26,
from /opt/gnome/include/gtk-2.0/gtk/gtk.h:49,
from /opt/gnome/include/libgnomeui-2.0/gnome.h:4,
from gnomebaker.h:30,
from main.c:26:
/opt/gnome/include/gtk-2.0/gtk/gtktreeviewcolumn.h:127: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtktreeviewcolumn.h:127: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtktreeviewcolumn.h:127: Warnung: data definition has no type or storage class
/opt/gnome/include/gtk-2.0/gtk/gtktreeviewcolumn.h:142: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtktreeviewcolumn.h:142: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtktreeviewcolumn.h:142: Warnung: data definition has no type or storage class
In file included from /opt/gnome/include/gtk-2.0/gtk/gtk.h:49,
from /opt/gnome/include/libgnomeui-2.0/gnome.h:4,
from gnomebaker.h:30,
from main.c:26:
/opt/gnome/include/gtk-2.0/gtk/gtkcelllayout.h:83: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtkcelllayout.h:83: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtkcelllayout.h:83: Warnung: data definition has no type or storage class
In file included from /opt/gnome/include/gtk-2.0/gtk/gtkcombobox.h:25,
from /opt/gnome/include/gtk-2.0/gtk/gtk.h:65,
from /opt/gnome/include/libgnomeui-2.0/gnome.h:4,
from gnomebaker.h:30,
from main.c:26:
/opt/gnome/include/gtk-2.0/gtk/gtktreeview.h:170: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtktreeview.h:170: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtktreeview.h:170: Warnung: data definition has no type or storage class
In file included from /opt/gnome/include/gtk-2.0/gtk/gtk.h:82,
from /opt/gnome/include/libgnomeui-2.0/gnome.h:4,
from gnomebaker.h:30,
from main.c:26:
/opt/gnome/include/gtk-2.0/gtk/gtkfilechooserdialog.h:58: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtkfilechooserdialog.h:58: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtkfilechooserdialog.h:58: Warnung: data definition has no type or storage class
/opt/gnome/include/gtk-2.0/gtk/gtkfilechooserdialog.h:64: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtkfilechooserdialog.h:64: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtkfilechooserdialog.h:64: Warnung: data definition has no type or storage class
In file included from /opt/gnome/include/gtk-2.0/gtk/gtk.h:158,
from /opt/gnome/include/libgnomeui-2.0/gnome.h:4,
from gnomebaker.h:30,
from main.c:26:
/opt/gnome/include/gtk-2.0/gtk/gtktextbuffer.h:189: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtktextbuffer.h:189: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtktextbuffer.h:189: Warnung: data definition has no type or storage class
/opt/gnome/include/gtk-2.0/gtk/gtktextbuffer.h:196: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtktextbuffer.h:196: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtktextbuffer.h:196: Warnung: data definition has no type or storage class
/opt/gnome/include/gtk-2.0/gtk/gtktextbuffer.h:295: error: Syntaxfehler before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gtk/gtktextbuffer.h:295: Warnung: type defaults to `int' in declaration of `G_GNUC_SENTINEL'
/opt/gnome/include/gtk-2.0/gtk/gtktextbuffer.h:295: Warnung: data definition has no type or storage class
make[2]: *** [main.o] Fehler 1
make[2]: Leaving directory `/home/dirk/gnomebaker-0.4/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/dirk/gnomebaker-0.4'
make: *** [all] Fehler 2
dirk@darkstar:~/gnomebaker-0.4>

---

Die Fehlermeldungen treten äquivalent auch bei allen anderen Gnome-Anwendungen beim Kompilieren auf, egal ob Gimp-Plugins oder z.B. graveman. Wer kann mir ein paar Tips geben und ggf. helfen?

cu ...
Luzy

P.S.: Ich habe zur Probe mal GTK2.7.x vom Gnome-Supplementary aufgespielt, damit erhalte ich zwar nicht mehr diese Fehlermeldungen (nur welche betreffend bestimmter neuer Gnome-Libs), aber dann funzt Gnome 2.10.x bei mir nicht mehr einwandfrei.

Werbung:
}-Tux-{
Moderator
Moderator
Beiträge: 696
Registriert: 12. Dez 2004, 19:54
Kontaktdaten:

Beitrag von }-Tux-{ » 13. Aug 2005, 22:54

hatte das selbe prob... und konnte auch nichts weiter dazu finden :/
ich habs wie folgt gelöst:
gtk2 src.rpm geladen:
den gtksentinel patch im spec file auskommentiert/entfernt und dann das paket rebuild'ed.

Funzt ohne probs.


cheers }-Tux-{

Ps hier findest du ein graveman rpm http://ftp4.gwdg.de/pub/linux/suse/apt/ ... 2.i586.rpm

Benutzeravatar
oc2pus
Ultimate Guru
Ultimate Guru
Beiträge: 6506
Registriert: 21. Jun 2004, 13:01

Beitrag von oc2pus » 13. Aug 2005, 23:16

ihr müsst darauf achten, das glib2 und gtk2 vom selben Majorrelease sind. Also gtk2-2.6.x und glib2-2.6.x, geht. gtk2-2.7.x und glib2-2.6.x geht nicht ;)
tell people what you want to do, and they'll probably help you to do it.
PackMan
LinWiki : Das Wiki für Linux User

Antworten

Wer ist online?

Mitglieder in diesem Forum: Google [Bot] und 3 Gäste