mirror of
https://github.com/Yours3lf/rpi-vk-driver.git
synced 2025-01-31 23:52:14 +01:00
Update BUILD.md
This commit is contained in:
parent
06b0e9ac6a
commit
832d006961
34
BUILD.md
34
BUILD.md
@ -1,5 +1,8 @@
|
|||||||
# How to compile on a Raspberry Pi
|
# How to compile on a Raspberry Pi
|
||||||
|
|
||||||
|
### Install prerequisites
|
||||||
|
sudo apt-get install cmake
|
||||||
|
|
||||||
### Clone RPi VK Driver
|
### Clone RPi VK Driver
|
||||||
git clone https://github.com/Yours3lf/rpi-vk-driver.git
|
git clone https://github.com/Yours3lf/rpi-vk-driver.git
|
||||||
cd rpi-vk-driver
|
cd rpi-vk-driver
|
||||||
@ -13,32 +16,9 @@ cmake .. -DCMAKE_BUILD_TYPE=Release
|
|||||||
cmake --build . --target all
|
cmake --build . --target all
|
||||||
|
|
||||||
### Run install.sh
|
### Run install.sh
|
||||||
|
../install.sh
|
||||||
|
|
||||||
|
### Install the Vulkan-Loader
|
||||||
|
Follow the Vulkan-Loader repository instructions to build and install the Vulkan-Loader:
|
||||||
|
https://github.com/KhronosGroup/Vulkan-Loader/blob/master/BUILD.md
|
||||||
|
|
||||||
|
|
||||||
# How to cross compile the RPi VK Driver
|
|
||||||
|
|
||||||
### Clone compiler
|
|
||||||
git clone https://github.com/raspberrypi/tools.git
|
|
||||||
|
|
||||||
### Establish sysroot
|
|
||||||
rsync -az --delete-after --safe-links [user]@[ipaddress]:/{lib,usr} tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/arm-linux-gnueabihf/sysroot
|
|
||||||
|
|
||||||
### 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…
x
Reference in New Issue
Block a user