Re: Help with installation library gtk in ubuntu
- From: Sergei Steshenko <sergstesh yahoo com>
- To: Moises <ammoises yahoo com mx>, gtk-list gnome org
- Subject: Re: Help with installation library gtk in ubuntu
- Date: Thu, 6 Dec 2007 22:57:33 -0800 (PST)
--- Moises <ammoises yahoo com mx> wrote:
> Hello to all, my name is moises
>
> I am working with ubuntu 7.10,and I installed gtk
> library with synaptic package manager. and where i
> verify the installation with:
>
> 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
>
> pkg-config --libs gtk+-2.0
> -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
> -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender
> -lXinerama -lXi -lXrandr -lXcursor -lXcomposite
> -lXdamage -lpango-1.0 -lcairo -lX11 -lXfixes
> -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
>
>
> but where I try compile:
>
>
>
> #include <gtk/gtk.h>
>
>
>
>
>
> int main(int argc,char *argv[]){
>
>
>
>
>
> GtkWidget *window;
>
>
>
> gtk_init (&argc, &argv);
>
>
>
>
>
> //Top-level window.
>
> window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
>
> gtk_window_set_title (GTK_WINDOW (window),
> "multiarb");
>
>
>
> g_signal_connect (G_OBJECT (window),
> "delete_event",G_CALLBACK (gtk_main_quit), NULL);
>
>
>
> //Show window.
>
> gtk_widget_show (window);
>
> gtk_main ();
>
>
>
> return 0;
>
> }
>
>
>
>
> but I have next error:
>
> gcc 'pkg-config --cflags --libs gtk+-2.0' main.c -o
> main.out
>
> gcc: pkg-config --cflags --libs gtk+-2.0: No such file
> or directory
The answer is in your question - it looks like you've used forward quotes - "'" - instead
of backquotes - "`".
I.e. you should have written
gcc `pkg-config --cflags --libs gtk+-2.0` main.c -o main.out
.
--Sergei.
Applications From Scratch: http://appsfromscratch.berlios.de/
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]