bpetty
26th September 2012, 19:41
I have built Qt 4.8.3 from source and am trying to build qtopencl.
I follow the instructions which simply say:
qmake opencl.pro
nmake
towhich it apparently can't find my AMD APP SDK header files:
c:\qt\qt-labs-opencl\src\opencl\qclglobal.h(88) : fatal error C1083: Cannot open include file: 'CL/cl_platform.h': No such file or directory qclworksize.cpp
Very odd. If I was using Linux/g++ I think I'd be better off. Has anyone built this guy with VS on Windows?
wysota
26th September 2012, 20:46
Did you tell the compiler where to look for your OpenCL implementation headers?
bpetty
26th September 2012, 20:55
So I hacked the .pro files to include my include path:
INCLUDEPATH += "C:/Program Files (x86)/AMD APP/include"
Then I started getting the real errors:
.\qclcontext.cpp(169) : error C2664: 'clCreateContext' : cannot convert paramete
r 4 from 'void (__cdecl *)(const char *,const void *,size_t,void *)' to 'void (_
_stdcall *)(const char *,const void *,size_t,void *)'
None of the functions with this name in scope match the target type
.\qclcontext.cpp(212) : error C2664: 'clCreateContext' : cannot convert paramete
r 4 from 'void (__cdecl *)(const char *,const void *,size_t,void *)' to 'void (_
_stdcall *)(const char *,const void *,size_t,void *)'
None of the functions with this name in scope match the target type
.\qclcontext.cpp(747) : error C3861: 'clCreateImage2D': identifier not found
.\qclcontext.cpp(782) : error C3861: 'clCreateImage2D': identifier not found
.\qclcontext.cpp(824) : error C3861: 'clCreateImage2D': identifier not found
...
I saw some work arounds on some other threads for this. Needless to say, I am not going to waist any more time on QtOpenCL. Looking at the last Git entry... it looks like a dead project anyway.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.