Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart-Steensma committed Jan 29, 2024
1 parent d84c974 commit f554ad0
Showing 1 changed file with 5 additions and 71 deletions.
76 changes: 5 additions & 71 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,43 +419,23 @@ more information.
sophisticated release methods can be used later.

- [ ] Cross compile for raspberry pi
- [ ] Fix release workflow such that it links libva correctly to static ffmpeg.
It could be that I need to update the target property
"INTERFACE_LINK_LIBRARIES" of the QFFmpegMediaPlugin such that it also
links to libva.
- [ ] Fix issue with ffmpeg + hw acceleration on my arch machine:

```
[h264 @ 0x5594b31d6b40] A hardware frames or device context is required for hardware accelerated decoding.
[h264 @ 0x5594b31d6b40] Failed setup for format vaapi: hwaccel initialisation returned error.
```
- [ ] For ffmpeg, build the other dependencies from source as well such that
these can be linked statically as well. Do this only for the dependencies
that are included in the ffmpeg docs.

When solved, document it in the faq.
- [ ] Does it also work when the user has an older version of libc installed
than ubuntu 22.04 has?

- [ ] Add to FAQ:

- `/usr/bin/ld: cannot find -lSvtAv1Enc`
Solution is to place the `libSvtAv1Enc.a` file in the search path of the
linker (dirty solution is to place it in `/usr/lib`).
- WSL + ubuntu:
App works find, but I get the following errors/warnings:

- Fontconfig error: Cannot load default config file

- install fontconfig on system: refer to https://doc.qt.io/qt-6/qt-embedded-fonts.html in faq

- qt.multimedia.ffmpeg.libsymbolsresolver: Couldn't load VAAPI library
- User needs to install `libva` (add to faq)

- Issue with nvidia drivers, not my problem (add to faq):

- Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
- QRhi* initializeRHI(QRhi*) : No RHI backend. Using CPU conversion.

- not resolved, guess wsl issue:

- qt.qpa.wayland: EGL not available .

- Issues with your graphics card need to be resolved by the user itself. You
need to setup your graphics card yourself. Here are some tips:

Expand Down Expand Up @@ -483,49 +463,3 @@ more information.
- [Nvidia](https://wiki.archlinux.org/title/NVIDIA)
- [Nouveau](https://wiki.archlinux.org/title/Nouveau)
- [AMD](https://wiki.archlinux.org/title/AMDGPU)

- Issues graphics on WSL. I get the following error:

```
snapshot-0.0.0-Linux/snapshot -g
[2024-01-09 18:18:41.573] [warning] [: @ ] No cameras found
MESA: error: ZINK: vkCreateInstance failed (VK_ERROR_INCOMPATIBLE_DRIVER)
libEGL warning: egl: failed to create dri2 screen
```
According to bing:
```
It seems that you are encountering an error while running your Qt app on
Arch Linux with WSL. The error message you provided indicates that the
vkCreateInstance function failed with the error code
VK_ERROR_INCOMPATIBLE_DRIVER. This error is usually caused by a mismatch
between the Vulkan driver and the hardware it is running on 1.
One possible solution is to install the latest graphics drivers for your
system 2. Another possible solution is to try running the app without any
Vulkan layers at all 3.
It’s also worth noting that there is an ongoing issue with
hardware-accelerated Vulkan in WSL2 4. You may want to check if this issue
is related to your problem.
I hope this helps!
```
An idea is to check for differences in the output of `pldd` when comparing
an snapshot app that uses a dynamic Qt6 and one that uses a static Qt6. I
the past, a dynamic Qt6 worked on WSL, so it is likely that something goes
wrong during the static linking.
I think it has to do with support for the GPU. I think it is not possible
to make a stand-alone structure that support all GPU's. So it is likely to
be better that the user installs the GPU drivers themselves. I am not sure
what the best way is to do this. It does explain why the build on the
ubuntu server fails on my arch machine, but when I build it myself, it
works. This may also be the case on my WSL+arch machine when I install the
GPU drivers as is explained
[here](https://github.com/lutris/docs/blob/master/InstallingDrivers.md#amd--intel).
I also have the issue when using Qutebrowser on wsl, so it is probably not
related to snapshot.

0 comments on commit f554ad0

Please sign in to comment.