hi all,

I've been trying to compile QtOpenCL with no success on Fedora 17 system (using the default qt4.8 and qt4.8-devel installed from rpm repository).
I tried to build the modules as per what's outlined from this page; http://doc.qt.nokia.com/opencl-snapshot/building.html, and also according to this page (after the first try failed); https://gitorious.org/qt-opencl-open...s/Installation

Also failed.

It seems that the configure script would be looking for OpenCL 1.0 header files and would refuse to continute if OpenCL 1.1 or 1.2 header files are supplied;

Qt Code:
  1. ./configure -qmake /usr/bin/qmake-qt4 -I/opt/AMDAPP/include -L/opt/AMDAPP/lib/ -lOpenCL -openclgl -verbose
  2.  
  3. This is the QtOpenCL configuration utility.
  4.  
  5. opencl auto-detection... ()
  6. g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -Wall -W -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/opt/AMDAPP/include -o opencl.o opencl.cpp
  7. opencl.cpp: In function ‘int main(int, char**)’:
  8. opencl.cpp:54:54: error: ‘clCreateImage2D’ was not declared in this scope
  9. gmake: *** [opencl.o] Error 1
  10. opencl disabled.
  11. Qt version ............. 4.8.2
  12. qmake .................. /usr/bin/qmake-qt4
  13. OpenCL 1.0 ............. no
  14. OpenCL 1.1 ............. yes
  15. OpenCL/OpenGL interop .. yes
  16. Extra QMAKE_CXXFLAGS ...
  17. Extra INCLUDEPATH ...... /opt/AMDAPP/include
  18. Extra LIBS ............. -L/opt/AMDAPP/lib/ -lOpenCL
  19.  
  20. Could not detect an OpenCL implementation ... aborting
To copy to clipboard, switch view to plain text mode 

and once OpenCL 1.0 header files are supplied, it will fail at compiling qclcontext.cpp;
Qt Code:
  1. qclcontext.cpp: In member function ‘QCLImage2D QCLContext::createImage2DDevice(const QCLImageFormat&, const QSize&, QCLMemoryObject::Access)’:
  2. qclcontext.cpp:748:19: error: ‘clCreateImage2D’ was not declared in this scope
  3. qclcontext.cpp: In member function ‘QCLImage2D QCLContext::createImage2DHost(const QCLImageFormat&, void*, const QSize&, QCLMemoryObject::Access, int)’:
  4. qclcontext.cpp:784:22: error: ‘clCreateImage2D’ was not declared in this scope
  5. qclcontext.cpp: In member function ‘QCLImage2D QCLContext::createImage2DHost(QImage*, QCLMemoryObject::Access)’:
  6. qclcontext.cpp:826:31: error: ‘clCreateImage2D’ was not declared in this scope
  7. qclcontext.cpp: In member function ‘QCLImage2D QCLContext::createImage2DCopy(const QCLImageFormat&, const void*, const QSize&, QCLMemoryObject::Access, int)’:
  8. qclcontext.cpp:858:42: error: ‘clCreateImage2D’ was not declared in this scope
  9. qclcontext.cpp: In member function ‘QCLImage2D QCLContext::createImage2DCopy(const QImage&, QCLMemoryObject::Access)’:
  10. qclcontext.cpp:901:51: error: ‘clCreateImage2D’ was not declared in this scope
  11. qclcontext.cpp: In member function ‘QCLImage3D QCLContext::createImage3DDevice(const QCLImageFormat&, int, int, int, QCLMemoryObject::Access)’:
  12. qclcontext.cpp:931:19: error: ‘clCreateImage3D’ was not declared in this scope
  13. qclcontext.cpp: In member function ‘QCLImage3D QCLContext::createImage3DHost(const QCLImageFormat&, void*, int, int, int, QCLMemoryObject::Access, int, int)’:
  14. qclcontext.cpp:970:22: error: ‘clCreateImage3D’ was not declared in this scope
  15. qclcontext.cpp: In member function ‘QCLImage3D QCLContext::createImage3DCopy(const QCLImageFormat&, const void*, int, int, int, QCLMemoryObject::Access, int, int)’:
  16. qclcontext.cpp:1005:42: error: ‘clCreateImage3D’ was not declared in this scope
  17. qclcontext.cpp: In member function ‘QCLEvent QCLContext::marker()’:
  18. qclcontext.cpp:1350:56: error: ‘clEnqueueMarker’ was not declared in this scope
  19. qclcontext.cpp: In member function ‘void QCLContext::sync()’:
  20. qclcontext.cpp:1366:57: error: ‘clEnqueueMarker’ was not declared in this scope
  21. qclcontext.cpp: In member function ‘void QCLContext::barrier()’:
  22. qclcontext.cpp:1387:50: error: ‘clEnqueueBarrier’ was not declared in this scope
  23. qclcontext.cpp: In member function ‘void QCLContext::barrier(const QCLEventList&)’:
  24. qclcontext.cpp:1405:58: error: ‘clEnqueueWaitForEvents’ was not declared in this scope
To copy to clipboard, switch view to plain text mode 

Any ideas on how to properly compile the snapshot?

Thanks in advance.

cheers,
Faizol