GithubHelp home page GithubHelp logo

rpi4-install-vulkan's Introduction

Raspberry Pi 4 Mesa Vulkan Installer

Single shell script to install the Mesa Vulkan driver for Raspberry Pi 4.

Tested on Linux rpi4 5.10.63-v8+ aarch64.

vkcube screenshot

Note

The latest version of libdrm (currently 2.4.110) seems to now be a required dependency. Refer to this excellent PR comment for more info.

Usage

  1. Clone / copy / download script
  2. Set as executable and run

Installing Vulkan

Pass --help to print usage.

install_vulkan.sh [install[=~/mesa_vulkan]] [config[=release]] [src[=mesa]] 
	[build[=build/$config]] [script[=vk_icd.sh]]
  1. install: where to install built Vulkan drivers
  2. config: build configuration
  3. src: where to clone the mesa repository
  4. build: where to build Vulkan drivers
  5. script: name of source-able script to generate to set up an environment via installed drivers

Using Vulkan

  1. Source the generated script into the shell environment: . vk_icd.sh
  2. Run vkconfig to confirm driver / loader / ICD / etc work as expected
  3. Run desired Vulkan applications, eg vkcube

rpi4-install-vulkan's People

Stargazers

TurBoss avatar yq-pan avatar  avatar Monkeyking avatar  avatar James0124 avatar Ádám Madar avatar  avatar  avatar Elias Louw avatar Zhao Xiaohong avatar

Watchers

James Cloos avatar Karn Kaul avatar  avatar

rpi4-install-vulkan's Issues

Compile script dependency

I´getting an error with the most recent build of Raspberry OS 64 bit fully apt updated.

Could you please help to get this right ?

meson.build:1609:0: ERROR: Invalid version of dependency, need 'libdrm' ['>=2.4.109'] found '2.4.104'.

A full log can be found at /home/pi/mesa/build/release/meson-logs/meson-log.txt

meson-log.txt

libdrm-dev version 2.4.109 seems to be required ?

I just wanted to note that meson failed complaining that libdrm-nouveau version 2.4.109 was required, when only 2.4.104 was available with sudo apt-get install libdrm-dev.

Indeed, apt-cache madison libdrm-dev returns:

libdrm-dev | 2.4.104-1+rpi1 | http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages

I needed to manually build and install libdrm-dev version 2.4.110 from source.

After that, this script worked like a charm. Thanks !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.