LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   What API do you program Linux apps in? (https://www.linuxquestions.org/questions/programming-9/what-api-do-you-program-linux-apps-in-134548/)

Ekim Gram 01-13-2004 08:32 PM

What API do you program Linux apps in?
 
I'm just going back to Linux and I wanna give a shot at some Linux programming, maybe make a simple little calculator to ease my need for a new language. I've heard of GT and GTK but I don't know what those are. Can somebody please explain?

leonscape 01-13-2004 08:37 PM

GTK is a tool kit. It usually found in GNOME. Basically it holds all the basic widgets and stuff, ( Windows, Buttons etc ) Think MFC for windows. Qt is another tool kit used by KDE. Their are several others as well but these are the main two. KDE is built on top of Qt. GNOME is built on top of GTK. GT is a type of car ;)

acid_kewpie 01-14-2004 06:18 AM

An API is not a visual toolkit, an API is a document defining relevant functions, vairables etc... for any given library.

leonscape 01-14-2004 06:29 AM

A toolkit is not API, but it does have an "Application Programming Interface". API's also relate to other things than libraries, IPC for instance. So inferred what he meant from what he asked.

synna 01-14-2004 07:55 AM

Qt is Object Oriented and it's really well designed in this way. So if you want to code in C++ maybe you should choose this one.

GTK is written in C and so, it's procedural. I know that there's a C++ interface gtkmm or something but I don't know how good it is.

Ekim Gram 01-14-2004 01:39 PM

So to make some Linux applications, I would use GTK or GT? What if your under WindowMaker? Does it matter?

Chris Weimer 01-15-2004 11:43 PM

OK, I too want to program with Linux GUI. I do not however like "MFC" type stuff, so is there anything for the hard worker who likes to torture himself with meticulous coding? Like Win32, I've finally learned to use it pretty well, even without MSVC++. So, what can I use that is pure coding, not cover up?

leonscape 01-16-2004 04:22 AM

You could always use motif, if you really want torture.

The MFC type stuff, is MS equivalent of a tool kit. Microsoft built their toolkit almost directly into windows.

Linux doesn't work like that. Linux->X11(XFree86)->Toolkit is the set up. You usually pick a tool kit to work with. If your using C++ I'd recommend Qt as the toolkit to use.

Many coders have spent many years getting the toolkit right so we don't have to torture ourselves with something like MFC. Its still real coding. It ain't no cover up. Its just our tools are better written.

Chris Weimer 01-17-2004 04:45 PM

ah, ok thanks. I was wondering about that. What exactly though is Motif? Is it another toolkit. I like torture ;)

leonscape 01-17-2004 04:58 PM

Its probably one of the oldest toolkits, used mainly on Sun Solaris systems with CDE. Its not very popular on Linux. I seriously would stay away from it if I was you. Even the guys who buy Sun Solaris systems usually replace Motif/CDE with Qt/KDE as quickly as possible, even its home market can't stand it :)


All times are GMT -5. The time now is 05:33 AM.