TorchCraftAI
TorchCraftAI copied to clipboard
Build Error when building CherryPi
My compilation environment is windows10,CUDA Toolkit 10.2, python 3.7 cmake .. -DMSVC=true -DZMQ_LIBRARY="../3rdparty/zmq.lib" -DZMQ_INCLUDE_DIR="../3rdparty/libzmq/include" -DGFLAGS_LIBRARY="../3rdparty/gflags_static.lib" -DGFLAGS_INCLUDE_DIR="../3rdparty/gflags/build/include" -DGLOG_ROOT_DIR="../3rdparty/glog" -DCMAKE_CXX_FLAGS_RELEASE="/MP /EHsc" -G "Visual Studio 15 2017 Win64" when using the command above to build CherryPi ,following problems occurred:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: LIB_glog linked by target "common" in directory D:/Coding/TorchCraftAI/common linked by target "cherrypi" in directory D:/Coding/TorchCraftAI/src So I traced back to find waht happened and we found this error : CMake Warning at CMakeLists.txt:81 (FIND_PACKAGE): Found package configuration file:
D:/Coding/TorchCraftAI/3rdparty/glog/build/glog-config.cmake but it set glog_FOUND to FALSE so package "glog" is considered to be NOT FOUND. Reason given by package:
glog could not be found because dependency gflags could not be found.
I read the document that this build command may complain about missing GFLAGS_LIBRARY so I just continue to use the next command then the error occurred like this :
MSBUILD : error MSB1009: project file does not exist
It shows that we miss the file called CherryPi.sln . I think the missing may due to the failure build of the previous command. Could you please help me to solve this problem. Thx
I assume that you followed https://torchcraft.github.io/TorchCraftAI/docs/install-windows.html and built gflags and glog? Can you double-check whether ../3rdparty/gflags_static.lib
and ../3rdparty/glog/glog.lib
are present?
Yes, I followed the instruction step by step. I checked those two file, gflags_static.lib and glog.lib are in the route : ..\TorchCraftAI\3rdparty\glog\build\Release and ..\TorchCraftAI\3rdparty\gflags\build\lib\Release respectively
@jgehring Hello?I also met this problem, and I checked all the lib files, and they exist in the correct directories, and also be copied into the 3rdparty. However, I find that there are some weird korean words in the filed named mapmatcher.cpp which located at ./TorchCraftAI/src/gameutils/ I don't know whether this problem is caused by this word...
The Korean characters are there intentionally (for translating common Korean map names). I fully expect VS to handle them properly, but if you suspect they're an issue, you could replace the function with a return std::string("");
and delete test/core/mapmatcher_t.cpp
@dgant Therefore, if the korean words are exactly useful, are there any methods to handle with this issue? I checked all the files and directories, there are not any errors. And also the entire steps of building pytorch, gflags, glog and zeroQM are built successfully.