Meteorhead

build SDK under SLC5

Discussion created by Meteorhead on Mar 5, 2010
Latest reply on Mar 30, 2010 by low

Hi!

My problem is that the SDK fails to build under SLC5 (Scientific Linux 5.4). SLC is a redhat based distro, so I downloaded the matching red hat SDK and I get the following error while building one of the samples:

 

g++ -o build/debug/x86_64/Mandelbrot build/debug/x86_64//Mandelbrot.o build/debug/x86_64//MandelbrotDisplay.o -lpthread -ldl -L/usr/X11R6/lib   -lOpenCL  -lSDKUtil  -lglut  -lGLEW   -L../../../../../lib/x86_64  -L../../../../../TempSDKUtil/lib/x86_64 
../../../../../lib/x86_64/libglut.so: undefined reference to `XF86VidModeGetViewPort'
../../../../../lib/x86_64/libglut.so: undefined reference to `XF86VidModeGetAllModeLines'
../../../../../lib/x86_64/libglut.so: undefined reference to `XF86VidModeSwitchToMode'
../../../../../lib/x86_64/libglut.so: undefined reference to `XF86VidModeSetViewPort'
../../../../../lib/x86_64/libglut.so: undefined reference to `XF86VidModeGetModeLine'

The missing references are found in the xf86vmode.h header file which is in the proper place in /usr/include/X11/extensions/xf86vmode.h location. How can I make the SDK aware of these headers?

Outcomes