"Could NOT find GLEW"

-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: C:/Program Files (x86)/CodeBlocks/MinG
.exe
-- Check for working C compiler: C:/Program Files (x86)/CodeBlocks/MinG
.exe -- 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: C:/Program Files (x86)/CodeBlocks/Mi
++.exe
-- Check for working CXX compiler: C:/Program Files (x86)/CodeBlocks/Mi
++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
It appears you are building natively for Windows Desktop with Mingw GCC
-- Found OpenGL: opengl32
-- OpenGL include dirs:

> CMake Error at C:/Program Files/CMake/share/cmake-3.9/Modules/FindPacka
> tandardArgs.cmake:137 (message):
> Could NOT find GLEW (missing: GLEW_INCLUDE_DIR GLEW_LIBRARY)
> Call Stack (most recent call first):
> C:/Program Files/CMake/share/cmake-3.9/Modules/FindPackageHandleStand
> make:377 (_FPHSA_FAILURE_MESSAGE)
> C:/Program Files/CMake/share/cmake-3.9/Modules/FindGLEW.cmake:38 (fin
> _handle_standard_args)

  cocos2d/cmake/Modules/CocosBuildHelpers.cmake:44 (find_package)
  cocos2d/cmake/Modules/BuildModules.cmake:7 (cocos_find_package)
  cocos2d/CMakeLists.txt:98 (BuildModules)


-- Configuring incomplete, errors occurred!
See also "C:/Cocos2D/Project1/Project1/CMakeFiles/CMakeOutput.log".
See also "C:/Cocos2D/Project1/Project1/CMakeFiles/CMakeError.log".

I’m trying to compile on Windows for use Code::Blocks and I had this issue. Someone can tell me how to fix it, please?

Does your video card have opengl drivers?

Can you compile ok outside of Code::Blocks?

What Cocos2d-x version?

What Windows version?

I got the same problem.
My gpu have opengl drivers (i think)
Captur11e
I got that error while using VS 2013
Using Coco2d-x version 2.2.6 (because the latest one didn’t want to work, and had a lot of errors)
And am using win10

I managed to fix this with getting vs 2015

with cocos2d-x v2.x , i think it’s another story ! You should try with cocos2d-x v3.x ! It is good for you !:hugs: