I'm trying to find the compiler flag for linking GLX on a Linux based system. So far, I have (in qt Creator):
unix:LIBS += -lglx -lX11 -lGLEW -lGLU -lGL -lXext -L/usr/X11R6/lib
But, that still gives me glxChooseVisual was not declared in this scope
, thus preventing my code from compiling.
When defining a glX
function, the 'X' must be capitalized. That was my fault for not seeing that. Consider this problem solved.