LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Simple GUI toolkit for Linux (https://www.linuxquestions.org/questions/linux-software-2/simple-gui-toolkit-for-linux-788934/)

liny1984 02-13-2010 04:07 PM

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.

MTK358 02-13-2010 04:10 PM

Quote:

Originally Posted by liny1984 (Post 3862818)
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.

GrapefruiTgirl 02-13-2010 04:15 PM

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

liny1984 02-13-2010 06:08 PM

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.

liny1984 02-13-2010 06:13 PM

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.

MTK358 02-13-2010 06:49 PM

Quote:

Originally Posted by liny1984 (Post 3862898)
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!

GrapefruiTgirl 02-13-2010 08:25 PM

Hmm, yes, I'm using Slackware13.0 64bit.

Elv13 02-13-2010 08:47 PM

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.

foodown 02-13-2010 10:20 PM

-~-~-

liny1984 02-16-2010 02:52 AM

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.


All times are GMT -5. The time now is 03:47 AM.