Ask Your Question

Can I write a GUI program in the C language in Fedora?

asked 2011-11-18 01:29:08 -0500

vinayk gravatar image

updated 2012-10-08 14:24:29 -0500

mattdm gravatar image

is it possible to write graphics program using c language in Fedora 16?

edit retag flag offensive close merge delete

6 Answers

Sort by ยป oldest newest most voted

answered 2011-11-18 01:39:01 -0500

mether gravatar image

There are multiple choices for this. On the command line, there is ncurses and newt and for the X interface, there is GTK and Qt among others.

edit flag offensive delete link more

answered 2011-11-18 06:54:14 -0500

Wutzara gravatar image

Of course - there are many examples. Like MyPaint or GIMP if this is what you understand under "graphics" program. GIMP is written in C (better GObject) and MyPaint is written in Python.

If you think about User Interfaces then there is GTK+ for C and Qt for C++.

edit flag offensive delete link more

answered 2011-11-18 08:41:44 -0500

ritz gravatar image
edit flag offensive delete link more

answered 2012-10-08 12:40:13 -0500

dmalcolm gravatar image

A "graphics program" could cover many different things.

If you're interested in learning graphics programming in C on Fedora, a good place to start might be the Cairo tutorial:

Cairo is the 2D API that underpins the GTK stack, and the principles are applicable to many other graphical APIs, so it's worth a look if you want to learn graphical programming.


yum install cairo-devel gcc

on a Fedora box should give you the dependencies you need to run the demo.

Hope this is helpful

edit flag offensive delete link more

answered 2012-10-10 03:23:18 -0500

fabiand gravatar image

updated 2012-10-24 04:20:39 -0500

Another interesting language, especially for a GNOME desktop, is vala.

It is easier than C but you can use many "GUI related" libraries (written in e.g. C) you will need to create your own GUI program.

Have alook here for exampel code:

edit flag offensive delete link more

answered 2011-11-18 05:03:56 -0500

thunderbirdtr gravatar image

You can try to use Eclipse or install VIM GUI and make .c file to write another way is use Emacs,

But I suggest to use Eclipse and I remmembered now ,

Take a look to "monodevelop"

Good Luck .

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2011-11-18 01:29:08 -0500

Seen: 2,136 times

Last updated: Oct 24 '12