Comments (7)
@tgurr Thanks for the response.
Sure, from a technical perspective we can do that, but I don't think it's the right solution. We do that for the other vulkan packages because binaries are built, which is obviously arch dependent.
My understanding (and correct me if I'm wrong, this assumption is fundamental to my point) is that there are no arch-specific headers in vulkan-headers. My understanding is everything is arch independent.
If so, we should not install into arch-specific directories. If we do that, the same exact files are installed twice and take up twice the disk space and it takes twice the computation power to install/copy them for absolutely no benefit to users.
I don't know how Exherbo deals with arch-independant files, but /usr/include is widely used in the Linux ecosystem for arch independent code, so Exherbo must have a general solution for code put in /usr/include. Maybe the files are duplicated for Exherbo, but we shouldn't force that on everyone.
About nv-codec-headers, IMO the ebuild is working around an upstream bug, basically the equivalent of what this bug report is about.
from vulkan-headers.
PR #331 also fixed cross-compilation on Ubuntu distributions as well
from vulkan-headers.
FYI: @tgurr @juan-lunarg
from vulkan-headers.
FYI: @tgurr @juan-lunarg
I've no experience on how Gentoo handles multilib, but should't you be able to add your cmake-multilib
magic like done for vulkan-loader to vulkan-headers as well to get what you need? On Exherbo for example there's no /usr/include
per se as we have proper cross compilation installing headers on each arch into their respective include directory under prefix e.g. /usr/x86_64-pc-linux-gnu/include
& /usr/i686-pc-linux-gnu/include
and since this path is referenced in the cmake files we can't have just one file in /usr/share for multiple archs, like stated in #326.
Side note: In the nv-codec-headers package I mentioned in my initial pull request the Gentoo package also applies some workaround moving the pkg-config files to/usr/share
: https://gitweb.gentoo.org/repo/gentoo.git/tree/media-libs/nv-codec-headers/nv-codec-headers-11.1.5.2.ebuild#n21
from vulkan-headers.
My understanding (and correct me if I'm wrong, this assumption is fundamental to my point) is that there are no arch-specific headers in vulkan-headers. My understanding is everything is arch independent.
That is correct.
If so, we should not install into arch-specific directories. If we do that, the same exact files are installed twice and take up twice the disk space and it takes twice the computation power to install/copy them for absolutely no benefit to users.
Correct. CMake header only libraries that are arch-independent should only have to be installed once.
from vulkan-headers.
Thanks, that PR will fix this issue for us.
from vulkan-headers.
Vulkan-Headers is also now consistent with spirv-headers: KhronosGroup/SPIRV-Headers@eae955f
from vulkan-headers.
Related Issues (20)
- vk_sdk_platform.h should be removed HOT 8
- Unable to integrate newer versions of Vulkan-Headers due to spurious double quotes in cmake target
- Possible +x bit missing on /usr/share/vulkan/registry/*.py HOT 7
- Setting target_include_directories with generator expression breaks configuration of layers HOT 3
- Deleting old master branch? HOT 4
- [registry] operator precedence in extension dependencies was left undefined HOT 2
- Spelling error in code HOT 2
- v1.3.248 update is incomplete HOT 1
- Set minimal permissions to github workflow
- 1.3.252 generator imports modules existing only in VulkanSC-Headers HOT 7
- Vulkan-Hpp now includes `.cppm` C++20 module; inclusion in Vulkan-Headers HOT 5
- vk_enum_string_helper.h missing HOT 5
- v1.3.257 tag not pointing at main branch HOT 1
- Create a Security Policy HOT 3
- Missing new hpp file vulkan_hpp_macros.hpp HOT 1
- People are trying to run genvk.py out of this repository HOT 7
- Assessment of the difficulty in porting CPU architecture for vulkan-headers HOT 3
- Missing tag for release 1.3.274 HOT 1
- Add new AV1 video headers to BUILD.gn HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vulkan-headers.