dotnet / machinelearning

ML.NET is an open source and cross-platform machine learning framework for .NET.
https://dot.net/ml
MIT License
8.94k stars 1.86k forks source link

The project won't build #6823

Open andrei-faber opened 10 months ago

andrei-faber commented 10 months ago

System Information (please complete the following information): Windows 11 x64 .NET 7.0.111, latest source code

Describe the bug Build error:

D:\Projects.Ext\machinelearning\src\Native\Native.proj(133,5): error MSB3073: The command ""D:\Projects.Ext\machinelearning\src\Native\build.cmd" Debug x64 --mkllibpath C:\Users\andreifaber\.nuget\packages\mlnetmkldeps\0. 0.0.12\runtimes\win-x64\native --onedaldevelpath C:\Users\andreifaber\.nuget\packages\inteldal.devel.win-x64\2023.0.0.23189\build\native\daal\latest --onetbbdevelpath C:\Users\andreifaber\.nuget\packages\inteltbb.devel.wi n\2021.7.1.15305\lib\native\win-x64" exited with code 1.
D:\Projects.Ext\machinelearning\Directory.Build.targets(54,3): error MSB3030: Could not copy the file "D:\Projects.Ext\machinelearning\artifacts\bin\Native\x64.Debug\CpuMathNative.dll" because it was not found. [D:\Projec ts.Ext\machinelearning\test\Microsoft.ML.CpuMath.PerformanceTests\Microsoft.ML.CpuMath.PerformanceTests.csproj::TargetFramework=net6.0]
D:\Projects.Ext\machinelearning\Directory.Build.targets(54,3): error MSB3030: Could not copy the file "D:\Projects.Ext\machinelearning\artifacts\bin\Native\x64.Debug\LdaNative.dll" because it was not found. [D:\Projects.E xt\machinelearning\src\Microsoft.ML\Microsoft.ML.csproj]
    0 Warning(s)
    3 Error(s)

To Reproduce build.cmd -configuration Debug /p:TargetArchitecture=x64

asmirnov82 commented 10 months ago

I faced with the same issue on my machine. I also tried to build native code separately:

...\src\Native>build.cmd

but got another error:

Calling "C:\Sources\machinelearning\src\Native\\gen-buildsys-win.bat" "C:\Sources\machinelearning\src\Native\" "17 2022" x64
CMake Warning:
  Ignoring extra path from command line:

   "2022  -A x64 -B. -HC:\Sources\machinelearning\src\Native""

CMake Error: The source directory "C:/Sources/machinelearning/artifacts/obj/Native/x64.Debug/Studio" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Failed to generate native component build project!
JakeRadMSFT commented 9 months ago

@asmirnov82 and @andrei-faber How did you setup your machines?

Did you follow these setup instructions?

https://github.com/dotnet/machinelearning/blob/54a3cb91df87282c59f9c37b98a4b664ed695958/docs/building/windows-instructions.md

asmirnov82 commented 9 months ago

I use VS2022, so versions of libraries are different. Anyway. my problem was fixed by intalling Windows 10 SDK. @JakeRadMSFT thank you very much for your assistant!