Sane Cross-platform alternative to GTK2 ?
Hello,
I would like to move one software from ncurses to some graphical frontend. GTK would be a nice move, but man,... have you ever seen the output of : apt-get install --no-install-recommends libgtk2.0-dev It is not normal that so much will be installed on a machine. I am worried, seriously, that no one care about this. A bloated applications is for no one of interest, heavy dependencies: no one care at all, slow applications such as gimp or inkscape: no one care. Seriously, there should be some group of people to clean up the messy devel. Thank you and greetings |
FLTK?
|
Quote:
Code:
u# apt-get install libfltk1.3-dev Well, it is much better than GTK, much much better, but still it is quite a lot ! |
the truth is:
Quote:
the debian build seems to include the whole documentation, (that's why I have a extra pack for this) you will not find anything smaller than FLTK, in fact, you can include the source into your distribution and ship it like that, the build time is acceptable, something you can/will not do with gtk or qt |
You shouldn't consider GTK2 as it is deprecated and unmaintained.
If you want GTK you should choose GTK3 that is better supported and the current target of development. Now if you DON'T want to use GTK there are some good alternatives like FLTK dugan said or Enlightenment Foundation Libraries[0] (EFL) or even Qt[1] that with the new owners and current developments has gotten a huge traction especially against GTKx [0] http://enlightenment.org [1] http://qt-project.org |
Quote:
I would like something nice and graphical for the users (because they dont like ncurses / dos like apps). As portable / cross-platform as possible, and as tiny and dependencies-free as possible. One dll to add into the directory would be ideal, such as pdcurses.dll and that's all !! |
Qt is too much of a beast for that then, do take a look at EFL though they really are portable! they already run in probably any single system you own and then some while being really lightweight both size and performance wise.
|
Quote:
Quote:
First, have you forgotten that you can statically link executables? Second, the number of packages you need to start development (on Debian) has nothing to do with the number of DLLs you'll need to distribute with your compiled application on Windows. With Qt on Windows, you distribute about 3 DLLs with your compiled, dynamically linked Qt application. Just put them in the same directory as the executable. You didn't think that a compiled FLTK application (on Windows) would need a libglu1-mesa DLL and a libglu1-mesa-dev DLL, did you? |
A lesser known alternative: http://www.tecgraf.puc-rio.br/iup/. It will require 0 Debian packages to install! ... because it isn't packaged by Debian.
|
What's the reason for wanting a graphical interface? I'm thinking if it's currently using ncurses you probably don't need a widget library. Have you considered SDL?
|
Thanks there are quite some interesting ones, alternatives. Which one you favor?
Look I just checked what does gtk making using pkg-config, creating there following Include, needed to compile hello.c with gcc. I like very much. So much non needed stuffs. Man, where is simplicity? Quote:
Code:
|
Quote:
Quote:
And dude, learn CMake. Just put the following CMakeLists.txt file in the same directory as hello.c: Code:
cmake_minimum_required (VERSION 2.6) Code:
mkdir build Quote:
|
"Me? Qt"
what about X11? It is simple and portable on Windows as well. Would you know how to create an inputbox in x11? // hello.c Code:
/* The authors of this work have released all rights to it and placed it |
1 Attachment(s)
Most of technical people are trying to migrate from windows to Linux now a days , but they are facing lot of problems with Linux . they do not even know the forums and blogs of Linux which would be useful for finding answer to their query. The main problem of open source is choosing right one for user need. Because so many open source softwares are available for a single thing. Surely user need some supportive forum or website to find that one . open Peta is also doing that job. The idea of this post coming to my mind from my college friend . One of my colleague asked me about computer graphics program in Linux using C programming language. the questions is
How to draw line, circle , or 2D graphics in Linux Using C or C++? I was searching Internet and found some softwares for developing graphics applications in Linux. that softwares are listed here GTK+ – Gnome Tool Kit QT - The X toolkit SVGALIB [ #include<vgagl.h> ] libgraph [ #include<graphics.h> ] GTK and QT are simple and used for high level Graphical User Interface [ GUI ] development. SVGALIB and libgraph is used for 2D graphics in Linux . the syntax and functions are some what different for beginners [specially the user from windows ] but most of users familiar with windows graphics.h header file in C and C++ , so we can move for libgraph which is exact one for windows graphics user . libgraph is an implementation of the Turbo C graphics API (graphics.h) on GNU/Linux using SDL [ Simple Direct Media Player ]. The library requires SDL for primitive graphics and SDL. First you need to install the following dependency packages using synaptic package manager in Ubuntu Linux to develop the graphics applications properly. gcc test.c -lgraph -o superbe Code:
However borland graphics.h might be slow... , no?? Quote:
is this idea much faster? he uses bgi into a dos game http://www.planetsourcecode.com/vb/s...=7383&lngWId=3 Here a nice screensaver that I quickly made using graphics.h it works more or less ok. Code:
|
Quote:
|
All times are GMT -5. The time now is 09:21 AM. |