|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
# Install the required tools and dependencies
|
|
|
|
|
sudo apt-get update
|
|
|
|
|
sudo apt-get install git cmake build-essential libqt4-dev libusb-1.0-0-dev python-dev libxrender-dev python
|
|
|
|
|
sudo apt-get install git cmake build-essential libqt4-dev libusb-1.0-0-dev python-dev libxrender-dev python
|
|
|
|
|
|
|
|
|
|
# OSMC dependencies
|
|
|
|
|
sudo apt-get install rbp-userland-dev-osmc
|
|
|
|
@ -15,6 +15,9 @@ export FIRMWARE_DIR="raspberrypi-firmware"
|
|
|
|
|
git clone --depth 1 https://github.com/raspberrypi/firmware.git "$FIRMWARE_DIR"
|
|
|
|
|
sudo cp -R "$FIRMWARE_DIR/hardfp/opt/" /opt
|
|
|
|
|
|
|
|
|
|
# OpenCV HDMI grabber dependencies (must be version 2.x) (check with: pkg-config --modversion opencv)
|
|
|
|
|
sudo apt-get install libopencv*
|
|
|
|
|
|
|
|
|
|
# create hyperion directory and checkout the code from github
|
|
|
|
|
# You might want to add "--depth 1" if you only want to recompile the current source or don't want to use git any further
|
|
|
|
|
export HYPERION_DIR="hyperion"
|
|
|
|
@ -35,6 +38,8 @@ cmake -DCMAKE_BUILD_TYPE=Release -DPLATFORM="rpi" -Wno-dev ..
|
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DPLATFORM="rpi-pwm" -Wno-dev ..
|
|
|
|
|
# or if you are not compiling on the raspberry pi (e.g. OrangePi) and need to disable the Dispmanx grabber and support for spi devices
|
|
|
|
|
cmake -DENABLE_DISPMANX=OFF -DENABLE_SPIDEV=OFF -DENABLE_X11=ON -DCMAKE_BUILD_TYPE=Release -Wno-dev ..
|
|
|
|
|
# to enable the HDMI OpenCV grabber append cmake parameter
|
|
|
|
|
ENABLE_OPENCV=ON
|
|
|
|
|
# on amlogic platforms
|
|
|
|
|
cmake -DENABLE_DISPMANX=OFF -DENABLE_SPIDEV=OFF -DENABLE_AMLOGIC=ON -DCMAKE_BUILD_TYPE=Release -Wno-dev ..
|
|
|
|
|
# as an alternative for the dispmanx grabber on non-rpi devices (e.g. cubox-i) you could try the framebuffer grabber
|
|
|
|
|