Open eldyer opened 3 years ago
Update: It works when using libktx-rs = {git = "https://github.com/UberLambda/libktx-rs"}
instead.
Hello, I'll have a look at this during the weekend :)
I most probably forgot to include some files after I switched to building via CMake...
Update: It works when using
libktx-rs = {git = "https://github.com/UberLambda/libktx-rs"}
instead.
Just chiming in to say I'm having the same problem. 😄
Thanks for taking a look, @UberLambda!
Hey @eldyer @kanerogers, I just pushed v0.3.3 to crates.io that includes the .def files in the package. Could you please see if it works now?
(If it doesn't, I assume that the version detection script from KhronosGroup/KTX-Software is doing something weird on Windows)
Hi! Still not working, but the error message became slightly different:
--- stderr
CMake Warning at cmake/version.cmake:151 (message):
Error retrieving version from GIT tag. Falling back to 0.0.0-noversion
Call Stack (most recent call first):
CMakeLists.txt:10 (include)
thread 'main' panicked at '
command did not execute successfully, got: exit code: 1
Backtrace:
0: std::panicking::begin_panic_handler
at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b\/library\std\src\panicking.rs:515
1: std::panicking::begin_panic_fmt
at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b\/library\std\src\panicking.rs:457
2: cmake::find_exe::{{closure}}
3: cmake::Config::maybe_clear::{{closure}}
4: cmake::Config::build
5: __ImageBase
6: core::ops::function::FnOnce::call_once
Hmm, the version detection script upstream wants to see a real .git tree. If it does not, it defaults to "noversion" and then fails to compile any further :/
This probably requires either patching the CMakeLists.txt manually (from inside the build.rs script) or shipping the entire .git
folder with the Cargo package. I don't really like either solution...
Thanks for making these crates, super useful stuff!
While building the library by recursively cloning the repo as said in the README works fine, I'm getting the following build script error when adding
libktx-rs = "*"
to my Cargo.toml dependency list: