Skip to content

Commit 5b566ee

Browse files
committed
Updated the build document
1 parent d6d86d8 commit 5b566ee

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

firmware-building.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,19 @@ ii libqt5xmlpatterns5:amd64 5.15.2-3
116116
ii libqt5xmlpatterns5-dev:amd64 5.15.2-3 amd64 Qt 5 XML patterns development files
117117
```
118118

119-
The important ones are libqt5webengine5 and libqt5virtualkeyboard5. If you get errors related to missing Qt packages during the mix firmware phase you may need to install more. Remember the the the rpi4_kiosk target builds the QT packages for the pi using qmake's own cross compilation system running on your host machine. So you need the qt stuff on your even if you never use any of its binaries.
119+
There are probably a lot of redundant packages here. A basic qt5 installation is required on your host machine because the webengine_kiosk dependency is compiled using elixir_make. This uses the Makefile in root of webengine_kiosk dependency. This makefile calls qmake to compile the code. qmake creates yet another makefile at
120+
121+
```
122+
_build/rpi4_kiosk_dev/lib/webengine_kiosk/obj/Makefile
123+
```
124+
125+
It is this makefile that actually does the work of cross compiling the dependency using a nerves sysroot.
120126

121127
If you clone my repo from https://github.com/rogerjames/99/nerves_rpi4_webkiosk_playground and switch to the "roger" branch, the you should have the fix you need to build successfully. If you do not the only change change the :webengine_kiosk dependency to pull from github rather than the local filesystem.
122128

123129
## Building
124130

125-
To build the firmware you need to a mix deps.update --all followed by a mix firmware. This is the output I get on my system.
131+
To build the firmware you need to a mix deps.update --all followed by a mix firmware. This is the output I get on my system. You can probably get away with just a mix deps.get instead of the update.
126132

127133
```
128134
roger@dragon:~/nerves/nerves_rpi4_webkiosk_playground$ mix deps.update --all

0 commit comments

Comments
 (0)