1
0
mirror of https://github.com/Yours3lf/rpi-vk-driver.git synced 2024-12-01 13:24:20 +01:00
rpi-vk-driver/BUILD.md

34 lines
1.0 KiB
Markdown
Raw Normal View History

2019-12-07 16:31:00 +01:00
# How to cross compile the RPi VK Driver
### Clone compiler
git clone https://github.com/raspberrypi/tools.git
### Establish sysroot
2019-12-07 16:45:43 +01:00
mkdir sysroot
mkdir sysroot/usr
mkdir sysroot/usr/local
scp -r [user]@[ipaddress]:/lib sysroot/lib
scp -r [user]@[ipaddress]:/usr/include sysroot/usr/include
scp -r [user]@[ipaddress]:/usr/lib sysroot/usr/lib
scp -r [user]@[ipaddress]:/usr/local/include sysroot/usr/local/include
scp -r [user]@[ipaddress]:/usr/local/lib sysroot/usr/local/lib
2019-12-07 16:31:00 +01:00
### Clone RPi VK Driver
2019-12-07 16:45:43 +01:00
git clone https://github.com/Yours3lf/rpi-vk-driver.git
cd rpi-vk-driver
mkdir build
cd build
2019-12-07 16:31:00 +01:00
### Run CMake
2019-12-07 16:45:43 +01:00
cmake .. -DCMAKE_TOOLCHAIN_FILE=../toolchain.cmake -DCMAKE_BUILD_TYPE=Release
2019-12-07 16:31:00 +01:00
### Build project
2019-12-07 16:45:43 +01:00
cmake --build . --target all
2019-12-07 16:31:00 +01:00
### Deploy files
2019-12-07 16:45:43 +01:00
scp librpi-vk-driver.so [user]@[ipaddress]:/home/[user]/librpi-vk-driver.so
scp rpi-vk-driver.json [user]@[ipaddress]:/home/[user]/rpi-vk-driver.json
scp install.sh [user]@[ipaddress]:/home/[user]/install.sh
2019-12-07 16:31:00 +01:00
### Run install.sh on your RPi