phr34k / coral-repo

Automatically exported from code.google.com/p/coral-repo
0 stars 2 forks source link

error MacOs X build #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I build coral on MacOs.

I got this error: 

g++ -o coral/builtinNodes/debugDEBUG/KernelNode.os -c -DCORAL_PARALLEL_TBB 
-fPIC -I/opt/local/include/OpenEXR 
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 
-I/opt/local/include -I/opt/local/include 
-I/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenCL.framework/Vers
ions/A/Headers coral/builtinNodes/KernelNode.cpp
In file included from coral/builtinNodes/KernelNode.cpp:2:
coral/builtinNodes/KernelNode.h:15:21: error: CL/cl.hpp: No such file or 
directory
In file included from coral/builtinNodes/KernelNode.cpp:2:
coral/builtinNodes/KernelNode.h:35: error: 'cl' was not declared in this scope
coral/builtinNodes/KernelNode.h:35: error: template argument 2 is invalid
coral/builtinNodes/KernelNode.h:35: error: template argument 4 is invalid
coral/builtinNodes/KernelNode.h:35: error: 'cl' has not been declared
coral/builtinNodes/KernelNode.h:35: error: expected ',' or '...' before '&' 
token
coral/builtinNodes/KernelNode.h:36: error: 'cl_int' does not name a type
coral/builtinNodes/KernelNode.h:37: error: 'cl' was not declared in this scope
coral/builtinNodes/KernelNode.h:37: error: template argument 2 is invalid
coral/builtinNodes/KernelNode.h:37: error: template argument 4 is invalid
coral/builtinNodes/KernelNode.h:37: error: 'cl' has not been declared
coral/builtinNodes/KernelNode.h:37: error: expected ',' or '...' before '&' 
token
coral/builtinNodes/KernelNode.h:42: error: 'cl' has not been declared
coral/builtinNodes/KernelNode.h:42: error: ISO C++ forbids declaration of 
'Context' with no type
coral/builtinNodes/KernelNode.h:42: error: expected ';' before '_context'
coral/builtinNodes/KernelNode.h:43: error: 'cl' has not been declared
coral/builtinNodes/KernelNode.h:43: error: ISO C++ forbids declaration of 
'CommandQueue' with no type
coral/builtinNodes/KernelNode.h:43: error: expected ';' before '_queue'
coral/builtinNodes/KernelNode.h:44: error: 'cl' was not declared in this scope
coral/builtinNodes/KernelNode.h:44: error: template argument 1 is invalid
coral/builtinNodes/KernelNode.h:44: error: template argument 2 is invalid
coral/builtinNodes/KernelNode.h:45: error: 'cl' was not declared in this scope
coral/builtinNodes/KernelNode.h:45: error: template argument 1 is invalid
coral/builtinNodes/KernelNode.h:45: error: template argument 2 is invalid
coral/builtinNodes/KernelNode.h:46: error: `*' cannot appear in a 
constant-expression
coral/builtinNodes/KernelNode.h:46: error: template argument 2 is invalid
coral/builtinNodes/KernelNode.h:46: error: template argument 4 is invalid
coral/builtinNodes/KernelNode.h:47: error: `*' cannot appear in a 
constant-expression
coral/builtinNodes/KernelNode.h:47: error: template argument 2 is invalid
coral/builtinNodes/KernelNode.h:47: error: template argument 4 is invalid
coral/builtinNodes/KernelNode.cpp:8: error: 'cl_int' was not declared in this 
scope
coral/builtinNodes/KernelNode.cpp:9: error: expected ',' or ';' before '{' token
coral/builtinNodes/KernelNode.cpp:511: error: expected `}' at end of input
scons: *** [coral/builtinNodes/debugDEBUG/KernelNode.os] Error 1
scons: building terminated because of errors.

ok, <CL/cl.hpp> not found, that's normal, because i'm in MacOs, I changed it to 
<OpenCL/cl.h>, I still cannot build it, because, apparently there is no  
"cl::Event" but cl_event in OpenCl/cl.h... 

Please help me 

Thank you

Original issue reported on code.google.com by xiaol...@machinemolle.com on 24 Nov 2011 at 3:54

GoogleCodeExporter commented 8 years ago
sorry, i was stupid, i just did not realize that cl.hpp is a interface of 
openCL for c++... 

Original comment by xiaol...@machinemolle.com on 24 Nov 2011 at 4:45

GoogleCodeExporter commented 8 years ago

Original comment by aintergu...@gmail.com on 24 Nov 2011 at 4:47