I don't know if someone tried out this permutation earlier.

But in Qt I had to rename glew32.lib to libglew.a so -lGLEW is accepted.

But I am getting

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:113: undefined reference to `_imp__glewInit'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:220: undefined reference to `_imp____glewGenFramebuffersEXT'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:221: undefined reference to `_imp____glewBindFramebufferEXT'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:224: undefined reference to `_imp____glewActiveTexture'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:232: undefined reference to `_imp____glewFramebufferTexture2DEXT'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:235: undefined reference to `_imp____glewActiveTexture'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:244: undefined reference to `_imp____glewFramebufferTexture2DEXT'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:246: undefined reference to `_imp____glewBindFramebufferEXT'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:249: undefined reference to `_imp____glewActiveTexture'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:254: undefined reference to `_imp____glewActiveTexture'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:262: undefined reference to `_imp____glewGetUniformLocation'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:263: undefined reference to `_imp____glewGetUniformLocation'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:264: undefined reference to `_imp____glewGetUniformLocation'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:265: undefined reference to `_imp____glewGetUniformLocation'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:267: undefined reference to `_imp____glewUseProgram'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:269: undefined reference to `_imp____glewUniform1i'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:270: undefined reference to `_imp____glewUniform1i'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:271: undefined reference to `_imp____glewUniform1i'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:272: undefined reference to `_imp____glewUniform1i'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:273: undefined reference to `_imp____glewUseProgram'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:277: undefined reference to `_imp____glewActiveTexture'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:281: undefined reference to `_imp____glewGetUniformLocation'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:282: undefined reference to `_imp____glewUseProgram'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:283: undefined reference to `_imp____glewUniform1i'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:284: undefined reference to `_imp____glewUseProgram'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:334: undefined reference to `_imp____glewActiveTexture'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:341: undefined reference to `_imp____glewActiveTexture'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:397: undefined reference to `_imp____glewMapBufferARB'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:418: undefined reference to `_imp____glewUnmapBufferARB'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:424: undefined reference to `_imp____glewActiveTexture'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:428: undefined reference to `_imp____glewActiveTexture'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:438: undefined reference to `_imp____glewTexSubImage3D'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:441: undefined reference to `_imp____glewBindBufferARB'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:709: undefined reference to `_imp____glewBindFramebufferEXT'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:710: undefined reference to `_imp____glewUseProgram'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:726: undefined reference to `_imp____glewBindFramebufferEXT'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:730: undefined reference to `_imp____glewUseProgram'

./debug/GLWindow.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:754: undefined reference to `_imp____glewUseProgram'

./debug/GLWindow.o: In function `~vars':

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:37: undefined reference to `_imp____glewDeleteFramebuffersEXT'

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/GLWindow.cpp:38: undefined reference to `_imp____glewDeleteProgram'

./debug/gpumem.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/gpumem.cpp:53: undefined reference to `_imp____glewTexImage3D'

./debug/gpumem.o: In function `pbo':

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/gpumem.cpp:163: undefined reference to `_imp____glewGenBuffersARB'

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/gpumem.cpp:173: undefined reference to `_imp____glewBufferDataARB'

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/gpumem.cpp:163: undefined reference to `_imp____glewGenBuffersARB'

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/gpumem.cpp:173: undefined reference to `_imp____glewBufferDataARB'

./debug/gpumem.o: In function `~pbo':

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/gpumem.cpp:181: undefined reference to `_imp____glewBindBufferARB'

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/gpumem.cpp:182: undefined reference to `_imp____glewDeleteBuffersARB'

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/gpumem.cpp:181: undefined reference to `_imp____glewBindBufferARB'

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/gpumem.cpp:182: undefined reference to `_imp____glewDeleteBuffersARB'

./debug/gpumem.o:X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/gpumem.cpp:187: undefined reference to `_imp____glewBindBufferARB'

./debug/shader-util.o: In function `Z10setShadersPcS_':

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/shader-util.cpp:41: undefined reference to `_imp____glewCreateShader'

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/shader-util.cpp:42: undefined reference to `_imp____glewCreateShader'

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/shader-util.cpp:49: undefined reference to `_imp____glewShaderSource'

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/shader-util.cpp:50: undefined reference to `_imp____glewShaderSource'

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/shader-util.cpp:57: undefined reference to `_imp____glewCompileShader'

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/shader-util.cpp:58: undefined reference to `_imp____glewCompileShader'

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/shader-util.cpp:60: undefined reference to `_imp____glewCreateProgram'

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/shader-util.cpp:61: undefined reference to `_imp____glewAttachShader'

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/shader-util.cpp:62: undefined reference to `_imp____glewAttachShader'

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/shader-util.cpp:64: undefined reference to `_imp____glewLinkProgram'

./debug/shader-util.o: In function `Z18printShaderInfoLogj':

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/shader-util.cpp:77: undefined reference to `_imp____glewGetShaderiv'

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/shader-util.cpp:82: undefined reference to `_imp____glewGetShaderInfoLog'

./debug/shader-util.o: In function `Z19printProgramInfoLogj':

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/shader-util.cpp:97: undefined reference to `_imp____glewGetProgramiv'

X:\DB_Projects\GPU-EI\10.Software\StreamingVolRen\StreamingRend-build-desktop/../StreamingVolRen/shader-util.cpp:102: undefined reference to `_imp____glewGetProgramInfoLog'

collect2: ld returned 1 exit status

mingw32-make[1]: *** [debug/StreamingRend.exe] Error 1

mingw32-make: *** [debug] Error 2

The process "C:/Dev/Qt/2010.04/mingw/bin/mingw32-make.exe" exited with code %2.

Error while building project StreamingRend (target: Desktop)

When executing build step 'Make'



Best Regards,
Nishikant Deshmukh
Graduate Student
Johns Hopkins University Homewood Campus