LinuxQuestions.org
Review your favorite Linux distribution.
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 03-19-2017, 05:58 PM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Rep: Reputation: 213Reputation: 213Reputation: 213
Library Alternatives to FLTK ?


Hello,

FLTK is likely the most portable and smallest graphical library for Linux.

Would you know eventually a possible alternative? X/motif?

(avoid gtk or qt dev since it is much too big)

Thank you
 
Old 03-20-2017, 12:00 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,563

Rep: Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914
Probably TCL/TK.

I mean, that's what they chose for Python's IDLE editor.

Last edited by dugan; 03-20-2017 at 01:53 PM.
 
Old 03-20-2017, 02:03 PM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by dugan View Post
Probably TCL/TK.

I mean, that's what they chose for Python's IDLE editor.
Would you maybe another possible alternative? There is actually not much alternatives, right? maybe Xmotif?
 
Old 03-20-2017, 03:57 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,563

Rep: Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914
Just so you know, the Unity editor was in Xlib for most of its development cycle. If they didn't need to embed a web browser in it, it would still be in Xlib now.

Porting the Unity Editor to Linux: Stuff I Wish We’d Done Then

Last edited by dugan; 03-20-2017 at 03:59 PM.
 
Old 03-20-2017, 03:58 PM   #5
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,477
Blog Entries: 6

Rep: Reputation: 2413Reputation: 2413Reputation: 2413Reputation: 2413Reputation: 2413Reputation: 2413Reputation: 2413Reputation: 2413Reputation: 2413Reputation: 2413Reputation: 2413
The last time I wrote anything using Motif it was still fully proprietary - pre Open Motif!

As you have mentioned it a couple of times I have taken a 5 minute refresher course:

X/Motif Programming

It is a little old, like Motfi itself, but still mostly relevant I think.

I second TCL/Tk based only on limited more recent experience.

I have only dabbled with FLTK on occasion.

What exactly are you trying to do with it?
 
Old 03-21-2017, 12:57 AM   #6
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by astrogeek View Post
The last time I wrote anything using Motif it was still fully proprietary - pre Open Motif!

As you have mentioned it a couple of times I have taken a 5 minute refresher course:

X/Motif Programming

It is a little old, like Motfi itself, but still mostly relevant I think.

I second TCL/Tk based only on limited more recent experience.

I have only dabbled with FLTK on occasion.

What exactly are you trying to do with it?


basically, there are qt, gnome gtk, kde libs, fltk, tc/... , and open motif. That's actually all? So far, I think that that's not much.

Oh, I forgot there is too X11, but all will no longer exist, and maybe one day wayland.
 
Old 03-21-2017, 02:07 AM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,563

Rep: Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914
Quote:
Originally Posted by Xeratul View Post
basically, there are qt, gnome gtk, kde libs, fltk, tc/... , and open motif. That's actually all?
And the Enlightenment Foundation Libraries.

Last edited by dugan; 03-21-2017 at 02:09 AM.
 
Old 03-21-2017, 01:02 PM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,856

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
There is wxwidgets also, but very heavy.
 
Old 03-21-2017, 02:00 PM   #9
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,563

Rep: Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914
Quote:
Originally Posted by gnashley View Post
There is wxwidgets also, but very heavy.
It also uses GTK widgets on Linux.
 
Old 03-21-2017, 02:44 PM   #10
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by dugan View Post
It also uses GTK widgets on Linux.
so far, we have only FLTK allowing standard, non heavy, possibility, right?

I see not much alternative. I am quite surprise that we have so little options...
 
Old 03-21-2017, 09:58 PM   #11
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,563

Rep: Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914
Interesting that you won't acknowledge TCL/TK. Maybe you should share the reason you've deemed it unsuitable for what you want to do?

Also: would a TUI (ncurses, etc) be an acceptable option?

Last edited by dugan; 03-21-2017 at 10:37 PM.
 
Old 03-22-2017, 12:36 AM   #12
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by dugan View Post
Interesting that you won't acknowledge TCL/TK. Maybe you should share the reason you've deemed it unsuitable for what you want to do?

Also: would a TUI (ncurses, etc) be an acceptable option?

The language x11 is quite complex to make gui easily. ex: http://pastebin.com/raw/E92ndwDU

the tcl/tk is quite too heavy, although it gets better.

Think simple, maybe, tiny one like this isn't that bad actually. Not nice, but you won't encounter issues with versions and libraries that changed after time. xmotif is however strongly based on x11.
https://upload.wikimedia.org/wikiped...screenshot.png

Since X11 will disappear, replaced by Wayland, it would be good to have already options. Rewriting code again is nice, but it can be time consuming.

Last edited by Xeratul; 03-22-2017 at 12:43 AM.
 
Old 03-22-2017, 01:56 AM   #13
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,410

Rep: Reputation: 608Reputation: 608Reputation: 608Reputation: 608Reputation: 608Reputation: 608
Quote:
Originally Posted by Xeratul View Post
so far, we have only FLTK allowing standard, non heavy, possibility, right?

I see not much alternative. I am quite surprise that we have so little options...
it is that there are no alternatives, the market for such libraries is rather small
and fltk is a nice library.

you could have a look at the fox toolkit if this fits you needs
http://www.fox-toolkit.org/

these days, even embedded devices, if they have a screen where you need a GUI and some interaction, libs like Qt are not a problem in terms of space and functionality, and Qt is probably the most portable, also , Qt , from version 5.8 becomes very modular, so the build can be sized down to what needed better than before.
however, I think, depending on the functionality you need, fltk is nicer to write code with than with Qt

relay light alternatives are maybe something like SDL widgets,
http://members.chello.nl/w.boeke/SDL-widgets/
or other on top of graphic libraries (in game gui took kits)
 
Old 03-22-2017, 01:35 PM   #14
Myk267
Member
 
Registered: Apr 2012
Location: California
Posts: 320
Blog Entries: 14

Rep: Reputation: Disabled
https://github.com/ocornut/imgui
https://github.com/vurtun/nuklear

You haven't been very specific about your needs, but I think that at least these two qualify as small & portable graphics libs.
 
Old 03-22-2017, 03:06 PM   #15
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,191

Rep: Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388
Quote:
Originally Posted by astrogeek View Post
What exactly are you trying to do with it?
Quote:
Originally Posted by dugan View Post
Maybe you should share the reason you've deemed it unsuitable for what you want to do?
Quote:
Originally Posted by Myk267 View Post
You haven't been very specific about your needs
Just FYI, the OP periodically posts questions asking for "lightweight" programs/libs. I've never seen any concrete goals/reasons given for it. The most charitable explanation I can come up with is that they want to promote "lighter" programs in general.
 
  


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
[SOLVED] update-alternatives: error: unable to read link `/etc/alternatives/editor': Invalid a ccc Debian 1 12-16-2013 01:51 AM
fltk error invoices Linux - Newbie 3 06-13-2013 05:57 AM
[SOLVED] Is FLTK 2.X Compatible With FLTK 1.X? Zssfssz Programming 3 04-24-2012 03:28 AM
FLTK Makefile Noxious020189 Programming 1 12-05-2008 06:43 AM
fltk question amos Programming 0 10-10-2003 11:19 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

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