PDA

View Full Version : Can't build QtOpenCl on mac snow leopard



shaolin
5th December 2010, 21:41
Hi guys,

I have a simple problem. I can't build and install QtOpenCL under mac os x snow leopard. The OpenCL framework is provided by Apple and it's working. When I try to run the configure script (I even specified headers and libs folders) the result is always:




This is the QtOpenCL configuration utility.

opencl auto-detection... ()
gmake: *** Nessun obiettivo specificato e nessun makefile trovato. Stop.
opencl disabled.
openclgl auto-detection... ()
gmake: *** Nessun obiettivo specificato e nessun makefile trovato. Stop.
openclgl disabled.
opencl11 auto-detection... ()
gmake: *** Nessun obiettivo specificato e nessun makefile trovato. Stop.
opencl11 disabled.
Qt version ............. 4.7.0
qmake .................. /usr/bin/qmake
OpenCL 1.0 ............. no
OpenCL 1.1 ............. no
OpenCL/OpenGL interop .. no
Extra QMAKE_CXXFLAGS ...
Extra INCLUDEPATH ......
Extra LIBS ............. -framework OpenCL

Could not detect an OpenCL implementation ... aborting



Does anyone here managed to build this module?

Thx

shaolin
10th December 2010, 21:30
No one tried it?

wysota
10th December 2010, 22:16
It builds fine for me on Linux. It seems the script can't find your OpenCL files, you need to pass some switches to configure to tell it where to look for them.

shaolin
11th December 2010, 12:09
In linux for me too. Under mac I used avery kind of switch. If I open the .pro file and compile it with qtcreator it recognizes apple opencl framework without any modification and compiles fine ( the problem here is that it compiles the libs, but I don't know which .h files I need to use it in other projects ). So it's probably an error in the configure.sh script..

wysota
11th December 2010, 12:27
the problem here is that it compiles the libs, but I don't know which .h files I need to use it in other projects
The ones from QtOpenCL.

shaolin
11th December 2010, 12:31
every header used in the project?

wysota
11th December 2010, 12:38
every header used in the project?

The ones without the _p suffix.

shaolin
11th December 2010, 13:57
ok thank you!