Comments (5)
Hey kayjkay,
Could you give me a little bit more information since I'm unfamiliar with OSX?
- Why do you need to copy
cl.hpp
? Is it not present on your system? Is the FindOpenCL module unable to find it? - What do you need to include here:
#elif defined(__APPLE__)
#include <???>
#endif
from clutils.
Hi Nick,
Thank you for making the ICP source available.
The External Repository cmake did not work that I had to manually build
each of the dependencies. That's why I ended up building CLUtils.
To answer your questions:
- There wasn't cl.hpp is not present on the system. Installing XCode (IDE)
installs the OSX SDK which includes OpenCL and OpenGL framework. Framework
is a directory structure. Within it, there is cl.h but not cl.hpp. I did
not do a diff of the two files to see if they were the same. - It's #include <OpenGL/OpenGL.h>. The CglCreateContext symbol was not
defined otherwise on Mac.
I hope to get your ICP source and the OpenGL example built on OSX. If I
bump in to an issue, I will let you know.
Thanks again.
Kay
On Thu, Jun 18, 2015 at 4:20 PM, Nick Lamprianidis <[email protected]
wrote:
Hey kayjkay,
Could you give me a little bit more information since I'm unfamiliar with
OSX?
- Why do you need to copy cl.hpp? Is it not present on your system?
Is the FindOpenCL module unable to find it?- What do you need to include here:
#elif defined(APPLE)
#include <???>
#endif—
Reply to this email directly or view it on GitHub
#1 (comment).
from clutils.
Thank you Kay for the fixes.
I've already made a commit adding those includes.
On the cl.hpp
matter, I'll wait until I get a more complete picture of the situation.
And yes, please let me know if anything else comes up.
from clutils.
Dear Guys;
I think I'm running into the same problem; however, I don't know how to fix it. Kayjkay, if you have had success, can you tell me how to get everything to compile? Here is what I'm getting when I try to compile CLutils by itself:
DrHalftone:build dllau$ cmake ..
-- - Includes: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OPENCL.framework
-- gtest not found:
-- - Library will be downloaded from source
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/dllau/SourceTree/CLUtils/build
DrHalftone:build dllau$ make
[ 7%] Building CXX object src/CMakeFiles/CLUtils.dir/CLUtils.cpp.o
In file included from /Users/dllau/SourceTree/CLUtils/src/CLUtils.cpp:37:
/Users/dllau/SourceTree/CLUtils/include/CLUtils.hpp:48:10: fatal error: 'OpenCL/cl.hpp' file not found
#include <OpenCL/cl.hpp>
^
1 error generated.
make[2]: *** [src/CMakeFiles/CLUtils.dir/CLUtils.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/CLUtils.dir/all] Error 2
make: *** [all] Error 2
DrHalftone:build dllau$
from clutils.
Ok, I found a reference to the same compiling problem but a different project. I now better understand kayjkay's solution. What I read was that Mac OS X 10.10 SDK doesn't include the C++ OpenCL headers (the ones that end in .hpp). So that's why we have to download them from Kronos. I thought that by following kayjkay's solution, I was duplicating the headers and that CMake just wasn't finding them. I see that was wrong. So now I can compile the CLUtils project.
from clutils.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clutils.