树莓派Raspberry Pi 4安装Vulkan

2021-12-04 11:04:42 浏览数 (1)

树莓派Raspberry Pi 3B 安装OpenCL:树莓派Raspberry Pi 3B 安装OpenCL_小锋学长生活大爆炸-CSDN博客


如果你喜欢自己一步步安装:在Raspberry Pi 4上安装Vulkan - Q-engineering (qengineering.eu)


快速极简安装:

代码语言:javascript复制
# install PiKISS
sudo apt-get install curl
curl -sSL https://git.io/JfAPE | bash
# 上面的指令可以用这个替换:
# wget https://raw.githubusercontent.com/jmcerrejon/PiKISS/master/res/install.sh
# sudo bash install.sh
# 官网:https://github.com/jmcerrejon/PiKISS


# or update PiKISS once installed
cd ~/piKiss
git pull

install.sh的内容,访问不到就复制下来,地址替换为了加速版的:

代码语言:javascript复制
#!/bin/bash
#
# Description : Easy install PiKISS
# Author      : Jose Cerrejon Gonzalez (ulysess@gmail_dot._com)
# Version     : 1.0.4 (24/Sep/21)
#
clear

readonly INSTALL_DIR="$HOME"
# readonly PIKISS_URL="https://github.com/jmcerrejon/PiKISS.git"
readonly PIKISS_URL="https://hub.fastgit.org/jmcerrejon/PiKISS.git" # 加速版

make_desktop_entry() {
    if [[ ! -e "$HOME"/.local/share/applications/pikiss.desktop ]]; then
        echo -e "[Desktop Entry]nName=PiKISSnComment=A bunch of scripts with menu to make your life easiernExec=${PWD}/piKiss.shnIcon=${PWD}/icons/pikiss_32.pngnTerminal=truenType=ApplicationnCategories=ConsoleOnly;Utility;System;nPath=${PWD}/" >"$HOME"/.local/share/applications/pikiss.desktop
        lxpanelctl restart
    fi
}

if [[ -d "$INSTALL_DIR/piKiss" ]]; then
    cd "$INSTALL_DIR/piKiss" && ./piKiss.sh
    exit 0
fi

install() {
    local IS_RASPBERRYPI
    IS_RASPBERRYPI=$(grep </proc/cpuinfo 'BCM2708|BCM2709|BCM2835|BCM2711')
    cd "$INSTALL_DIR" || exit 1

    if [[ -z $IS_RASPBERRYPI ]]; then
        echo "Sorry. PiKISS is only available for Raspberry Pi 1-4 boards."
        exit
    fi
    echo -e "nPiKISSn======nnInstalling at ${INSTALL_DIR}/piKiss. Please wait...n"
    sudo apt install -y dialog
    git clone -b master "$PIKISS_URL" piKiss && cd "$_" || exit 1
}

install
make_desktop_entry
sleep 2
echo "
PiKISS installed!
=================

cd ${HOME}/piKiss, type or click ./piKiss.sh. You have an Menu shortcut, too!. Go to:

 · Raspberry Pi OS: Menu > System Tools > PiKISS
 · Twister OS: Menu > Accesories > PiKISS
"
read -p "Press ENTER to exit."
exit

重启再执行一次

代码语言:javascript复制
sudo reboot
sudo bash install.sh

然后按图来:

输入 y 后等。

0 人点赞