Skip to content

Issues compiling on Windows #521

Description

@orgicus

This looks really cool and I tried to build on windows.

Unfortunately I'm running into an issue with vcpkg managing dependencies and their versions.
As far as I can check I'm using recommended versions of cmake, cuda, etc.:

cmake -B build -DCMAKE_BUILD_TYPE=Release -G Ninja -DCMAKE_TOOLCHAIN_FILE="../vcpkg/scripts/buildsystems/vcpkg.cmake"
-- Running vcpkg install
error: rename_or_delete("E:/DL/vcpkg/buildtrees/versioning_/versions/args/eca261df4af60a96e04f46c28f27e5aeee0290a1_79304.tmp", "E:\DL\vcpkg\buildtrees\versioning_\versions\args\eca261df4af60a96e04f46c28f27e5aeee0290a1"): unknown errornote: while checking out port args with git tree eca261df4af60a96e04f46c28f27e5aeee0290a1
note: See https://learn.microsoft.com/vcpkg/users/versioning-troubleshooting?WT.mc_id=vcpkg_inproduct_cli for more information.
note: while loading args@6.4.7

-- Running vcpkg install - failed
CMake Error at E:/DL/vcpkg/scripts/buildsystems/vcpkg.cmake:949 (message):
  vcpkg install failed.  See logs for more information:
  E:\DL\LichtFeld-Studio\build\vcpkg-manifest-install.log
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.30/Modules/CMakeDetermineSystem.cmake:146 (include)
  CMakeLists.txt:15 (project)


CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_CUDA_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

E:\DL\LichtFeld-Studio>cmake --version
cmake version 3.30.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).

E:\DL\LichtFeld-Studio>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2025 NVIDIA Corporation
Built on Wed_Jan_15_19:38:46_Pacific_Standard_Time_2025
Cuda compilation tools, release 12.8, V12.8.61
Build cuda_12.8.r12.8/compiler.35404655_0

E:\DL\LichtFeld-Studio>git --version
git version 2.51.2.windows.1

E:\DL\LichtFeld-Studio>ninja --version
1.11.0

E:\DL\LichtFeld-Studio>where ninja
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe

I've tried deleting vcpkg's buildtrees folder and cmake generating again: same behaviour.
I'd also added the folder as an exception so it gets ignored by security tools, just in case that messes with it: again, no changes.
My hunch is this is vcpkg version related and the Ninja and following errors are a bit of a red herring.

Any hints/tips on how I can compile and run LichtFeld-Studio on Windows ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions