KhronosGroup / KTX-Software

KTX (Khronos Texture) Library and Tools
Other
875 stars 230 forks source link

compile fail linux #820

Closed sj-m closed 10 months ago

sj-m commented 10 months ago

command : cmake . -B build

assimp installed on /usr/bin/assimp

errorMsg : CMake Error at cmake/modules/Findassimp.cmake:84 (message): Could not find asset importer library Call Stack (most recent call first): tests/loadtests/CMakeLists.txt:12 (find_package)

MarkCallow commented 10 months ago

I have no idea what /usr/bin/assimp is. You need to install libassimp and assimp-dev from your package manager. E.g,

sudo apt-get install libassimp5 libassimp-dev

This will install libassimp.so.5 and cmake/assimp-5* in the library directory for your architecture and /usr/include/assimp. assimp is a library not a command. The build should then work. Our CI builds successfully use Ubuntu 22.04.

MarkCallow commented 10 months ago

Please reopen if you still have an issue after installing libassimp and libassimp-dev.