Ask Your Question
1

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

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

vinayk gravatar image

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

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
2

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

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
2

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

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
1

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

ritz gravatar image
edit flag offensive delete link more
1

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

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: http://cairographics.org/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.

Running:

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
1

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

fabiand gravatar image

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

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: https://live.gnome.org/Vala/Documentation#Sample_Code

edit flag offensive delete link more
0

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

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 ,

http://www.eclipse.org/

Take a look to "monodevelop"

http://monodevelop.com/

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

Stats

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

Seen: 2,106 times

Last updated: Oct 24 '12