[KTX] Fixing port to properly patch zstd for platforms other than windows#24869
Conversation
Please only check this one: |
|
@JackBoosY There seems to be a bug in the MSVC arm64 implementation: https://developercommunity.visualstudio.com/t/inlining-turns-constant-into-register-operand-for/1394798 Also found in the astc encoder on windows arm64. Fix still doesn't seem to be deployed yet so maybe we should just force this port to reject only arm64 windows? |
|
According to the feedback reply: I think you may need to add a patch to add flag |
|
Oops I totally missed that part of the post there. I'm just going to try to upstream a patch to KTX rather than do that work as part of another .patch file |
There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
PRs must add only one version and must not modify any published versions
When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.
error: checked-in files for ktx have changed but the version was not updated
version: 4.1.0-rc2
old SHA: 4439d89eb44c15008e4c66902b2ce5167799bb2a
new SHA: e8a49dcd008235323faeb7a266a0b04a8487a11c
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
***No files were updated***
|
Finally got KTX upstream to accept some changes so it should now build for arm64 windows and arm64 android. I also made a small tweak to the mingw toolchain since ktx built with mingw should also work but the mingw toolchain didn't like the gcc install I got from scoop |
|
Not sure why x86_windows failed here. The port is marked as not being supported on x86 and the previous commit succeeded |
|
Seems like something internal broke in CI? 2022-06-16T23:56:16.9123289Z error: curl has reported unexpected results to vcpkg and vcpkg cannot continue. https://dev.azure.com/vcpkg/c1ee48cb-0df2-4ab3-8384-b1df5a79fe53/_apis/build/builds/73801/logs/63 |
|
To re-trigger x86-windows: |
Describe the pull request
I wanted to get the
ktx[vulkan]:arm64-androidbuild working and this is what I had to do to do it.What does your PR fix?
I wasn't able to get
ktx[vulkan]:arm64-androidto build due to undefined symbols from zstd librariesThe patch for making ktx work with the vcpkg installed zstd was only going to work on windows, so I updated the patch to properly link zstd on all platforms.
Now
ktx[vulkan]:arm64-androidbuilds and I've compiled an app against it that works.Considering that KTX-Software has CI up for an android build I think it's safe to say that the arm64-android port here should also work.
I'm also bumping the revision hash which brings in a fix from upstream that allows
ktxto build and work forx64-mingw-dynamicandx64-mingw-static(at least in my tests).Which triplets are supported/not supported? Have you updated the CI baseline?
I've tested this patch on
arm64-android
x64-mingw-static
x64-mingw-dynamic
x64-windows
x64-window-static
No reason to think it would break anything else
I think this also opens up testing for this to see if it works on arm64-osx
Does your PR follow the maintainer guide?
Yes I hope so
If you have added/updated a port: Have you run
./vcpkg x-add-version --alland committed the result?Yep!