(tested on Windows 8 x64)
- CGViewer: http://www.informatik.uni-leipzig.de/bsv/homepage/de/teaching/praktikum-computergrafik-2013
- MinGW & Qt: http://sourceforge.net/projects/mingwbuilds (see http://qt-project.org/wiki/MinGW-64-bit for details)
- Glew: http://glew.sourceforge.net/
- glext.h: http://www.opengl.org/registry/
- Extract all necessary files
- Copy glext.h into glew-1.9.0\include\GL
- Add mingw64\bin, Qt64-4.8.4\bin and glew-1.9.0\bin to PATH
- Add Qt64-4.8.4\mkspecs\win32-g++-4.6 to QMAKESPEC
- Fix Qt hardcoded paths: qtbinpatcher.exe --nobackup
gcc -DGLEW_NO_GLU -O2 -Wall -W -Iinclude -DGLEW_BUILD -o src/glew.o -c src/glew.c
gcc -shared -Wl,-soname,libglew32.dll -Wl,--out-implib,lib/libglew32.dll.a -o bin/glew32.dll src/glew.o -L/mingw/lib -lglu32 -lopengl32 -lgdi32 -luser32 -lkernel32
ar cr lib/libglew32.a src/glew.o
see http://stackoverflow.com/questions/6005076/building-glew-on-windows-with-mingw
Model.h:
- include <GL/glew.h> and <GL/glext.h>
Raytracer.cpp:
- comment out OpenMP (produces error)
CGViewer.pro:
- LIBS += -lglu32 -llibglew32 -Lglew lib path (forward slashes)
- DEFINES += GL_GLEXT_PROTOTYPES
- INCLUDEPATH += glew include path (forward slashes)
- qmake
- mingw32-make debug
mingw32-make clean
mingw32-make release