Skip to content

GDeflate documentation lacks instructions or references for nuget.exe prerequisite #39

Open
@elasota

Description

After cloning the repository and following the instructions to open the GDeflate directory as a local folder in Visual Studio 2022, the initial CMake configuration fails with this message:

1> [CMake] -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe - skipped
1> [CMake] -- Detecting CXX compile features
1> [CMake] -- Detecting CXX compile features - done
1> [CMake] 
1> [CMake] Process failed because: The system cannot find the file specified
1> [CMake] 
1> [CMake] for command: NUGET_EXE-NOTFOUND install -Source https://api.nuget.org/v3/index.json Microsoft.Direct3D.DirectStorage -Version 1.2.2 -ExcludeVersion -OutputDirectory D:/src2/DirectStorage/GDeflate/build/Windows/Debug/packages 
1> [CMake] -- Configuring done
1> [CMake] -- Generating done
1> [CMake] -- Build files have been written to: D:/src2/DirectStorage/GDeflate/build/Windows/Debug

Per this page: https://www.nuget.org/downloads , while NuGet is bundled with Visual Studio, the nuget.exe CLI program is not, so this doesn't appear to be a problem of VS being misconfigured. (In my installation, both NuGet components are installed and working otherwise.)

If NuGet CLI isn't installed somewhere that CMake can find it, then the build will fail because it won't fetch the DirectStorage package and dstorage.h will be missing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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