Ok, i did a quick test on windows, and there is a lot to change...
I try to explain them here step by step. Probably there will be an update to fix the wizard.
Windows 7 mingw
1) I downloaded this
https://github.com/glfw/glfw/releases/download/3.2.1/glfw-3.2.1.zip2) Compiled it with cmake and mingw compiler
3) Start codeblocks
4) File->New->Project
5) Right click on GLFW Project->Edit this script
Line 49:
if (!VerifyFile(dir_nomacro_inc + wxFILE_SEP_PATH + _T("GLFW"), _T("glfw3.h"), _T("GLFW's include"))) return false;
Line 55:
if (!VerifyLibFile(dir_nomacro_lib, _T("glfw3"), _T("GLFW's"))) return false;
Line 95:
project.AddLinkLib(_T("glfw3"));
6) Save the file
7) File->New->Project->GFLW Project->Ok->Next
"Please select GLFWs location":
$(#glfw)
9) In step 2 i Installed the library to
So if you have to set the global variable:
so i set the "base" to
"include" to
G:\glfw-3.2.1\install\include
and "lib" to
G:\glfw-3.2.1\install\lib
10) Finish the wizard. It should complete
The created example code is outdated, so we have to create our own example:
11) From the gflw source folder copy the content of "G:\glfw-3.2.1\examples\simple.c" over the content of main.cpp of the project
12) I don't know exactly why, but we need glad:
I used the zip archive of this link
http://glad.dav1d.de/#profile=compatibility&specification=gl&api=gl%3D4.6&api=gles1%3Dnone&api=gles2%3Dnone&api=glsc2%3Dnone&language=c&loader=on13) Extract it in your project folder so you will have the folowing structure:
project_folder/glad/inlcude/glad/glad.h
and
project_folder/glad/src/glad/glad.c
14) Copy the file "G:\glfw-3.2.1\deps\linmath.h" to your project folder
15) Add the files to your project: Project->Add files: glad/src/glad.c, and linmath.h
16) Add the include folder search path to the project: Project->Build options->Select the project name on the left->Search directories->Compiler->Add->
17) Ok all
18) Project->Build
19) Project->Run
20 Enjoy a spinning triangle