I followed the tutorial closely and got this error when I clicked the “Run CMake” button:
http://pastebin.com/BYEHRbXs
CMake Error at D:/Program Files/cmake-3.1.0-win32-x86/share/cmake-3.1/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find GLEW (missing: GLEW_INCLUDE_DIR GLEW_LIBRARY)
Call Stack (most recent call first):
D:/Program Files/cmake-3.1.0-win32-x86/share/cmake-3.1/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
D:/Program Files/cmake-3.1.0-win32-x86/share/cmake-3.1/Modules/FindGLEW.cmake:44 (find_package_handle_standard_args)
cmake/Modules/CocosBuildHelpers.cmake:44 (find_package)
CMakeLists.txt:158 (cocos_find_package)
CMake Warning (dev) at cmake/Modules/CocosBuildHelpers.cmake:153 (elseif):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run “cmake --help-policy CMP0054” for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like “MSVC” will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
CMakeLists.txt:38 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/Modules/CocosBuildHelpers.cmake:155 (elseif):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run “cmake --help-policy CMP0054” for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like “MSVC” will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
CMakeLists.txt:38 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
It appears you are builing natively for Windows Desktop with Visual Studio C++
CMake Warning (dev) at cmake/Modules/CocosBuildHelpers.cmake:147 (elseif):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run “cmake --help-policy CMP0054” for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like “MSVC” will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
CMakeLists.txt:38 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/Modules/CocosBuildHelpers.cmake:144 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run “cmake --help-policy CMP0054” for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like “MSVC” will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
CMakeLists.txt:38 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
– The C compiler identification is MSVC 18.0.31101.0
– The CXX compiler identification is MSVC 18.0.31101.0
– Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe
– Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe
– Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Found OpenGL: opengl32
– OpenGL include dirs:
– Configuring incomplete, errors occurred!
See also “D:/cocos2d-x-3.3-build1/CMakeFiles/CMakeOutput.log”.
I have also taken some extra steps, but they didn’t help. I have:
- Ran the setup.py and set up my Android SDK, NDK and ANT location.
- Ran download-deps.py
- Downloaded GLEW 1.11 and GLFW 3.0.4 and put their folders in the PATH environment variable.