Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatpak not picking up Librashader files #1608

Open
ghost opened this issue Aug 17, 2024 · 1 comment
Open

Flatpak not picking up Librashader files #1608

ghost opened this issue Aug 17, 2024 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 17, 2024

Describe the bug
Hiya, I created a PR to add Librashader to the Flatpak here: flathub/dev.ares.ares#39 which installs the Librashader files to the Flatpak equivalent of the /usr/lib folder. However, the Flatpak doesn't seem to be picking up on these files.

If I compile ares and place the Librashader files in /usr/lib, Librashader works fine. I understand the Flatpak is unofficial and I tried to do as much as possible without seeking official support, but I'm not sure what's causing the Flatpak to not identify the Librashader files.

If this issue is outside the scope of ares (due to the unofficial packaging), I apologize and please feel free to close the issue!

To Reproduce

  1. Install the Flatpak with Librashader support here: Add Librashader support flathub/dev.ares.ares#39 (comment)
  2. Run it in a terminal, flatpak run dev.ares.ares
  3. The terminal will state: Failed to load librashader: shaders will be disabled

If you are interested in locating the actual Flatpak folders, you can find them at one of the below two locations (depending on how you installed ares):

  • User install: ~/.local/share/flatpak/app/dev.ares.ares/x86_64/test/active/files/lib/
  • System install: /var/lib/flatpak/app/dev.ares.ares/x86_64/test/active/files/lib/

Expected behavior

For ares to detect and load the Librashader files.

Screenshots
N/A

Additional context
N/A

@remutro
Copy link
Contributor

remutro commented Aug 17, 2024

Not sure if this is helpful or not, but I've run into issues with ares trying to find librashader.so on different Linux distributions as they have different lib directories. I've determined where it was looking by running "ldd ares" which lists out where the executable is looking for shared object files. It quickly became obvious what the expected lib directory was just by looking at all the entries in the output. And sure enough copying the librashader.so file into that lib directory worked as expected. So it seems to be distribution dependent. I have no how to deal with that in flatpak however, I was just manually compiling/installing.

Went back and looked, it was Ubuntu 24.04 and the correct lib directory for that distro was: /lib/x86_64-linux-gnu/ which was obvious from running 'ldd ares'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant