-- Trying 'Visual Studio 17 2022 x64 v143' generator - success
--------------------------------------------------------------------------------
Configuring Project
Working directory:
D:\taichi\_skbuild\win-amd64-3.8\cmake-build
Command:
'C:\Users\Administrator\AppData\Roaming\Python\Python38\site-packages\cmake\data\bin/cmake.exe' 'D:\taichi' -G 'Visual Studio 17 2022' '-DCMAKE_INSTALL_PREFIX:PATH=D:\taichi\_skbuild\win-amd64-3.8\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.8.16 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\Administrator\AppData\Roaming\Python\Python38\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8\Include' '-DPYTHON_LIBRARY:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8\libs\python38.lib' '-DPython_EXECUTABLE:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8\python.exe' '-DPython_ROOT_DIR:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8' '-DPython_INCLUDE_DIR:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8\Include' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_NumPy_INCLUDE_DIRS:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8\lib\site-packages\numpy\core\include' '-DPython3_EXECUTABLE:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8\python.exe' '-DPython3_ROOT_DIR:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8' '-DPython3_INCLUDE_DIR:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8\Include' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_NumPy_INCLUDE_DIRS:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8\lib\site-packages\numpy\core\include' -T v143 -A x64 '-DCLANG_EXECUTABLE=<Path' to 'Clang>/bin/clang.exe' '-DLLVM_AS_EXECUTABLE=<Path' to LLVM '15>/bin/llvm-as.exe' -DTI_WITH_VULKAN:BOOL=ON -DTI_WITH_C_API=ON '-DCLANG_EXECUTABLE=C:\Users\Administrator\AppData\Local\build-cache\clang-15-v2\bin\clang++.exe' -DCMAKE_C_COMPILER_LAUNCHER=C:UsersAdministratorAppDataLocalbuild-cachesccachebinsccache.exe -DCMAKE_CXX_COMPILER_LAUNCHER=C:UsersAdministratorAppDataLocalbuild-cachesccachebinsccache.exe -DTI_VERSION_MAJOR=1 -DTI_VERSION_MINOR=6 -DTI_VERSION_PATCH=0 -DCMAKE_BUILD_TYPE:STRING=Release
CMake Warning:
Ignoring extra path from command line:
"15>/bin/llvm-as.exe"
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.25314.
-- The C compiler identification is MSVC 19.35.32216.1
-- The CXX compiler identification is MSVC 19.35.32216.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/vs2022/VC/Tools/MSVC/14.35.32215/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: D:/vs2022/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Taichi Version 1.6.0
Commit 2d786e52a6cf7ad658db14601d39d5597eb2b7eb
CMAKE_MSVC_RUNTIME_LIBRARY:
CLANG_EXECUTABLE defined: C:\Users\Administrator\AppData\Local\build-cache\clang-15-v2\bin\clang++.exe
C:\Users\Administrator\AppData\Local\build-cache\clang-15-v2\bin\clang++.exe --version: 15.0.0
-- Python: Using C:/Users/Administrator/AppData/Local/build-cache/miniforge3/envs/3.8/python.exe as the interpreter
version: 3.8.16
include: C:/Users/Administrator/AppData/Local/build-cache/miniforge3/envs/3.8/Include
library: C:/Users/Administrator/AppData/Local/build-cache/miniforge3/envs/3.8/libs/python38.lib
numpy include: C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8\lib\site-packages\numpy\core\include
-- Found PythonInterp: C:/Users/Administrator/AppData/Local/build-cache/miniforge3/envs/3.8/python.exe (found suitable version "3.8.16", minimum required is "3.6")
-- Found PythonLibs: C:/Users/Administrator/AppData/Local/build-cache/miniforge3/envs/3.8/libs/python38.lib
-- Performing Test HAS_MSVC_GL_LTCG
-- Performing Test HAS_MSVC_GL_LTCG - Success
-- Found pybind11: C:/Users/Administrator/AppData/Roaming/Python/Python38/site-packages/pybind11/include (found version "2.10.4")
Using C++ compiler: D:/vs2022/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe
Building for processor AMD64
Using float32 (single) precision as real
CMake Warning at cmake/TaichiCore.cmake:56 (message):
Metal backend only supported on OS X. Setting TI_WITH_METAL to OFF.
Call Stack (most recent call first):
CMakeLists.txt:165 (include)
CMake Warning at cmake/TaichiCore.cmake:63 (message):
C backend not supported on Windows. Setting TI_WITH_CC to OFF.
Call Stack (most recent call first):
CMakeLists.txt:165 (include)
CMake Warning at cmake/TaichiCore.cmake:77 (message):
external/glad submodule not detected. Settings TI_WITH_OPENGL to OFF.
Call Stack (most recent call first):
CMakeLists.txt:165 (include)
Building with GLFW
CMake Error at cmake/TaichiCore.cmake:157 (add_subdirectory):
The source directory
D:/taichi/external/glfw
does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
CMakeLists.txt:165 (include)
Getting LLVM_DIR=C:\Users\Administrator\AppData\Local\build-cache\llvm15 from the environment variable
-- Found LLVM 15.0.1
-- Using LLVMConfig.cmake in: C:/Users/Administrator/AppData/Local/build-cache/llvm15/lib/cmake/llvm
LLVM include dirs C:/Users/Administrator/AppData/Local/build-cache/llvm15/include
LLVM library dirs C:/Users/Administrator/AppData/Local/build-cache/llvm15/lib
CMake Error at cmake/TaichiCore.cmake:319 (add_subdirectory):
The source directory
D:/taichi/external/SPIRV-Tools
does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
CMakeLists.txt:165 (include)
PYTHON_LIBRARIES: C:/Users/Administrator/AppData/Local/build-cache/miniforge3/envs/3.8/libs/python38.lib
C++ Flags: /DWIN32 /D_WINDOWS /GR /EHsc -DTI_ISE_NONE /Zc:__cplusplus /Zc:inline /std:c++17 /MP /bigobj /Zi /Zf /Oi /wd4244 /wd4267 /wd4624 /nologo /D "_CRT_SECURE_NO_WARNINGS" /D "_ENABLE_EXTENDED_ALIGNED_STORAGE" /D "TI_ARCH_x64" -DTI_PASS_EXCEPTION_TO_PYTHON -DTI_INCLUDED -DTI_WITH_LLVM -DTI_WITH_CUDA -DTI_WITH_VULKAN
Build type: Release
-- Compiling LLVM byte code file for arch x64
-- Compiling LLVM byte code file for arch cuda
Installing to D:/taichi/_skbuild/win-amd64-3.8/cmake-install/c_api
Installing to D:/taichi/_skbuild/win-amd64-3.8/cmake-install/python/taichi/_lib/c_api
-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Roaming\Python\Python38\site-packages\skbuild\setuptools_wrap.py", line 634, in setup
env = cmkr.configure(
File "C:\Users\Administrator\AppData\Roaming\Python\Python38\site-packages\skbuild\cmaker.py", line 332, in configure
raise SKBuildError(
An error occurred while configuring with CMake.
Command:
'C:\Users\Administrator\AppData\Roaming\Python\Python38\site-packages\cmake\data\bin/cmake.exe' 'D:\taichi' -G 'Visual Studio 17 2022' '-DCMAKE_INSTALL_PREFIX:PATH=D:\taichi\_skbuild\win-amd64-3.8\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.8.16 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\Administrator\AppData\Roaming\Python\Python38\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8\Include' '-DPYTHON_LIBRARY:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8\libs\python38.lib' '-DPython_EXECUTABLE:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8\python.exe' '-DPython_ROOT_DIR:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8' '-DPython_INCLUDE_DIR:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8\Include' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_NumPy_INCLUDE_DIRS:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8\lib\site-packages\numpy\core\include' '-DPython3_EXECUTABLE:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8\python.exe' '-DPython3_ROOT_DIR:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8' '-DPython3_INCLUDE_DIR:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8\Include' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_NumPy_INCLUDE_DIRS:PATH=C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8\lib\site-packages\numpy\core\include' -T v143 -A x64 '-DCLANG_EXECUTABLE=<Path' to 'Clang>/bin/clang.exe' '-DLLVM_AS_EXECUTABLE=<Path' to LLVM '15>/bin/llvm-as.exe' -DTI_WITH_VULKAN:BOOL=ON -DTI_WITH_C_API=ON '-DCLANG_EXECUTABLE=C:\Users\Administrator\AppData\Local\build-cache\clang-15-v2\bin\clang++.exe' -DCMAKE_C_COMPILER_LAUNCHER=C:UsersAdministratorAppDataLocalbuild-cachesccachebinsccache.exe -DCMAKE_CXX_COMPILER_LAUNCHER=C:UsersAdministratorAppDataLocalbuild-cachesccachebinsccache.exe -DTI_VERSION_MAJOR=1 -DTI_VERSION_MINOR=6 -DTI_VERSION_PATCH=0 -DCMAKE_BUILD_TYPE:STRING=Release
Source directory:
D:\taichi
Working directory:
D:\taichi\_skbuild\win-amd64-3.8\cmake-build
Please see CMake's output for more information.
check.warn(importable)
C:\Users\Administrator\AppData\Local\build-cache\miniforge3\envs\3.8\lib\site-packages\setuptools\command\build_py.py:202: SetuptoolsDeprecationWarning: Installing 'taichi.examples.autodiff' as data is deprecated, please list it in `packages`.
!!
############################
# Package would be ignored #
############################
Python recognizes 'taichi.examples.autodiff' as an importable package,
but it is not listed in the `packages` configuration of setuptools.
'taichi.examples.autodiff' has been automatically added to the distribution only
because it may contain data files, but this behavior is likely to change
in future versions of setuptools (and therefore is considered deprecated).
Please make sure that 'taichi.examples.autodiff' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" and "data files" on setuptools
documentation page.
!!
之后在install 编译好的taichi时,便出现多个功能无法使用的情况,如ggui:
File "D:\Anaconda\envs\tini\lib\site-packages\taichi\ui\window.py", line 37, in __init__
check_ggui_availability()
File "D:\Anaconda\envs\tini\lib\site-packages\taichi\ui\utils.py", line 91, in check_ggui_availability
raise GGUINotAvailableException("GGUI is not available.")
taichi.ui.utils.GGUINotAvailableException: GGUI is not available.