lenLRX / SimDota2

A simulator of dota2 with Python binding.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot Build the project on Ubuntu18

HuangHaoyu1997 opened this issue · comments

Hi, I'm very interested in your project and tried to build the cpp files following the 'build.sh'.
But unfortunately it cannot build the target files.
Cmake log is :

-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version "2.7.17")
Python LIB: /usr/lib/x86_64-linux-gnu/libpython2.7.so
Python INC: /usr/include/python2.7
-- Configuring done
-- Generating done
-- Build files have been written to: /home/hhy/Desktop/SimDota2/build
Scanning dependencies of target cppSimulator
[ 4%] Building CXX object CMakeFiles/cppSimulator.dir/src/AtkDmgType.cpp.o
[ 9%] Building CXX object CMakeFiles/cppSimulator.dir/src/Config.cpp.o
In file included from /home/hhy/Desktop/SimDota2/src/Config.cpp:1:0:
/home/hhy/Desktop/SimDota2/include/Config.h:9:10: fatal error: rapidjson/document.h: No such file or directory
#include "rapidjson/document.h"
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/cppSimulator.dir/build.make:86: recipe for target 'CMakeFiles/cppSimulator.dir/src/Config.cpp.o' failed
make[2]: *** [CMakeFiles/cppSimulator.dir/src/Config.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/cppSimulator.dir/all' failed
make[1]: *** [CMakeFiles/cppSimulator.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

it seems that the project is lacking some files, Can you fix it?