FreeBSD
From uGFX Wiki
µGFX can be compiled into native FreeBSD applications. This is especially useful for developing µGFX applications on a Desktop machine. The SDL2 library is used to spawn a desktop window. Mouse & keyboard inputs are supported.
Dependencies
The following dependencies are required:
- GCC (eg.
lang/gcc10
,lang/gcc11
) -
devel/gmake
-
devel/sdl2
Makefile
A sample Makefile can be found under /boards/base/FreeBSD-SDL/example/Makefile
. Copy it to your project directory.
From there, set the GFXLIB
variable in the Makefile to point to the root directory of the µGFX library.
If the GFXDEMO
variable is set to non-empty (it has to point to one of the demo directories in /demos
, the corresponding demo will be compiled. If you want to compile your own application code, add the source files to the SRC
variable.