Error building SDK

Discussion created by Meteorhead on Oct 22, 2011
Latest reply on Dec 1, 2014 by phajaa
Ubuntu 11.10 64-bit


I know it is not officially supported, but it might occur to others also they want to build SDK on new Ubuntu, or it could come in handy when releasing new Catalyst and SDK. I'm trying it under 11.10 64-bit, but SDK won't compile, and even the part that does crashes:

g++ -o build/debug/x86_64/BoxFilterGL build/debug/x86_64//BoxFilterGL.o build/debug/x86_64//BoxFilterGLSeparable.o build/debug/x86_64//BoxFilterGLSAT.o -lpthread -ldl -L/usr/X11R6/lib   -lSDKUtil  -lglut  -lGLEW  -lOpenCL   -L../../../../../lib/x86_64  -L../../../../../TempSDKUtil/lib/x86_64 -L"/lib/x86_64" 
/usr/bin/ld: build/debug/x86_64//BoxFilterGLSeparable.o: undefined reference to symbol 'glEnd'
/usr/bin/ld: note: 'glEnd' is defined in DSO /usr/lib64/ so try adding it to the linker command line
/usr/lib64/ could not read symbols: Invalid operation
collect2: ld returned 1 exit status

Seems to have some ptoblem with the OpenGL library (built by the driver installer if I'm not mistaken). I tried enabling OpenGL support for Unity also, but then it fails to launch saying "wrong ELF class" inside

Second problem is, even the part that compiles crashes instantly:

mnagy@ubuntu:~/AMD/SDK/AMD-APP-SDK-v2.5-RC2-lnx64/bin/x86_64$ ./clinfo
terminate called after throwing an instance of 'cl::Error'
  what():  clGetPlatformIDs


Anyone ideas on how to go about solving this? I've had enough of OS install for the weekend and would not like to go about reverting to older Ubuntu to solve these.