Skip to content

CMake configure step fails to find KTX #449

Description

@asuessenbach

On Win11, when configuring this project with CMake, I get this error:

CMake Error at C:/Program Files/CMake/share/cmake-4.3/Modules/FindPackageHandleStandardArgs.cmake:290 (message):
  Could NOT find KTX (missing: KTX_INCLUDE_DIR KTX_LIBRARY)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-4.3/Modules/FindPackageHandleStandardArgs.cmake:654 (_FPHSA_FAILURE_MESSAGE)
  CMake/FindKTX.cmake:55 (find_package_handle_standard_args)
  CMakeLists.txt:20 (find_package)

The reason is, that in attachments\CMake\FindKTX.cmake, find_path on line 28 and find_library on line 40 don't find what they're looking for, even though I have the KTX software installed.
Then, find_package_handle_standard_args on line 55 emits that error.

A local resolution to that problem could be to set the environment variable KTX_DIR accordingly.
Or one could add the default installation path used by the KTX-Software installer, like $ENV{ProgramFiles}/KTX-Software/include and $ENV{ProgramFiles}/KTX-Software/lib.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions