Nieuws:

Ubuntu-NL weer online!

Na een periode van technische problemen en een overbelaste server zijn we eindelijk weer bereikbaar.
Samen met Hobbynet, onze sponsor en hostingpartner, hebben we een oplossing gevonden zodat alles weer soepel draait.

Bedankt voor jullie geduld en begrip. We hopen nu weer verder te gaan waar we gebleven waren.

Het team van Ubuntu-NL

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: kan GTK+ niet installeren  (gelezen 919 keer)

Offline JV.com

  • Lid
kan GTK+ niet installeren
« Gepost op: 2009/09/28, 19:34:28 »
Goedenavond,

Ik wil wat aan oefenen met gtk+. alleen dit alles krijg ik niet geinstalleerd. ik heb GTK-2.18.0.tar.gz gedownload, uitgepakt. en dan zeg ik in de uitgepakte folder:

1.
./configure

2.
make

3.
make install


ik denk dat dit alles wordt veroorzaakt doordat ik sommige pakketen geinstalleerd heb. want bij ./configure krijg ik de volgende melding:

checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.21.3    atk >= 1.13.0    pango >= 1.20    cairo >= 1.6)

Requested 'glib-2.0 >= 2.21.3' but version of GLib is 2.20.1
No package 'atk' found
No package 'pango' found
No package 'cairo' found

wie kan mij vertellen hoe ik deze pakketten geïnstalleerd krijg?

Alvast bedankt voor je hulp.

Grt,

JV.com

Re: kan GTK+ niet installeren
« Reactie #1 Gepost op: 2009/09/28, 19:37:23 »
GTK+ is standaard al geinstalleerd.

Wilt ge C/C++ programma's schrijven, hebt ge nog gtkmm nodig. Voor python nog python-gtk2.

Offline JV.com

  • Lid
Re: kan GTK+ niet installeren
« Reactie #2 Gepost op: 2009/09/28, 23:02:01 »
@Nunslaughter:

Inderdaad wil ik in C++ GTK+ programmas schrijven. Nu doe ik dit allemaal in code::blocks en daarin kies in netjes een GTK+ project. alleen is het probleem als ik deze wil runnen krijg ik deze fouten:

||=== GTKHelloWorld, Debug ===|
/media/DATA/Jelte/Programming/GTK+ tutorial/GTKHelloWorld/main.c|1|fout: gtk/gtk.h: Bestand of map bestaat niet|
/media/DATA/Jelte/Programming/GTK+ tutorial/GTKHelloWorld/main.c|5|fout: ‘GtkWidget’ undeclared (first use in this function)|
/media/DATA/Jelte/Programming/GTK+ tutorial/GTKHelloWorld/main.c|5|fout: (Each undeclared identifier is reported only once|
/media/DATA/Jelte/Programming/GTK+ tutorial/GTKHelloWorld/main.c|5|fout: for each function it appears in.)|
/media/DATA/Jelte/Programming/GTK+ tutorial/GTKHelloWorld/main.c|5|fout: ‘window’ undeclared (first use in this function)|
/media/DATA/Jelte/Programming/GTK+ tutorial/GTKHelloWorld/main.c|7|let op: impliciete declaratie van functie ‘gtk_init’|
/media/DATA/Jelte/Programming/GTK+ tutorial/GTKHelloWorld/main.c|9|let op: impliciete declaratie van functie ‘gtk_window_new’|
/media/DATA/Jelte/Programming/GTK+ tutorial/GTKHelloWorld/main.c|9|fout: ‘GTK_WINDOW_TOPLEVEL’ undeclared (first use in this function)|
/media/DATA/Jelte/Programming/GTK+ tutorial/GTKHelloWorld/main.c|10|let op: impliciete declaratie van functie ‘gtk_widget_show’|
/media/DATA/Jelte/Programming/GTK+ tutorial/GTKHelloWorld/main.c|12|let op: impliciete declaratie van functie ‘gtk_main’|
||=== Build finished: 10 errors, 0 warnings ===|

hierdoor dacht ik dat GTK+ niet geinstalleerd was.

de code van dit programma is:
#include <gtk/gtk.h>

int main(int argc, char *argv[])
{
    GtkWidget *window;

    gtk_init(&argc,&argv);

    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
    gtk_widget_show(window);

    gtk_main();

    return 0;
}

maar als GTK+ al geinstalleerd is ligt het volgens mij ergens anders aan. kan iemand zien waaraan?
over gtkmm en C++, volgens mij hoeft dit niet, alleen bied gtkmm een betere aansluiten bij C++.(correct me if i am wrong)

Kan iemand mij verder helpen?

alvast Bedankt!

JV.com

Offline JV.com

  • Lid
Re: kan GTK+ niet installeren
« Reactie #3 Gepost op: 2009/09/29, 20:00:00 »
Hallo beste mensen,

Sorry voor mijn late reacties, ik moest werken vandaag en had dus geen tijd jullie eerder te berichten over de gang van zaken.

ik heb het probleem met gtk/gtk.h opgelost.

door het volgende:

code::blocks  -> Settings -> Degugger and Compiler, en dan bij de tab Linker settings toevoegen:

usr/include/gtk-2.0/gtk/gtk.h hiervan krijg ik geen error meer.

alleen krijg ik nu een dikke vette bult met andere fouten:

/usr/include/gtk-2.0/gtk/gtk.h|32|fout: gdk/gdk.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|33|fout: gtk/gtkaboutdialog.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|34|fout: gtk/gtkaccelgroup.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|35|fout: gtk/gtkaccellabel.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|36|fout: gtk/gtkaccelmap.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|37|fout: gtk/gtkaccessible.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|38|fout: gtk/gtkaction.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|39|fout: gtk/gtkactiongroup.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|40|fout: gtk/gtkactivatable.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|41|fout: gtk/gtkadjustment.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|42|fout: gtk/gtkalignment.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|43|fout: gtk/gtkarrow.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|44|fout: gtk/gtkaspectframe.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|45|fout: gtk/gtkassistant.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|46|fout: gtk/gtkbbox.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|47|fout: gtk/gtkbin.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|48|fout: gtk/gtkbindings.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|49|fout: gtk/gtkbox.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|50|fout: gtk/gtkbuildable.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|51|fout: gtk/gtkbuilder.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|52|fout: gtk/gtkbutton.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|53|fout: gtk/gtkcalendar.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|54|fout: gtk/gtkcelleditable.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|55|fout: gtk/gtkcelllayout.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|56|fout: gtk/gtkcellrenderer.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|57|fout: gtk/gtkcellrendereraccel.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|58|fout: gtk/gtkcellrenderercombo.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|59|fout: gtk/gtkcellrendererpixbuf.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|60|fout: gtk/gtkcellrendererprogress.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|61|fout: gtk/gtkcellrendererspin.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|62|fout: gtk/gtkcellrenderertext.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|63|fout: gtk/gtkcellrenderertoggle.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|64|fout: gtk/gtkcellview.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|65|fout: gtk/gtkcheckbutton.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|66|fout: gtk/gtkcheckmenuitem.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|67|fout: gtk/gtkclipboard.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|68|fout: gtk/gtkcolorbutton.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|69|fout: gtk/gtkcolorsel.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|70|fout: gtk/gtkcolorseldialog.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|71|fout: gtk/gtkcombobox.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|72|fout: gtk/gtkcomboboxentry.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|73|fout: gtk/gtkcontainer.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|74|fout: gtk/gtkcurve.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|75|fout: gtk/gtkdebug.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|76|fout: gtk/gtkdialog.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|77|fout: gtk/gtkdnd.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|78|fout: gtk/gtkdrawingarea.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|79|fout: gtk/gtkeditable.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|80|fout: gtk/gtkentry.h: Bestand of map bestaat niet|
/usr/include/gtk-2.0/gtk/gtk.h|81|fout: gtk/gtkentrycompletion.h: Bestand of map bestaat niet|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|

als eerte item zak ik dat de file gdk/gdk.h niet gevonden wordt: dus ik weer:

Settings -> compiler and debugger -> linker settings, en dan toevoegen:

usr/include/gtk-2.0/gdk/gdk.h

alleen ditmaal blijft de foutmelding bestaan.

het is vast erg simpel maar wie weet hoe ik dit kan oplossen?

Alvast bedankt voor jullie hulp.

JV.com
« Laatst bewerkt op: 2009/09/29, 20:02:36 door JV.com »

Offline JV.com

  • Lid
Re: kan GTK+ niet installeren
« Reactie #4 Gepost op: 2009/09/29, 20:32:53 »
opgelost, ben naar Settings -> Debugger and Compiler -> Search Directory gegaan. in dit tabblad kiezen voor de tabblad Linker en daar de usr/gtk-2.0/gtk + usr/gtk-2.0/gdk directy zetten..

alstublaft.

JV.com