Skip to content

Keep a record on installing this on Windows #1

@iscas-zac

Description

@iscas-zac

git clone ...; cd ...; xmake (updating submodule LC to latest):

  1. XRepo is not a git repository
    (rewrite os.projectdir() to os.scriptdir())
  2. vulkan not found
    (installed vulkan and clang++)
  3. cannot open glfw
    (it seems the submodule init wrongly; remove glfw and git submodule init again)
  4. need Windows SDK > 10.21000
    (install windows sdk)
  5. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions