Botspot / pi-apps

Raspberry Pi App Store for Open Source Projects
GNU General Public License v3.0
1.88k stars 206 forks source link

Lutris (waiting for solution to vulkan error) #545

Closed NoozAbooz closed 1 year ago

NoozAbooz commented 3 years ago

Can this app run on RPi? If so, please provide a link to a tutorial if applicable. Yes

Is this app something many GUI users would find useful?
Yes

Is this app installable with sudo apt install?
No(technically)

If you've created a zip file for this app, upload it here. I will upload a zip soon

Install lutris with deb https://download.opensuse.org/repositories/home:/strycore/Raspbian_10/all/lutris_0.5.8.3_all.deb

or with apt repo

echo 'deb http://download.opensuse.org/repositories/home:/strycore/Raspbian_10/ /' | sudo tee /etc/apt/sources.list.d/home:strycore.list
curl -fsSL https://download.opensuse.org/repositories/home:strycore/Raspbian_10/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_strycore.gpg > /dev/null
sudo apt update
sudo apt install lutris
NoozAbooz commented 3 years ago

@Botspot Lutris.zip

Note that this installs wine, so we need Wine to first get a install-64 so this will work for 64-bit.

Botspot commented 3 years ago

About this:

~/pi-apps manage install Box86
~/pi-apps manage install Wine

First, that command doesn't work at all. bash: /home/pi/pi-apps: Is a directory Second, installing wine already installs box86. So we don't need to explicitly install box86.
Third, we don't need to install wine, if it's already been installed. Fourth, there is no app named "Wine". It's "Wine (x86)". I've changed the above code to:

"${DIRECTORY}/manage" install-if-not-installed 'Wine (x86)'
Botspot commented 3 years ago

Upon a successful installation and subsequently launching Lutris, this dialog window appeared:
2021-04-12-201626_1920x1080_scrot
Is my system messed up? If this is to be expected, then maybe an addition to the description would be a good idea.

Itai-Nelken commented 3 years ago

I installed that deb on TwisterOS and I didn't get that error.

NoozAbooz commented 3 years ago

Upon a successful installation and subsequently launching Lutris, this dialog window appeared: 2021-04-12-201626_1920x1080_scrot Is my system messed up? If this is to be expected, then maybe an addition to the description would be a good idea.

I think you can ignore that

ryanfortner commented 3 years ago

Upon a successful installation and subsequently launching Lutris, this dialog window appeared:

2021-04-12-201626_1920x1080_scrot

Is my system messed up? If this is to be expected, then maybe an addition to the description would be a good idea.

I think you can ignore that

No, you probably shouldn't ignore that, as some games won't run through Lutris without proper Vulkan support. You don't get that error on TwisterOS because all the libraries are already installed for Vulkan.

Solution: Have the script compile the latest Vulkan driver, then continue to install Lutris.

Botspot commented 3 years ago

Solution: Have the script compile the latest Vulkan driver, then continue to install Lutris.

How do we do that? Is Mesa a synonym for Vulkan?

NoozAbooz commented 3 years ago

Does vulkan even work yet?

NoozAbooz commented 3 years ago

Lutris.zip Also fixed stuff

Itai-Nelken commented 3 years ago

Does vulkan even work yet?

I don't think so

Painadath commented 3 years ago

@chunky-milk @mobilegmYT i have doubt that there is already script or pre buit versions of vulkan which bundles with web-apps can we just use it?

NoozAbooz commented 3 years ago

pikiss had vulkan install script that compiled it afaik

ryanfortner commented 2 years ago

@Botspot does running the following steps solve any errors? (this is for 32-bit raspberry pi OS)

sudo rm -f /home/pi/mesa_vulkan
sudo apt update
sudo apt full-upgrade -y
sudo apt install -y libxcb-randr0-dev libxrandr-dev \
        libxcb-xinerama0-dev libxinerama-dev libxcursor-dev \
        libxcb-cursor-dev libxkbcommon-dev xutils-dev \
        xutils-dev libpthread-stubs0-dev libpciaccess-dev \
        libffi-dev x11proto-xext-dev libxcb1-dev libxcb-*dev \
        bison flex libssl-dev libgnutls28-dev x11proto-dri2-dev \
        x11proto-dri3-dev libx11-dev libxcb-glx0-dev \
        libx11-xcb-dev libxext-dev libxdamage-dev libxfixes-dev \
        libva-dev x11proto-randr-dev x11proto-present-dev \
        libclc-dev libelf-dev git build-essential mesa-utils \
        libvulkan-dev ninja-build libvulkan1 python-mako \
        libdrm-dev libxshmfence-dev libxxf86vm-dev libunwind-dev \
        valgrind libzstd-dev vulkan-tools
sudo apt purge meson -y
sudo pip3 install meson 
sudo pip3 install mako
cd ~
git clone https://gitlab.freedesktop.org/mesa/mesa.git mesa_vulkan
cd mesa_vulkan
CFLAGS="-mcpu=cortex-a72 -mfpu=neon-fp-armv8" CXXFLAGS="-mcpu=cortex-a72 -mfpu=neon-fp-armv8" meson --prefix /usr -Dplatforms=x11 -Dvulkan-drivers=broadcom -Ddri-drivers= -Dgallium-drivers=kmsro,v3d,vc4 -Dbuildtype=release build
ninja -C build -j4
sudo ninja -C build install
glxinfo -B
theofficialgman commented 1 year ago

same probllem as https://github.com/Botspot/pi-apps/issues/1395#issuecomment-1374358074