OrfeasZ / ZHMModSDK

A modding SDK for Hitman 3
Other
118 stars 29 forks source link

Unable to build from command line #116

Closed illusion0001 closed 2 months ago

illusion0001 commented 4 months ago

I can only build the project once I open the repo in VS. if I run the commands from CI build script to simulate building from command line from fresh clone I get these errors.

CMake Error at External/vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package):
  Could not find a configuration file for package "directxtk12" that is
  compatible with requested version "".

  The following configuration files were considered but not accepted:

    D:/a/ZHMModSDK/ZHMModSDK/_build/x64-Debug/vcpkg_installed/x64-windows-zhm/share/directxtk12/directxtk12-config.cmake, version: 1.5.8 (64bit)

Call Stack (most recent call first):
  CMakeLists.txt:15 (find_package)

-- Configuring incomplete, errors occurred!
ninja: error: loading 'build.ninja': The system cannot find the file specified.

CMake Error: Not a file: D:/a/ZHMModSDK/ZHMModSDK/_build/x64-Debug/cmake_install.cmake
CMake Error: Error processing file: D:/a/ZHMModSDK/ZHMModSDK/_build/x64-Debug/cmake_install.cmake
OrfeasZ commented 2 months ago

Make sure you're doing this in the x64 Native Tools Command Prompt for VS 2022.