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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-13-2004, 08:32 PM
|
#1
|
|
Member
Registered: Apr 2003
Location: West Islip, New York
Distribution: Slackware 10.0, Windows XP Pro
Posts: 128
Rep:
|
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?
|
|
|
|
01-13-2004, 08:37 PM
|
#2
|
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
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 
|
|
|
|
01-14-2004, 06:18 AM
|
#3
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,707
|
An API is not a visual toolkit, an API is a document defining relevant functions, vairables etc... for any given library.
|
|
|
|
01-14-2004, 06:29 AM
|
#4
|
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
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.
|
|
|
|
01-14-2004, 07:55 AM
|
#5
|
|
Member
Registered: Jan 2004
Posts: 40
Rep:
|
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.
|
|
|
|
01-14-2004, 01:39 PM
|
#6
|
|
Member
Registered: Apr 2003
Location: West Islip, New York
Distribution: Slackware 10.0, Windows XP Pro
Posts: 128
Original Poster
Rep:
|
So to make some Linux applications, I would use GTK or GT? What if your under WindowMaker? Does it matter?
|
|
|
|
01-15-2004, 11:43 PM
|
#7
|
|
Member
Registered: Jan 2004
Location: http://www.neonostalgia.com/
Distribution: Slackware 12.1
Posts: 81
Rep:
|
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?
|
|
|
|
01-16-2004, 04:22 AM
|
#8
|
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
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.
|
|
|
|
01-17-2004, 04:45 PM
|
#9
|
|
Member
Registered: Jan 2004
Location: http://www.neonostalgia.com/
Distribution: Slackware 12.1
Posts: 81
Rep:
|
ah, ok thanks. I was wondering about that. What exactly though is Motif? Is it another toolkit. I like torture 
|
|
|
|
01-17-2004, 04:58 PM
|
#10
|
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
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 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:31 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|