LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-13-2010, 04:07 PM   #1
liny1984
LQ Newbie
 
Registered: Jun 2006
Distribution: openSUSE, Ubuntu
Posts: 23

Rep: Reputation: 0
Question Simple GUI toolkit for Linux


I guess this has been asked many times already but I was wondering if there is any really lightweight library thats already installed on most linux boxes that I can directly use for drawing :
1. textboxes or textfields
2. volume meters like the ones shown in KMixer

I need to show some rapidly varying values and thats all really....some buttons, gauges thats all...GTK and KDE seem to heavy weight but they seem to be the only ones which are installed by default on most distros.

I do not want to use SDL or opengl and then another library for rendering gui on top of them as SDL and opengl are not installed on many systems and i will move my code around quite a bit. It should be as simple as :

gcc main.c
./a.out

Any such options ?.....and yeah I dont want to worry about what version is installed in my target system etc..I will be compiling once anyway and not distributing binaries.
 
Old 02-13-2010, 04:10 PM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
Quote:
Originally Posted by liny1984 View Post
gcc main.c
./a.out
That's impossible, because no matter what toolkit you use you need to tell gcc to include the library.

I don't see the problem with using GTK+, because it seems to be the most commonly available, it's much more light-weight than Qt, and IMO relatively easy to program.
 
Old 02-13-2010, 04:15 PM   #3
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
I don't know very much about making widgets and things like this, but maybe FLTK (Fast Light ToolKit) would be worth looking into?

Sorry if this isn't ideal for the requirements, but it's nice and small!

Sasha
 
Old 02-13-2010, 06:08 PM   #4
liny1984
LQ Newbie
 
Registered: Jun 2006
Distribution: openSUSE, Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 0
right I think I will go with gtk...the only reason I cant use FLTK is because it may not be available by default on most distros. I have no problem with adding compiler flags of course...but I may not always have root access to install libraries. I am mostly targeting Ubuntu and Opensuse.

btw...Sasha..I see you are using Slackware64.....can you tell me which distro specifically...I am currently using SLAX on Qemu so I can access Linux on windows.

Last edited by liny1984; 02-13-2010 at 06:14 PM.
 
Old 02-13-2010, 06:13 PM   #5
liny1984
LQ Newbie
 
Registered: Jun 2006
Distribution: openSUSE, Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 0
right I think I will go with gtk...the only reason I cant use FLTK is because it may not be available by default on most distros. I have no problem with adding compiler flags of course...but I may not always have root access to install libraries. I am mostly targeting Ubuntu and Opensuse.

btw...Sasha..I see you are using Slackware64.....can you tell me which distro specifically...I am currently using SLAX on Qemu so I can access Linux on windows.
 
Old 02-13-2010, 06:49 PM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
Quote:
Originally Posted by liny1984 View Post
btw...Sasha..I see you are using Slackware64.....can you tell me which distro specifically...I am currently using SLAX on Qemu so I can access Linux on windows.
What do you mean? Slackware IS a distro on its own!
 
Old 02-13-2010, 08:25 PM   #7
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Hmm, yes, I'm using Slackware13.0 64bit.
 
Old 02-13-2010, 08:47 PM   #8
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 128Reputation: 128
Xlib is installed by default and is the most basic toolkit, but not the easiest, xmessages and xdialog (or any drop in clone) are also installed in most distro.
 
Old 02-13-2010, 10:20 PM   #9
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 609

Rep: Reputation: 218Reputation: 218Reputation: 218
-~-~-

Last edited by foodown; 02-13-2010 at 10:51 PM.
 
Old 02-16-2010, 02:52 AM   #10
liny1984
LQ Newbie
 
Registered: Jun 2006
Distribution: openSUSE, Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 0
Right thanks guys...I ll try with GTK then and see how it goes....right now I am using SLAX with virtual box and I ll try out slackware 13 64 bit.
 
  


Reply

Tags
gui


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
What cross-platform GUI toolkit can work for both Mac, Linux and Windows? TruongAn Programming 4 01-02-2010 02:48 AM
Linux GUI toolkit survey 2008 samjh Programming 1 11-20-2008 10:57 PM
opinions about Ultimate++ IDE and GUI toolkit on Linux? arilect Linux - Software 1 02-01-2006 11:59 PM
Linux/windows Cross Platform Gui toolkit. mr_segfault Programming 7 10-31-2004 04:57 PM
GUI toolkit for Linux options? servnov Linux - General 1 10-11-2004 11:36 PM


All times are GMT -5. The time now is 07:30 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