@@ -58,11 +58,14 @@ benefiting the entire application stack.
58
58
` Mado ` is built with a minimalist design in mind. However, its verification
59
59
relies on certain third-party packages for full functionality and access to all
60
60
its features. To ensure proper operation, the development environment should
61
- have the [ SDL2 library] ( https://www.libsdl.org/ ) , [ libjpeg] ( https://www.ijg.org/ ) , and [ libpng] ( https://github.com/pnggroup/libpng ) installed.
61
+ have the [ libjpeg] ( https://www.ijg.org/ ) , and [ libpng] ( https://github.com/pnggroup/libpng ) installed.
62
+ The [ SDL2 library] ( https://www.libsdl.org/ ) is optional and only needed if the
63
+ user chooses to use SDL as the backend over the Linux framebuffer.
62
64
* macOS: ` brew install sdl2 jpeg libpng `
63
65
* Ubuntu Linux / Debian: ` sudo apt install libsdl2-dev libjpeg-dev libpng-dev `
64
66
65
- Configure via [ Kconfiglib] ( https://pypi.org/project/kconfiglib/ )
67
+ Configure via [ Kconfiglib] ( https://pypi.org/project/kconfiglib/ ) , you should select either SDL
68
+ video output or the Linux framebuffer.
66
69
``` shell
67
70
$ make config
68
71
```
@@ -72,13 +75,20 @@ Build the library and demo program.
72
75
$ make
73
76
```
74
77
75
- Run sample ` Mado ` program:
78
+ Run sample ` Mado ` program with SDL backend :
76
79
``` shell
77
80
$ ./demo-sdl
78
81
```
79
82
80
83
Once the window appears, you should be able to move the windows and interact with the widgets.
81
84
85
+ Run sample ` Mado ` program with the Linux framebuffer backend:
86
+ ``` shell
87
+ $ sudo FRAMEBUFFER=/dev/fb0 ./demo-fbdev
88
+ ```
89
+
90
+ If the ` FRAMEBUFFER ` environment variable is not set, ` Mado ` will use ` /dev/fb0 ` by default.
91
+
82
92
## License
83
93
84
94
` Mado ` is available under a MIT-style license, permitting liberal commercial use.
0 commit comments