karrenberg/wfvopencl — Issue #2: non-static (=default) build fails under OS X
Author: karrenberg
Created: 2011-11-08 22:49:08+00:00
State: open

```
scons
[...]
g++ -o build/bin/AmbientOcclusionRenderer -framework GLUT -framework OpenGL test/AmbientOcclusionRenderer/AmbientOcclusionRenderer.o -L/Users/ralf/proj/llvm/lib -L/Users/ralf/proj/wfv/lib -L/Users/ralf/proj/llvm/lib -Llib -Llib/x86_64 -lOpenCL -lSDKUtil -lglew
ld: warning: in lib/x86_64/libOpenCL.so, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in lib/libglew.so, file was built for unsupported file format which is not the architecture being linked (x86_64)
Undefined symbols:
"_clCreateKernel", referenced from:
AmbientOcclusionRenderer::setupCL() in AmbientOcclusionRenderer.o
"_clGetDeviceInfo", referenced from:
AmbientOcclusionRenderer::setupCL() in AmbientOcclusionRenderer.o
AmbientOcclusionRenderer::setupCL() in AmbientOcclusionRenderer.o
AmbientOcclusionRenderer::genBinaryImage() in AmbientOcclusionRenderer.o
streamsdk::SDKCommon::displayDevices(_cl_platform_id*, unsigned long long)in libSDKUtil.a(SDKCommon.o)
[...]
```