Building the library using CMake: Error in configuration progress, project files may be invalid.

I use VS2017, CMake-3.10.2-win64-x64 and Box2D-2.3.1. I follow the manuals' instruction but I got the below errors when building the library. Could anybody tell me detailed steps to debug please? Thanks a lot!


The C compiler identification is MSVC 19.11.25547.0
The CXX compiler identification is MSVC 19.11.25547.0
Check for working C compiler: C:/Users/cir15hl/Downloads/VC++/VC++/VC/Tools/MSVC/14.11.25503/bin/Hostx86/x86/cl.exe
Check for working C compiler: C:/Users/cir15hl/Downloads/VC++/VC++/VC/Tools/MSVC/14.11.25503/bin/Hostx86/x86/cl.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler: C:/Users/cir15hl/Downloads/VC++/VC++/VC/Tools/MSVC/14.11.25503/bin/Hostx86/x86/cl.exe
Check for working CXX compiler: C:/Users/cir15hl/Downloads/VC++/VC++/VC/Tools/MSVC/14.11.25503/bin/Hostx86/x86/cl.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Found OpenGL: opengl32
CMake Error at CMakeLists.txt:29 (add_subdirectory):
add_subdirectory given source "freeglut" which is not an existing
directory.


CMake Error at CMakeLists.txt:30 (add_subdirectory):
add_subdirectory given source "glui" which is not an existing directory.


Configuring incomplete, errors occurred!
See also "C:/Users/cir15hl/Documents/HangTortoiseSVN/Papers/Box2D_folder/Box2D-2.3.1/Box2D-2.3.1/Box2D/Build/CMakeFiles/CMakeOutput.log".

Original thread: https://box2d.org/forum/viewtopic.php?t=10284