Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows building error #318

Closed
0106WeiWeiDeng opened this issue Jan 31, 2023 · 3 comments
Closed

windows building error #318

0106WeiWeiDeng opened this issue Jan 31, 2023 · 3 comments

Comments

@0106WeiWeiDeng
Copy link

hi,

I build kcompute 0.8.1 using cmake(GUI), but an error occurred, the following is the ouput :

The C compiler identification is MSVC 19.34.31937.0
The CXX compiler identification is MSVC 19.34.31937.0
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe - skipped
Detecting C compile features
Detecting C compile features - done
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe - skipped
Detecting CXX compile features
Detecting CXX compile features - done
Found Vulkan: D:/vulkan_sdk/Lib/vulkan-1.lib (found version "1.3.236") found components: glslc glslangValidator
CMake Error at src/CMakeLists.txt:87 (find_package):
By not providing "Findfmt.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "fmt", but
CMake did not find one.

Could not find a package configuration file provided by "fmt" with any of
the following names:

fmtConfig.cmake
fmt-config.cmake

Add the installation prefix of "fmt" to CMAKE_PREFIX_PATH or set "fmt_DIR"
to a directory containing one of the above files. If "fmt" provides a
separate development package or SDK, be sure it has been installed.

Configuring incomplete, errors occurred!

@0106WeiWeiDeng
Copy link
Author

0106WeiWeiDeng commented Feb 1, 2023

After installing fmtlib, and setting "fmt_DIR" , cmake configures with no error, but, there were some building errors:

  1. kompute-0.8.1\src\Algorithm.cpp(307,27): error C2440: Cannot convert vk::ResultValuevk::Pipeline to vk::Pipeline
  2. fmt/core.h(1728,7): error C2338: static_assert failed: 'Cannot format an argument. To make type T formattable provide a formatter specialization: https://fmt.dev/latest/api.html#udt'

anyone has a hint to fix these errors?

@0106WeiWeiDeng 0106WeiWeiDeng changed the title windows build error: "fmt" not found windows building error Feb 1, 2023
@arashandishgar
Copy link

Hi ,
it seems this #201 address your problem

@0106WeiWeiDeng
Copy link
Author

Thanks, I download the code of master branch (not 0.8.1), and configure it with default cmake options, build successfully:

  1. download the zip file of the master branch, unzip it, and open PowerShell in kompute-master diretory
  2. mkdir build
  3. cmake ..
  4. cmake --build . --config Release --clean-first
  5. cmake --install . # errors occur after runing this command, but removing some cmake code(two install files not exist), it run successfully

at last, build/install diretory contains the installed files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants