Re: Installing GTK+
Eduardo M KALINOWSKI <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > John Salmon wrote: >> I'm trying to compile the first program from "GTK+ 2.0 Tutorial" >> located in the GNOME Documentation Library on the gnome.org website. >> [snip] >> The command (also from the same place) is; >> [EMAIL PROTECTED]:~/tut$ >gcc base.c 'pkg-config --cflags --libs gtk+-2.0' >> >> The response I get from the compiler is; >> gcc: pkg-config --cflags --libs gik+-2.0: no such file or directory >> base.c:1:21: error: gtk/gtk.h: No such file or directory >> base.c:3: error: conflicting types for 'argv' >> base.c:3: error: previous definition of 'argv' was here >> base.c: in function 'main': >> base.c:5: error: 'GtkWidget' undeclared (first use in this function) >> base.c:5: error: (Each undeclared identifier is reported only once >> base.c:5: error: for each function it appears in.) >> base.c:6: error: 'window' undeclared (first use in this function) >> base.c:8: error: 'argc' undeclared (first use in this function) >> base.c:10: error: expected ';' before 'window' >> [EMAIL PROTECTED]:~/tut$ > >> >> The first line seems to indicate that I'm missing the whole package. >> > No, you're missing the development package. Run > > # apt-get install libgtk2.0-dev > > to get it. > Actually, there were a number of stupid typos in the source and in yhe command line. Plus, I thought I had installed the 'gnome-devel' package, but hadn't. Everything now runs without a hitch. Thanks all for the support and the understanding. -- John Salmon [EMAIL PROTECTED] Posted via Pronews.com - Premium Corporate Usenet News Provider http://www.pronews.com offers corporate packages that have access to 100,000+ newsgroups -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Installing GTK+
John Salmon wrote: I'm trying to compile the first program from "GTK+ 2.0 Tutorial" located in the GNOME Documentation Library on the gnome.org website. [snip] The command (also from the same place) is; [EMAIL PROTECTED]:~/tut$ >gcc base.c 'pkg-config --cflags --libs gtk+-2.0' The response I get from the compiler is; gcc: pkg-config --cflags --libs gik+-2.0: no such file or directory base.c:1:21: error: gtk/gtk.h: No such file or directory base.c:3: error: conflicting types for 'argv' base.c:3: error: previous definition of 'argv' was here base.c: in function 'main': base.c:5: error: 'GtkWidget' undeclared (first use in this function) base.c:5: error: (Each undeclared identifier is reported only once base.c:5: error: for each function it appears in.) base.c:6: error: 'window' undeclared (first use in this function) base.c:8: error: 'argc' undeclared (first use in this function) base.c:10: error: expected ';' before 'window' [EMAIL PROTECTED]:~/tut$ > The first line seems to indicate that I'm missing the whole package. No, you're missing the development package. Run # apt-get install libgtk2.0-dev to get it. -- Indifference will certainly be the downfall of mankind, but who cares? Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Installing GTK+
Andrei Popescu <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED] at.bofh.it: > On Sat, Mar 29, 2008 at 12:05:50PM -0500, John Salmon wrote: >> How does one go about installing GTK+ into Debian Etch using Aptitude? > > Please explain what you are trying to achieve. GTK is a library used by > various programs. If a Debian program requires the library it will get > installed automatically by apt(itude). > > If you want to compile some program you need some specific packages, not > the runtime libraries, so please explain what you are trying to do. > > Regards, > Andrei I'm trying to compile the first program from "GTK+ 2.0 Tutorial" located in the GNOME Documentation Library on the gnome.org website. The source code is as follows; #include int main(int argv, char *argv[]) { GtkWidget *window; gtk_init(&argc, &argv) window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_show(window); gtk_main(); return 0; } The command (also from the same place) is; [EMAIL PROTECTED]:~/tut$ >gcc base.c 'pkg-config --cflags --libs gtk+-2.0' The response I get from the compiler is; gcc: pkg-config --cflags --libs gik+-2.0: no such file or directory base.c:1:21: error: gtk/gtk.h: No such file or directory base.c:3: error: conflicting types for 'argv' base.c:3: error: previous definition of 'argv' was here base.c: in function 'main': base.c:5: error: 'GtkWidget' undeclared (first use in this function) base.c:5: error: (Each undeclared identifier is reported only once base.c:5: error: for each function it appears in.) base.c:6: error: 'window' undeclared (first use in this function) base.c:8: error: 'argc' undeclared (first use in this function) base.c:10: error: expected ';' before 'window' [EMAIL PROTECTED]:~/tut$ > The first line seems to indicate that I'm missing the whole package. -- John Salmon [EMAIL PROTECTED] Posted via Pronews.com - Premium Corporate Usenet News Provider http://www.pronews.com offers corporate packages that have access to 100,000+ newsgroups -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Installing GTK+
On Sat, Mar 29, 2008 at 12:05:50PM -0500, John Salmon wrote: > How does one go about installing GTK+ into Debian Etch using Aptitude? Please explain what you are trying to achieve. GTK is a library used by various programs. If a Debian program requires the library it will get installed automatically by apt(itude). If you want to compile some program you need some specific packages, not the runtime libraries, so please explain what you are trying to do. Regards, Andrei -- If you can't explain it simply, you don't understand it well enough. (Albert Einstein) signature.asc Description: Digital signature
Re: Installing GTK+
On Sat, Mar 29, 2008 at 12:05:50PM -0500, John Salmon wrote: > How does one go about installing GTK+ into Debian Etch using Aptitude? > - % apt-cache search libgtk|grep -vi perl|grep -vi ruby|grep -vi java|grep -vi opengl|grep -vi html|grep -vi ocaml|sort|more - this should show you some packages for it. -- | .''`. == Debian GNU/Linux == | my web site: | | : :' : The Universal |mysite.verizon.net/kevin.mark/| | `. `' Operating System| go to counter.li.org and | | `-http://www.debian.org/ |be counted! #238656 | | my keyserver: subkeys.pgp.net | my NPO: cfsg.org | |join the new debian-community.org to help Debian! | |___ Unless I ask to be CCd, assume I am subscribed ___| -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]