mirror of
https://github.com/Yours3lf/rpi-vk-driver.git
synced 2024-11-29 11:24:14 +01:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
30094fd6cb
33
BUILD.md
33
BUILD.md
@ -0,0 +1,33 @@
|
|||||||
|
# How to cross compile the RPi VK Driver
|
||||||
|
|
||||||
|
### Clone compiler
|
||||||
|
git clone https://github.com/raspberrypi/tools.git
|
||||||
|
|
||||||
|
### Establish sysroot
|
||||||
|
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
|
||||||
|
|
||||||
|
### Clone RPi VK Driver
|
||||||
|
git clone https://github.com/Yours3lf/rpi-vk-driver.git
|
||||||
|
cd rpi-vk-driver
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
|
||||||
|
### Run CMake
|
||||||
|
cmake .. -DCMAKE_TOOLCHAIN_FILE=../toolchain.cmake -DCMAKE_BUILD_TYPE=Release
|
||||||
|
|
||||||
|
### Build project
|
||||||
|
cmake --build . --target all
|
||||||
|
|
||||||
|
### Deploy files
|
||||||
|
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
|
||||||
|
|
||||||
|
### Run install.sh on your RPi
|
Loading…
Reference in New Issue
Block a user