git clone ...; cd ...; xmake (updating submodule LC to latest):
- XRepo is not a git repository
(rewrite os.projectdir() to os.scriptdir())
- vulkan not found
(installed vulkan and clang++)
- cannot open glfw
(it seems the submodule init wrongly; remove glfw and git submodule init again)
- need Windows SDK > 10.21000
(install windows sdk)
- cannot open input file 'nvrtc_static.lib' / cannot open 'cuda.h'
set_config("cuda_backend", false)
xmake run demo cpu
6) backend 'cpu' is not installed
set_config("cpu_backend", true)
xmake
7) unknown target(lc-ir) for lc-backend-cpu.deps!
set_config("enable_ir", true)
8) Could not find clang. Please set LUISA_CLANG_PATH to the path of clang++ executable
$env:LUISA_CLANG_PATH="D:\Programs\Scoop\apps\llvm\current\bin\clang++.exe"
9) Could not find LLVM. Please set LUISA_LLVM_PATH to the path of LLVM-C.dll
$env:LUISA_LLVM_PATH="D:\Programs\Scoop\apps\llvm\18.1.8\bin\LLVM-C.dll"
xmake run demo cpu
10) where is the color.png?
(under build/windows/x64/release)
install VSCode extension clangd codelldb
11) red-underlined header files
(ctrl+shift+P; xmake updateIntellisense; ctrl+shift+P; clangd restart server)
xmake run demo dx
12) [error] D3D12 call 'D3D12CreateDevice( adapter.Get(), D3D_FEATURE_LEVEL_12_1, IID_PPV_ARGS(device.GetAddressOf()))' failed with error DXGI_ERROR_UNSUPPORTED (code = -2005270524).
(modify Device.cpp to select Intel card)
git clone ...; cd ...; xmake(updating submodule LC to latest):(rewrite
os.projectdir()toos.scriptdir())(installed vulkan and clang++)
(it seems the submodule init wrongly; remove glfw and
git submodule initagain)(install windows sdk)
set_config("cuda_backend", false)xmake run demo cpu6) backend 'cpu' is not installed
set_config("cpu_backend", true)xmake7) unknown target(lc-ir) for lc-backend-cpu.deps!
set_config("enable_ir", true)8) Could not find clang. Please set LUISA_CLANG_PATH to the path of clang++ executable
$env:LUISA_CLANG_PATH="D:\Programs\Scoop\apps\llvm\current\bin\clang++.exe"9) Could not find LLVM. Please set LUISA_LLVM_PATH to the path of LLVM-C.dll
$env:LUISA_LLVM_PATH="D:\Programs\Scoop\apps\llvm\18.1.8\bin\LLVM-C.dll"
xmake run demo cpu10) where is the
color.png?(under build/windows/x64/release)
install VSCode extension clangd codelldb
11) red-underlined header files
(ctrl+shift+P; xmake updateIntellisense; ctrl+shift+P; clangd restart server)
xmake run demo dx12) [error] D3D12 call 'D3D12CreateDevice( adapter.Get(), D3D_FEATURE_LEVEL_12_1, IID_PPV_ARGS(device.GetAddressOf()))' failed with error DXGI_ERROR_UNSUPPORTED (code = -2005270524).
(modify
Device.cppto select Intel card)