GTK standalone application when there is no X-window environment

I am using a very stripped down version of Linux, I want to create a standalone GTK application on a system that does not have an X window environment installed. I want to use GUI classes and widgets, rather than creating a server version where the GUI is disabled.

The only thing you can expect is a working glibc.

From what I understand, this will include the following:

Statically link GTK lib to X libraries. Statically link my application to the above library.

Is there anything to look out for, can a (somewhat) newbie get this. I used Google, but (some useful) information flew over my head.
+3
source share
4 answers

GTK and X are independent programs. Usually you need to set how to run the program. Alternatively, you can use the Linux framebuffer by disabling GTK for GTKfb. You will need to build GTKfb and its dependencies statically if you do not want to distribute the libraries. Read the LGPL carefully if you do. Red Hat has an article on creating small applications with GTKfb: http://www.redhat.com/f/pdf/gtkfb.pdf .

+5
source

X - X11, X11. , X11 . , , (, gtk-directfb, gtk-fb)

+2

; X/Gtk , , , -.

? script, , .

, firefox Linux .

0

X Virtual Framebuffer. Debian xvfb. :

Xvfb X-, . . , , , Xvfb , , X- , X-, .

This package also contains a convenience script called xvfb-run which simplifies the automation of the execution of X-clients in a virtual server environment. This usability script requires the use of an xauth program.

Additional information on X.Org can be found at:

http://www.X.org

http://xorg.freedesktop.org

http://lists.freedesktop.org/mailman/listinfo/xorg

This package is built on X.org xserver.

0
source

Source: https://habr.com/ru/post/1716968/


All Articles