LinuxQuestions.org
Visit Jeremy's Blog.
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 01-13-2004, 08:32 PM   #1
Ekim Gram
Member
 
Registered: Apr 2003
Location: West Islip, New York
Distribution: Slackware 10.0, Windows XP Pro
Posts: 128

Rep: Reputation: 15
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?
 
Old 01-13-2004, 08:37 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
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
 
Old 01-14-2004, 06:18 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,407

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
An API is not a visual toolkit, an API is a document defining relevant functions, vairables etc... for any given library.
 
Old 01-14-2004, 06:29 AM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
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.
 
Old 01-14-2004, 07:55 AM   #5
synna
Member
 
Registered: Jan 2004
Posts: 40

Rep: Reputation: 15
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.
 
Old 01-14-2004, 01:39 PM   #6
Ekim Gram
Member
 
Registered: Apr 2003
Location: West Islip, New York
Distribution: Slackware 10.0, Windows XP Pro
Posts: 128

Original Poster
Rep: Reputation: 15
So to make some Linux applications, I would use GTK or GT? What if your under WindowMaker? Does it matter?
 
Old 01-15-2004, 11:43 PM   #7
Chris Weimer
Member
 
Registered: Jan 2004
Location: http://www.neonostalgia.com/
Distribution: Slackware 12.1
Posts: 81

Rep: Reputation: 15
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?
 
Old 01-16-2004, 04:22 AM   #8
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
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.
 
Old 01-17-2004, 04:45 PM   #9
Chris Weimer
Member
 
Registered: Jan 2004
Location: http://www.neonostalgia.com/
Distribution: Slackware 12.1
Posts: 81

Rep: Reputation: 15
ah, ok thanks. I was wondering about that. What exactly though is Motif? Is it another toolkit. I like torture
 
Old 01-17-2004, 04:58 PM   #10
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Program GTK apps objorkum Programming 5 11-20-2004 10:30 PM
linux crypto api saajii Programming 3 08-31-2004 09:16 PM
What API availible under the Linux? sonm Programming 3 12-30-2003 03:45 AM
Brand New to Linux, intermediate Programmer, want to program for linux destop apps albertrosa Programming 4 12-08-2003 07:49 AM
Does Linux have API-like functions solartear Programming 8 04-03-2002 12:40 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration