KomputeProject / kompute

General purpose GPU compute framework built on Vulkan to support 1000s of cross vendor graphics cards (AMD, Qualcomm, NVIDIA & friends). Blazing fast, mobile-enabled, asynchronous and optimized for advanced GPU data processing usecases. Backed by the Linux Foundation.
http://kompute.cc/
Apache License 2.0
1.94k stars 146 forks source link

After compilation, only the library file has no header file #324

Closed ZhangXiChang closed 10 months ago

ZhangXiChang commented 1 year ago

execute: cmake -Bbuild -G "MinGW Makefiles" -DKOMPUTE_OPT_DISABLE_VULKAN_VERSION_CHECK=ON -DKOMPUTE_OPT_BUILD_AS_SHARED_LIB=OFF cd build mingw32-make.exe -j14

result: There are library files, but no header files. Execute 'mingw32 make. exe install' prompt: CMake Error at src/cmake_install.cmake:45 (file): file INSTALL cannot find "C:/Project/GCC/AI/pack/kompute/build/kompute/komputeConfigVersion.cmake": File exists. Call Stack (most recent call first): cmake_install.cmake:52 (include)

mingw32-make: *** [Makefile:99: install] Error 1

axsaucedo commented 1 year ago

@ZhangXiChang what are you building atm? Is it one of the examples or your own project? If you can provide more details this can be explored further - for completeness the headers are in the include folder

evanokeeffe commented 1 year ago

Having a similar issue on Ubuntu 22.04 with install to /usr/local/lib during make install getting this

CMake Error at src/cmake_install.cmake:50 (file): file INSTALL cannot find "/home/user/Libraries/kompute/build/kompute/komputeConfigVersion.cmake": No such file or directory. Call Stack (most recent call first): cmake_install.cmake:57 (include)

just using basic options for building cd kompute mkdir build && cd build cmake .. make -j4 sudo make install

ToKiNoBug commented 10 months ago

I have met same issue too on windows with MSVC and clang, and on archlinux with gcc and clang. There's some thing wrong with its cmake script, I will try to fix it.