Questions tagged [glew]

The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library. GLEW provides efficient run-time mechanisms for determining which OpenGL extensions are supported on the target platform.

The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library. GLEW provides efficient run-time mechanisms for determining which OpenGL extensions are supported on the target platform. OpenGL core and extension functionality is exposed in a single header file. GLEW has been tested on a variety of operating systems, including Windows, Linux, Mac OS X, FreeBSD, Irix, and Solaris.

Resources:

1042 questions
56
votes
2 answers

compiling OpenGL program GL/glew.h missing

I installed OpenGL onto my computer running Linux Mint following the instructions on this tutorial. I am trying to compile a program that uses OpenGL, but I'm getting a compile error: fatal error: GL/glew.h: No such file or directory. I check the…
rurouniwallace
  • 2,027
  • 6
  • 25
  • 47
53
votes
2 answers

difference of freeglut vs glew?

I've recently started learning OpenGL (> 3.3) & I've noticed a lot of examples & tutorials use both freeglut & glew, but don't really explain the difference at all. The best description I've found, after googling & reading ad nauseum, has been this…
ReturnVoid
  • 1,106
  • 1
  • 11
  • 18
42
votes
5 answers

Include Headers from added frameworks on Xcode

I want to work with some frameworks like glew and cg so i manually added the needed frameworks to my project by right clicking the project -> Add files to ... and choosing the correct framework. The problem is, when i try to include the header…
Itzik984
  • 15,968
  • 28
  • 69
  • 107
32
votes
1 answer

Cmake link library target link error

Hi I have problem with linkg Glfw and other libraries using cmake. From command line i compile like this g++ main.cpp -lGL -lGLU -lGLEW -lglfw But I wanted to use cmake for compiling. I tried to use target_linkg_libraries but this produce error…
Luffy
  • 677
  • 1
  • 6
  • 19
31
votes
6 answers

Linking GLEW with CMake

How can you link GLEW to a project with CMake? We've been trying to link GLEW to our project using CMake for at least 3 hours without any success so any help is accepted. I'm using the FindGLEW.cmake which comes with CMake…
Lord Zsolt
  • 6,492
  • 9
  • 46
  • 76
30
votes
8 answers

Building glew on windows with mingw

Can anyone give me the correct command to build glew on windows with mingw? I have tried: gcc -static glew.c glewinfo.c visualinfo.c -I/path/to/glew/include but I am getting thousands of linker errors (missing reference). I can't build with Make…
user181351
30
votes
2 answers

Why does glGetString(GL_VERSION) return null / zero instead of the OpenGL version?

I'm on Linux Mint 13 XFCE. My problem is that when I run in terminal the command: glxinfo | grep "OpenGL version" I get the following output: OpenGL version string: 3.3.0 NVIDIA 295.40 But when I run the glGetString(GL_VERSION) in my application…
lyra42
  • 365
  • 1
  • 3
  • 11
29
votes
2 answers

What does GLEW do and why do I need it?

Okay, so I already know why I need GLEW, but only up to a point. If I am using modern OpenGL stuff, probably from version 3.0 onwards, and/or am using the Core Profile, then GLEW is required as without it compilation produced error such as…
FreelanceConsultant
  • 13,167
  • 27
  • 115
  • 225
29
votes
6 answers

Failed to Initialize GLEW. Missing GL version

I've tried to set up SFML 2.0 with the latest version of the qt creator, I've set up SFML right and I imported a small game I wrote in visual studio. Upon compilation, I get this: What I tried Reinstalling the entire qt SDK and qt creator IDE from…
Bugster
  • 1,552
  • 8
  • 34
  • 56
24
votes
3 answers

Using GLEW to use OpenGL extensions under Windows

I've been using OpenGL extensions on Windows the painful way. Is GLEW the easier way to go? How do I get started with it?
Ashwin Nanjappa
  • 76,204
  • 83
  • 211
  • 292
24
votes
5 answers

glCreateShader is crashing

I should have the newest version of Glew and Glut so that shouldn't be the problem. Everything should be linked, and I'm using MS visual studio 2010. My program compiles but when I get to glCreateShader(GL_FRAGMENT_SHADER) it show an error:…
Parker Olson
  • 315
  • 1
  • 3
  • 7
23
votes
2 answers

OpenGL: glGetError() returns invalid enum after call to glewInit()

I use GLEW and freeglut. For some reason, after a call to glewInit(), glGetError() returns error code 1280, even with glewExperimental = GL_FALSE. I cannot compile the shaders, glGetProgramInfoLog() returns "Vertex shader(s) were not successfully…
Martin
  • 1,877
  • 5
  • 21
  • 37
20
votes
7 answers

Building glew for Mac OSX

I have spent the day struggling to get my simple engine to work on Mac. I have SDL working and now the only thing giving trouble is opengl. The engine uses modern opengl (shader based) and so requires GLEW. I have tried everything from fink to…
DavidColson
  • 8,387
  • 9
  • 37
  • 50
20
votes
2 answers

Difference between OpenGL files glew.h and gl.h/glu.h

I've built an OpenGL program with my glu and gl header files default included in windows 7 professional edition. Now, I've bought a book that describes OpenGL game development. The author of this book said, I have to include the glew header into my…
SKiD
  • 441
  • 1
  • 3
  • 16
18
votes
5 answers

Glew in VS 2010: unresolved external symbol __imp__glewInit

I am learning OpenGL by following the Redbook. When I come to around page 90, I need use glGenBuffers(); Then I need to install "glew". By following the steps in here. I download glew.zip from glew.sourceforge.net/ and unpack the files. I…
NoviceCai
  • 612
  • 2
  • 9
  • 24
1
2 3
69 70