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

35 lines
1.1 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 18:03:21 +01:00
mv -r sysroot tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/arm-linux-gnueabihf/sysroot
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