Fedora Linux Support Community & Resources Center
  #1  
Old 15th January 2011, 01:58 AM
AstralAbraxas Offline
Registered User
 
Join Date: Sep 2008
Posts: 39
linuxfedorafirefox
Linux GUI API

I'm new to developing on linux and I'm wondering what is recommended for developing GUI's on linux I've heard about Qt, Motif, Xlib, wxWidgets and GTK+ but I'm not really sure what I should go with. I'm going to want to be using OpenGL in addition with one of these eventually. I don't really know much about any of them though.
Reply With Quote
  #2  
Old 15th January 2011, 02:21 AM
pete_1967 Offline
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 4,205
linuxfedorafirefox
Re: Linux GUI API

GNOME (and XFCE etc) uses GTK, KDE uses QT. wxWidgets is platform independent so if you want to develop for Windows & Macs as well, it's the easiest to use.

It's a question of your preferences, QT apps run just as well on GNOME as GTK apps run on KDE.
__________________
A Drink is Not Just For Christmas - SaskyCom :thumb:


“Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime” so now go and...
RTFM FIRST: http://docs.fedoraproject.org/ & http://rute.2038bug.com/index.html.gz
Reply With Quote
  #3  
Old 15th January 2011, 02:21 AM
Cygn Offline
Registered User
 
Join Date: Dec 2008
Location: Paris, FR
Posts: 148
linuxfedorafirefox
Re: Linux GUI API

I've picked QT and never looked back.
People's choices widely differ, though.
Reply With Quote
  #4  
Old 15th January 2011, 04:55 AM
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 5,461
linuxfedorafirefox
Re: Linux GUI API

You could also try GNUstep. It has OpenGL support as part of the AppKit libraries.
Reply With Quote
  #5  
Old 15th January 2011, 04:54 PM
assen Offline
Registered User
 
Join Date: Oct 2008
Posts: 492
linuxfedorafirefox
Re: Linux GUI API

Hi,

More often than not the choice depends on one's programming skills and preference of language: GTK is written in C, so you'll do your coding in C; Qt is written in C++, so your own code will likely be C++. (Lots of bindings are available for other languages, but they are mostly suitable for drafting an app and not for heavy production).

WWell,
Reply With Quote
  #6  
Old 15th January 2011, 05:46 PM
Darton Offline
Registered User
 
Join Date: Jan 2011
Location: Virginia, USA
Age: 38
Posts: 73
linuxfedorafirefox
Re: Linux GUI API

Just to add my 2 cents:

If you're planning to use OpenGL, then your options are even wider because many OpenGL apps such as games don't use GTK or Qt UI widgets other than to paint and get a handle to the main window. They don't even have to use X. See http://wiki.linuxquestions.org/wiki/OpenGL for a good overview.

Also, check out your options on 3D Engines. OGRE is my personal favorite. They have a forum where you can get many of your 3D programming questions answered.

Choice of language, in addition to your preferences, depends on the features required by the application, which will determine the maturity of the platform required. I'm attempting a simple OGRE 3D visualization project (map flyovers) using C# on Mono, but I wouldn't build an MMORPG from the ground up using that platform. I would turn to something more like WorldForge, which is largely C++.

<propaganda>
This is the great thing about open source - the majority of wheels have already been invented. If you are flexible and willing to learn, you will find an existing project that almost meets your requirements, whatever they are. You are then free to modify that project to precisely meet your requirements.
</propaganda>

Last edited by Darton; 15th January 2011 at 05:55 PM.
Reply With Quote
  #7  
Old 18th January 2011, 07:27 AM
bioinfornatics Offline
Registered User
 
Join Date: Nov 2007
Posts: 24
linuxepiphany
Re: Linux GUI API

If you want a window + event + OpenGL + portable code you can look:
* SDL
* SFML

SDL is know for historical reason and SFML seem to be better
Reply With Quote
  #8  
Old 1st February 2011, 01:10 PM
Jamwa Offline
Registered User
 
Join Date: Jan 2008
Location: Nairobi Kenya
Posts: 554
windows_xp_2003firefox
Re: Linux GUI API

And also not forgetting that you can use Java to create GUI apps on Linux
Reply With Quote
  #9  
Old 1st February 2011, 04:55 PM
pythonsyntax Offline
Registered User
 
Join Date: Dec 2009
Posts: 51
linuxfedorafirefox
Re: Linux GUI API

What are some good GUI for java?
Reply With Quote
  #10  
Old 1st February 2011, 05:35 PM
mk27 Offline
Registered User
 
Join Date: Dec 2008
Posts: 89
linuxfedorafirefox
Re: Linux GUI API

For what it's worth, I've used pthreads with glut/openGL in one thread and a GTK+ interface in another, this works fine and dandy in real time. It's a nice way to experiment with OGL as you can create a generic set of controls in GTK for lighting, etc and use that in side by side windows with your OGL to model objects or whatever. You can also use OGL fullscreen and keep the GTK window hidden until the user presses some key combo.

That's a heaping helping of API to learn of course. The key is to use main() for the glut/OGL stuff and pthread_detach() for the gtk stuff (this can be either before you initialize glut, or anytime after that but before glutMainLoop() is called).
Attached Thumbnails
Click image for larger version

Name:	tmpss.jpg
Views:	116
Size:	98.0 KB
ID:	20660  
Reply With Quote
Reply

Tags
api, gui, linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a Linux LDAP server support Linux, Solaris, and Windows clients? Hiroshi Servers & Networking 1 19th February 2010 01:34 AM
Triple boot linux/linux/linux Steven.Buschie Linux Chat 1 15th December 2008 07:11 PM
Linux Ahead - Weekly news cover general linux and Fedora RahulSundaram Linux Chat 0 3rd October 2008 08:45 PM
Elite remake ported to Qt(KDE): Linux, MacOS X, Windows, Linux PDAs... abaraba Programming & Packaging 0 19th March 2008 04:19 AM
iPhone Linux, Apple TV Linux, Wii Linux, will they be real? Cookies Linux Chat 0 23rd January 2007 12:54 AM


Current GMT-time: 23:56 (Wednesday, 23-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat