-
Notifications
You must be signed in to change notification settings - Fork 80
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
SPIRV linking (and other fedora isms?) #611
Comments
I'll look into the missing libraries in the CMake script. Seems some systems need them and others complain if they're there, still investigating why. In the meantime can you send a PR to scopehal-docs with the additional packages you had to install, as well as skipping the "install glslc from source" bit on Fedora? Our current Fedora install section in the docs is definitely out of date. |
I hope the following can be useful as a starting point for Fedora support.
Unfortunately I can't test this on my current laptop, but it does compile, and ngscopeclient starts up. |
@daglem Thanks for sharing the patch. Especially the bit on LXI and linking with libtirpc. On Arch Linux + Fedora 39, I have had to either remove liblxi or not link it to compile without missing references. The rest of the patch lines up with what is done for scopehal-apps-git AUR package as it opts to use the distro-provided vulkan sdk: https://aur.archlinux.org/cgit/aur.git/tree/target_link_libraries.patch?h=scopehal-apps-git |
@daglem Under install dependencies section, I still need to install "C Development Tools and Libraries" group package as a build dependency. |
@hansemro I believe it would be better if we could identify exactly which additional packages are required (gcc-c++ and make maybe?), assuming that the end goal is to have an RPM .spec file with the necessary BuildRequires and Requires. I guess I should just make PRs for the above - at least it would be a step in the right direction. I'll look into it in a few hours. |
Pull requests: |
If we end up removing the step to install vulkan sdk manually, here are the dependencies for debian12/ubuntu23.04 (and newer):
However, for older releases, the vulkan sdk has to be installed manually. So for the sake of providing distro-generic steps, I think we should still keep this extra step. |
Now that I've merged those PRs where do we stand on this issue? Can we close it or is there anything missing? |
IMO you can close this issue, just remember to update the documentation linked to from the README. If you'd like to have an RPM .spec file, I can possibly help out with that later (if and when the dependency on FFTS is removed). |
I think we should apply the same changes across all Linux distros (not just Fedora), since:
Build error snippet (Arch Linux without patch):
|
Same error on Ubuntu 23.04. Commit cc4335b |
I have current head (5f3e3d3) built on Fedora 39;
I had to add SPIRV, SPIRV-Tools-opt, and SPIRV-Tools to target_list_libraries in ngscopeclient, tests/{Accleration,FIlters,Primitives} and examples/{curvetrace,scopevna}
Note this is using Fedora's shipped spirv packages rather than downloading and building it from source.
I've also got the:
packages installed.
With that lot, it seems to be building and starting up.
The text was updated successfully, but these errors were encountered: