Linux

From uGFX Wiki
Revision as of 08:51, 26 September 2015 by Tectu (Talk | contribs)

Jump to: navigation, search

µGFX runs natively on any Linux system that runs the X server. Running µGFX on your computer can be used to simplify the process of developing your embedded GUI because you don't have to flash the firmware every time to try it. Also, this way µGFX can be used as the native GUI system on low power Linux devices such as the Raspberry-Pi and other single board computers.

Note: The performance of the resulting program is very bad unless you use the Linux Framebuffer driver. This is because the X driver just uses setPixel() and doesn't take any advantage of area blitting or double buffering. The application will run A LOT faster on the actual microcontroller.

Framebuffer

The Linux driver does not only come with an X driver, but also with a framebuffer driver. To use the framebuffer driver, include the following line in your Makefile:

include $(GFXLIB)/boards/base/Linux-Framebuffer/board.mk

Makefile

A ready-to-use Makefile to compile a native uGFX Linux application can be found under /boards/base/Linux/example/.