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 #321

Closed
fzStella opened this issue Mar 14, 2023 · 3 comments
Closed

windows building error #321

fzStella opened this issue Mar 14, 2023 · 3 comments

Comments

@fzStella
Copy link

fzStella commented Mar 14, 2023

I build kcompute 0.8.1 using cmake(GUI) on Windows, but an error occurred.
Steps to reproduce

  $ git clone --branch v0.8.1 --recursive https://github.com/KomputeProject/kompute
  $ cd kompute/examples/array_multiplication/
  $ cmake -Bbuild/ -DCMAKE_BUILD_TYPE=Debug -DKOMPUTE_OPT_INSTALL=0 -DKOMPUTE_OPT_REPO_SUBMODULE_BUILD=1 -DKOMPUTE_OPT_ENABLE_SPDLOG=1

Until now, there's no problem(maybe).
Then I open Visual studio 2017, and open komute_ array_ mult.sln, try to run Main.cpp, then get some error.It tell me it can't find the file "ALL_ BUILD" in the "C:\kompute\examples\array_multiplication\build"
I don't know what steps are missing or what steps are wrong
(Solution configuration is "release Win32")

@fzStella
Copy link
Author

fzStella commented Mar 14, 2023

- C:\VS\example\kompute\examples\array_multiplication>cmake -Bbuild/ -DCMAKE_BUILD_TYPE=Debug -DKOMPUTE_OPT_INSTALL=0 -DKOMPUTE_OPT_REPO_SUBMODULE_BUILD=1 -DKOMPUTE_OPT_ENABLE_SPDLOG=1
-- Building for: Visual Studio 15 2017
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19044.
-- The C compiler identification is MSVC 19.16.27048.0
-- The CXX compiler identification is MSVC 19.16.27048.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/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 (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Vulkan: C:/VulkanSDK/1.3.236.0/Lib32/vulkan-1.lib (found version "1.3.236")  missing components: glslc glslangValidator
-- Version: 7.1.3
-- Build type: Debug
-- CXX_STANDARD: 14
-- Performing Test has_std_14_flag
-- Performing Test has_std_14_flag - Success
-- Performing Test has_std_1y_flag
-- Performing Test has_std_1y_flag - Success
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS - Success
-- Performing Test FMT_HAS_VARIANT
-- Performing Test FMT_HAS_VARIANT - Success
-- Required features: cxx_variadic_templates
-- Looking for _strtod_l
-- Looking for _strtod_l - found
-- Build spdlog: 1.8.1
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Build type: Debug
-- Configuring done
-- Generating done
-- Build files have been written to: C:/VS/example/kompute/examples/array_multiplication/build

This is the cmake content.
I found that the wrong content is the same as this #261 .
image

@ToKiNoBug
Copy link
Contributor

This is a bug caused by cmake and VS. ALL_BUILD is a "virtual" target to build all targets, it't not runnable. You need to select another target in VS.

@ToKiNoBug
Copy link
Contributor

I think this issue can be closed because it has nothing to do with kompute. You can draw an issue to cmake, or report it as a bug to VS, or simply select another target, or use another generator like ninja.

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

3 participants