mirror of
https://github.com/Screenly/Anthias.git
synced 2026-05-08 15:25:13 -04:00
Building QT Base
Because the QT package shipped with Raspbian doens't come with all dependencies, we need to ship a separate version with the WebView.
At the moment, this build will not work with cross-compiling, and needs to be done on a Raspberry Pi.
Start by building the base image:
$ docker build -t qt-builder .
[...]
With the base image done, you can build QT Base with the following command:
$ docker run --rm -ti \
-v $(pwd)/build:/build -ti qt-builder
This will output the files in a folder called build/ in the current directory.
Usage
DBus is used for communication.
Webview registers screenly.webview object at /Screenly address on the session bus.
Webview provides 2 methods:loadPage and loadImage.
Example of interaction (python):
from pydbus import SessionBus
bus = SessionBus()
browser_bus = bus.get('screenly.webview', '/Screenly')
browser_bus.loadPage("www.example.com")
Supported protocols: http://, https://