From cf422f480d3c3690ff3c407cb45b2ee9e266f1ad Mon Sep 17 00:00:00 2001 From: nmatsuda Date: Sun, 23 Oct 2022 18:51:56 -0700 Subject: [PATCH] added note about running viz1090 without X --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 22aa7e8..e6fa293 100644 --- a/README.md +++ b/README.md @@ -31,8 +31,17 @@ sudo apt-get install build-essential ``` sudo apt-get install libsdl2-dev libsdl2-ttf-dev libsdl2-gfx-dev librtlsdr-dev libgdal-dev ``` +1b. (Raspberry Pi only) +If you are running viz1090 on the Raspbian desktop (or any form of X) you can skip this step, but if you want to be able to start it directly from the command line, do the following to build SDL with KMS driver support. This is taken from [this stackoverflow question](https://stackoverflow.com/questions/57672568/sdl2-on-raspberry-pi-without-x) -Note: On Raspbian the SDL2 package requires X to be running. See the Raspberry Pi section for notes on running from the terminal and other improvements. +``` +git clone https://github.com/libsdl-org/SDL +sudo apt build-dep libsdl2 +sudo apt install libdrm-dev libgbm-dev +cd ~/SDL +./configure --enable-video-kmsdrm +make -j4 && sudo make install +``` 2. Download and build viz1090 ``` @@ -54,8 +63,6 @@ This will produce files for map and airport geometry, with labels, that viz1090 The default parameters for mapconverter should render reasonably quickly on a Raspberry Pi 4. See the mapconverter section below for other options and more information about map sources. - - 3. (Windows only) As WSL does not have an X server built in, you will need to install a 3rd party X server, such as https://sourceforge.net/projects/vcxsrv/