peter1591 / hearthstone-ai

A Hearthstone AI based on Monte Carlo tree search and neural nets written in modern C++.
302 stars 49 forks source link

Metadata file 'GameEngineCppCLI.dll' could not be found #102

Closed FinlayDaG33k closed 6 years ago

FinlayDaG33k commented 6 years ago

Hii there, I'm trying to build your program in VS2017 but when trying to build it, I get the error

Metadata file 'c:\users\aroop\desktop\HearthAi\ui\build\vs2017\Debug\GameEngineCppCLI.dll' could not be found

Any clues?

1>------ Build started: Project: GameEngineCppWrapper, Configuration: Debug Win32 ------
1>GameEngine.cpp
1>c:\users\aroop\desktop\hearthstone-ai-master\engine\include\cards\database.h(235): error C2429: language feature 'terse static assert' requires compiler flag '/std:c++latest'
1>c:\program files (x86)\microsoft visual studio\2017\enterprise\vc\tools\msvc\14.10.25017\include\variant(16): fatal error C1189: #error:  class template variant is only available with C++17.
1>json_writer.cpp
1>json_value.cpp
1>json_reader.cpp
1>CardDispatcher.cpp
1>c:\program files (x86)\microsoft visual studio\2017\enterprise\vc\tools\msvc\14.10.25017\include\variant(16): fatal error C1189: #error:  class template variant is only available with C++17.
1>NeuralNetwork.cpp
1>c:\users\aroop\desktop\hearthstone-ai-master\agents\src\neural_net\neuralnetwork.cpp(19): fatal error C1083: Cannot open include file: 'tiny_dnn/tiny_dnn.h': No such file or directory
1>Generating Code...
1>Done building project "GameEngineCppWrapper.vcxproj" -- FAILED.
2>------ Build started: Project: GameEngineCppCLI, Configuration: Debug Win32 ------
2>Source.cpp
2>c:\users\aroop\desktop\hearthstone-ai-master\ui\build\vs2017\gameenginecppcli\Header.h(3): fatal error C1083: Cannot open include file: 'UI/GameEngine.h': No such file or directory
2>Done building project "GameEngineCppCLI.vcxproj" -- FAILED.
3>------ Build started: Project: HearthstoneAI, Configuration: Debug Any CPU ------
3>          1 file(s) copied.
3>CSC : error CS0006: Metadata file 'C:\Users\Aroop\Desktop\hearthstone-ai-master\ui\build\vs2017\Debug\GameEngineCppCLI.dll' could not be found
========== Build: 0 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise>cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25019 for x64
FinlayDaG33k commented 6 years ago

switched over to https://github.com/linuxaged/hearthstone-ai/tree/develop and it worked almost instantly