axodox / axodox-machinelearning

This repository contains a pure C++ ONNX implementation of multiple offline AI models, such as StableDiffusion (1.5 and XL), ControlNet, Midas, HED and OpenPose.
MIT License
605 stars 35 forks source link

NuGet fails with fresh Unreal Engine 5.2 Project #2

Closed zolrath closed 1 year ago

zolrath commented 1 year ago

Hello! Very excited for this project!

Attempting to add Axodox.Common via NuGet to an Unreal Engine 5 project fails with the following error:

Severity Code Description Project File Line Suppression State Error The expression "[System.IO.Directory]::GetFiles(P:\Unreal\TestProject\packages\Axodox.Common.1.0.14\build\native....\lib\desktop\x64\Development_Editor, *.lib)" cannot be evaluated. Could not find a part of the path 'P:\Unreal\TestProject\packages\Axodox.Common.1.0.14\lib\desktop\x64\Development_Editor'. P:\Unreal\TestProject\packages\Axodox.Common.1.0.14\build\native\Axodox.Common.targets

This is after setting the C++ standard to C++20 in visual studio as well as:

public class TestProject: ModuleRules
{
    public TestProject(ReadOnlyTargetRules Target) : base(Target)
    {
        CppStandard = CppStandardVersion.Cpp20
                ...
zolrath commented 1 year ago

For completeness sake, Unreal Engine doesn't actually support NuGet packages so this would need to be wrapped in an Unreal Engine Plugin for a Third Party Library.

axodox commented 1 year ago

Yes I am aware, I plan to create one in the coming weeks.