Quote:
Originally Posted by arnold.king
hi all:
as title . i want to built a C GUI program environment in ubuntu. i know i should install gtk . but i try and try , and still failed . could some one help me ? thanks !!
|
Open a terminal and type
sudo apt-get install libgtk2.0-dev That's the GTK development library.
To compile, append
`pkg-config --cflags --libs gtk+-2.0` to the end of your regular compilation.
Example: gcc -Wall gtk_program.c -o gtk_program `pkg-config --cflags --libs gtk+-2.0`
EDIT: I was thinking, if you are not comfortable with the command line and prefer a UI; check out glade. Its a UI for GTK development. If so, look here ->
http://glade.gnome.org/
EDIT: I know this works because I use an Ubuntu live CD on the go when I want to pull my project repository from GITHUB. I install git, git-core, and libgtk2.0-dev. I'm ready to start programming with GTK within 3 minutes of booting up.