PDA

View Full Version : how to compile gtk+2 at knoppix version 3.3



eboy
08-21-2009, 07:06 PM
hello there,

i am new to knoppix...i use fedora before...for some educational purpose i have to use knoppix version 3.3.....i write a gui program with gtk+ at fedora 7 .....no problem to compile and execute ....but when i try to compile same program at knoppix there are some error came out....i guess there is a version mismatch....so currently the knoppix version i am using does not support gtk+2.0......how i can i now update gtk+ version from 1.2 to 2.0 in knoppix.



example of error:
============


root@box:~/Desktop/gtk# gcc base.c -o base `pkg-config --cflags --libs gtk+`
root@box:~/Desktop/gtk# ls
base base.c
root@box:~/Desktop/gtk# gcc base.c -o base2 `pkg-config --cflags --libs gtk+-2.0`
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
base.c:1:21: gtk/gtk.h: No such file or directory
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:5: error: `window' undeclared (first use in this function)
base.c:9: error: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this function)
root@box:~/Desktop/gtk#