LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-02-2012, 10:31 PM   #1
arnold.king
LQ Newbie
 
Registered: Sep 2012
Location: China
Distribution: fedora
Posts: 8

Rep: Reputation: Disabled
how to built a gtk develop Environment for C programe


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 !!
 
Old 09-02-2012, 11:10 PM   #2
billyoc
LQ Newbie
 
Registered: Oct 2010
Posts: 23

Rep: Reputation: 23
Quote:
Originally Posted by arnold.king View Post
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 !!

Install anjuta and use that to create a new project.
 
Old 09-03-2012, 01:09 AM   #3
amboxer21
Member
 
Registered: Mar 2012
Location: New Jersey
Distribution: Gentoo
Posts: 291

Rep: Reputation: Disabled
Quote:
Originally Posted by arnold.king View Post
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.

Last edited by amboxer21; 09-03-2012 at 07:15 AM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Has anyone built GTK+ recently? leiphasw Linux - Software 5 11-15-2010 05:14 PM
Getting Acer 5536 built-in modem Conexant CX11270 to work with efax-gtk ario Linux - Hardware 1 11-14-2010 04:45 AM
Develop GUI using GTK+ ,Glade for uav Ground station nipunreddevil Programming 2 07-20-2009 09:09 PM
Hook my code to GUI which I built with GTK? Dinux Linux - Software 1 05-05-2009 02:16 PM
Hook my code to GUI which I built with GTK? Dinux Programming 1 04-26-2004 04:41 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration