views:

472

answers:

0

I'm trying to compile some code for OpenCL (and the NV Computing SDK) in Xcode. I (think) I've set the search paths correctly, but when I try to compile the source code from the example (oclDeviceQuery, which builds perfectly using sudo make) I get the following error:

/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenCL.framework/Header/cl_gl_ext.h:53:0 /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenCL.framework/Headers/cl_gl_ext.h:53: error: 'cl_gl_platform_info' has not been declared

Why is this happening and how can I fix it?

Below you'll find the compilation trace log.

Build oclBench of project oclBench with configuration Debug

CompileC build/oclBench.build/Debug/oclBench.build/Objects-normal/x86_64/main.o main.cpp normal x86_64 c++ com.apple.compilers.gcc.4_2

cd /Users/bloodsplatter/Projects/oclBench

setenv LANG en_US.US-ASCII

/Developer/usr/bin/gcc-4.2 -x c++ -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -D_GLIBCXX_DEBUG=1 -D_GLIBCXX_DEBUG_PEDANTIC=1 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mfix-and-continue -fvisibility-inlines-hidden -mmacosx-version-min=10.6 -gdwarf-2 -iquote /Users/bloodsplatter/Projects/oclBench/build/oclBench.build/Debug/oclBench.build/oclBench-generated-files.hmap -I/Users/bloodsplatter/Projects/oclBench/build/oclBench.build/Debug/oclBench.build/oclBench-own-target-headers.hmap -I/Users/bloodsplatter/Projects/oclBench/build/oclBench.build/Debug/oclBench.build/oclBench-all-target-headers.hmap -iquote /Users/bloodsplatter/Projects/oclBench/build/oclBench.build/Debug/oclBench.build/oclBench-project-headers.hmap -F/Users/bloodsplatter/Projects/oclBench/build/Debug -I/Users/bloodsplatter/Projects/oclBench/build/Debug/include "-I/Developer/GPU Computing/shared/inc" "-I/Developer/GPU Computing/shared/inc/cudpp" "-I/Developer/GPU Computing/shared/inc/cuvid" "-I/Developer/GPU Computing/shared/inc/dynlink" -I. "-I/Developer/GPU Computing/OpenCL/common/inc" "-I/Developer/GPU Computing/OpenCL/common/inc/CL" -I/Users/bloodsplatter/Projects/oclBench/build/oclBench.build/Debug/oclBench.build/DerivedSources/x86_64 -I/Users/bloodsplatter/Projects/oclBench/build/oclBench.build/Debug/oclBench.build/DerivedSources -c /Users/bloodsplatter/Projects/oclBench/main.cpp -o /Users/bloodsplatter/Projects/oclBench/build/oclBench.build/Debug/oclBench.build/Objects-normal/x86_64/main.o

In file included from /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenCL.framework/Headers/cl_ext.h:15, from /Developer/GPU Computing/OpenCL/common/inc/oclUtils.h:22, from /Users/bloodsplatter/Projects/oclBench/main.cpp:20: /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenCL.framework/Headers/cl_gl_ext.h:53: error: 'cl_gl_platform_info' has not been declared