Package Details: ktx_software-git 4.3.2.r62.g797098b4-1

Git Clone URL: https://aur.archlinux.org/ktx_software-git.git (read-only, click to copy)
Package Base: ktx_software-git
Description: KTX (Khronos Texture) Library and Tools
Upstream URL: https://github.com/KhronosGroup/KTX-Software
Keywords: basisu KTX KTX2 toktx
Licenses: Apache-2.0
Conflicts: ktx_software
Provides: ktx_software
Submitter: bin
Maintainer: bin
Last Packager: bin
Votes: 6
Popularity: 0.028729
First Submitted: 2020-12-31 16:05 (UTC)
Last Updated: 2024-10-07 09:52 (UTC)

Required by (0)

Sources (1)

Latest Comments

khughitt commented on 2025-09-08 12:53 (UTC)

For the Smudge error, adding export GIT_LFS_SKIP_SMUDGE=1 near the top of the PKGBUILD helped solve the issue for me (via: https://github.com/KhronosGroup/KTX-Software/issues/1009)

Patola commented on 2025-09-06 09:31 (UTC)

I don't understand, it's failing to get a particular commit of OpenCL?

  -> Creating working copy of KTX-Software git repo...
Downloading external/basisu/OpenCL/lib/OpenCL.lib (28 KB)
Error downloading object: external/basisu/OpenCL/lib/OpenCL.lib (78fa1d0): Smudge error: Error downloading external/basisu/OpenCL/lib/OpenCL.lib (78fa1d029af6cf82dadfdfefab82a53720780aa7e04cb20a9385d78fab8a2a1f): error transferring "78fa1d029af6cf82dadfdfefab82a53720780aa7e04cb20a9385d78fab8a2a1f": [0] remote missing object 78fa1d029af6cf82dadfdfefab82a53720780aa7e04cb20a9385d78fab8a2a1f

Errors logged to '/tmp/t/ktx_software-git/src/KTX-Software/.git/lfs/logs/20250906T112942.177333982.log'.
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: external/basisu/OpenCL/lib/OpenCL.lib: smudge filter lfs failed
==> ERROR: Failure while creating working copy of KTX-Software git repo
    Aborting...

Dexter9313 commented on 2025-08-11 14:29 (UTC)

The CMake KTX_FEATURE_STATIC_LIBRARY is not used anymore per https://github.com/KhronosGroup/KTX-Software/pull/953 Fix:

diff --git a/PKGBUILD b/PKGBUILD
index 5f6ec6f..8ec8bb5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -32,7 +32,7 @@ prepare() {

 build() {
        cd "$srcdir/$_reponame/$_builddir"
-       cmake .. -DKTX_FEATURE_DOC=OFF -DKTX_FEATURE_LOADTEST=OFF -DKTX_FEATURE_STATIC_LIBRARY=ON -DKTX_FEATURE_TESTS=OFF -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release
+       cmake .. -DKTX_FEATURE_DOC=OFF -DKTX_FEATURE_LOADTEST=OFF -DBUILD_SHARED_LIBS=OFF -DKTX_FEATURE_TESTS=OFF -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release
        cmake --build . --config Release
 }

artefact commented on 2025-08-07 13:39 (UTC) (edited on 2025-08-07 13:40 (UTC) by artefact)

If you get "error: Please check your compiler options" in basisu_kernels_sse.cpp, you probably have -march=nativeor similar in your makepkg.conf.

Workaround:

diff --git i/PKGBUILD w/PKGBUILD
index 5f6ec6f..6216c05 100644
--- i/PKGBUILD
+++ w/PKGBUILD
@@ -32,7 +32,7 @@ prepare() {

 build() {
    cd "$srcdir/$_reponame/$_builddir"
-   cmake .. -DKTX_FEATURE_DOC=OFF -DKTX_FEATURE_LOADTEST=OFF -DKTX_FEATURE_STATIC_LIBRARY=ON -DKTX_FEATURE_TESTS=OFF -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release
+   cmake .. -DKTX_FEATURE_DOC=OFF -DKTX_FEATURE_LOADTEST=OFF -DKTX_FEATURE_STATIC_LIBRARY=ON -DKTX_FEATURE_TESTS=OFF -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-march=x86-64" -DCMAKE_CXX_FLAGS="-march=x86-64"
    cmake --build . --config Release
 }

mtxn commented on 2023-08-22 06:00 (UTC)

diff --color -ru ktx_software-git-old/PKGBUILD ktx_software-git/PKGBUILD
--- ktx_software-git-old/PKGBUILD        2023-08-22 07:30:23.545978455 +0200
+++ ktx_software-git/PKGBUILD        2023-08-22 07:33:13.910710624 +0200
@@ -12,7 +12,7 @@
              "cmake")
 provides=("ktx_software")
 conflicts=("ktx_software")
-source=("KTX-Software::git+https://github.com/KhronosGroup/KTX-Software#branch=master")
+source=("KTX-Software::git+https://github.com/KhronosGroup/KTX-Software#branch=main")
 sha256sums=("SKIP")

 reponame="KTX-Software"
diff --color -ru ktx_software-git-old/.SRCINFO ktx_software-git/.SRCINFO
--- ktx_software-git-old/.SRCINFO        2023-08-22 07:30:23.545978455 +0200
+++ ktx_software-git/.SRCINFO        2023-08-22 07:46:55.057381914 +0200
@@ -16,7 +16,7 @@
         depends = zstd
         provides = ktx_software
         conflicts = ktx_software
-        source = KTX-Software::git+https://github.com/KhronosGroup/KTX-Software#branch=master
+        source = KTX-Software::git+https://github.com/KhronosGroup/KTX-Software#branch=main
         sha256sums = SKIP

 pkgname = ktx_software-git
Only in ktx_software-git/: .SRCINFO~

tirithen commented on 2023-04-23 13:18 (UTC)

There is no "master" branch any more on the source repo, it has been renamed to "main". However using that branch also failed to build for me. But when using the latest release "tag=v4.1.0" in the PKGBUILD file I could install the package.

Would it be possible to update this package file in AUR so that the package can be installed?

GRAPHENE commented on 2022-08-30 06:48 (UTC) (edited on 2022-08-30 06:48 (UTC) by GRAPHENE)

Failed to use libtool.

...
[ 52%] Building CXX object CMakeFiles/ktx.dir/lib/basisu/encoder/basisu_uastc_enc.cpp.o
[ 53%] Building C object CMakeFiles/ktx.dir/lib/writer1.c.o
[ 54%] Building C object CMakeFiles/ktx.dir/lib/writer2.c.o
[ 54%] Linking CXX static library libktx.a
Usage: /usr/bin/libtool [OPTION]... [MODE-ARG]...
Try 'libtool --help' for more information.
libtool:   error: unrecognised option: '-static'
make[2]: *** [CMakeFiles/ktx.dir/build.make:840: libktx.a] Error 1
make[2]: *** Deleting file 'libktx.a'
make[1]: *** [CMakeFiles/Makefile2:1135: CMakeFiles/ktx.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'ktx_software-git-0-2': 
error: packages failed to build: ktx_software-git-0-2

Friz64 commented on 2022-01-14 13:38 (UTC) (edited on 2022-01-14 13:43 (UTC) by Friz64)

This failed to build out of the box for me. Seems like this fix worked: https://github.com/git-lfs/git-lfs/issues/911#issuecomment-169998792.

  -> Creating working copy of KTX-Software git repo...
Cloning into 'KTX-Software'...
done.
Downloading other_lib/ios/Debug-iphoneos/libSDL2.a (8.2 MB)
Error downloading object: other_lib/ios/Debug-iphoneos/libSDL2.a (5045776): Smudge error: Error downloading other_lib/ios/Debug-iphoneos/libSDL2.a (5045776556ca57f2f7125d89c37a8b94f79cdebdc040d420513f0491787c4ea7): error transferring "5045776556ca57f2f7125d89c37a8b94f79cdebdc040d420513f0491787c4ea7": [0] remote missing object 5045776556ca57f2f7125d89c37a8b94f79cdebdc040d420513f0491787c4ea7

Errors logged to /home/friz64/.cache/paru/clone/ktx_software-git/src/KTX-Software/.git/lfs/logs/20220114T143717.948123237.log
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: other_lib/ios/Debug-iphoneos/libSDL2.a: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'