Results 1 to 3 of 3

Thread: QtOpenCL on Windows VS2010 - Wont build

  1. #1
    Join Date
    Aug 2006
    Posts
    90
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    6
    Thanked 4 Times in 2 Posts

    Default QtOpenCL on Windows VS2010 - Wont build

    I have built Qt 4.8.3 from source and am trying to build qtopencl.
    I follow the instructions which simply say:
    Qt Code:
    1. qmake opencl.pro
    2. nmake
    To copy to clipboard, switch view to plain text mode 

    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?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QtOpenCL on Windows VS2010 - Wont build

    Did you tell the compiler where to look for your OpenCL implementation headers?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Aug 2006
    Posts
    90
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    6
    Thanked 4 Times in 2 Posts

    Default Re: QtOpenCL on Windows VS2010 - Wont build

    So I hacked the .pro files to include my include path:
    Qt Code:
    1. INCLUDEPATH += "C:/Program Files (x86)/AMD APP/include"
    To copy to clipboard, switch view to plain text mode 

    Then I started getting the real errors:
    Qt Code:
    1. .\qclcontext.cpp(169) : error C2664: 'clCreateContext' : cannot convert paramete
    2. r 4 from 'void (__cdecl *)(const char *,const void *,size_t,void *)' to 'void (_
    3. _stdcall *)(const char *,const void *,size_t,void *)'
    4. None of the functions with this name in scope match the target type
    5. .\qclcontext.cpp(212) : error C2664: 'clCreateContext' : cannot convert paramete
    6. r 4 from 'void (__cdecl *)(const char *,const void *,size_t,void *)' to 'void (_
    7. _stdcall *)(const char *,const void *,size_t,void *)'
    8. None of the functions with this name in scope match the target type
    9. .\qclcontext.cpp(747) : error C3861: 'clCreateImage2D': identifier not found
    10. .\qclcontext.cpp(782) : error C3861: 'clCreateImage2D': identifier not found
    11. .\qclcontext.cpp(824) : error C3861: 'clCreateImage2D': identifier not found
    12. ...
    To copy to clipboard, switch view to plain text mode 

    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.

Similar Threads

  1. Build Qt 4.7.3 Using VS2010 Under Windows7..
    By jiapei100 in forum Installation and Deployment
    Replies: 1
    Last Post: 29th August 2011, 10:05
  2. Does Qt 4.7.3 build under VS2010 EXPRESS Edition?
    By jeanremi in forum Installation and Deployment
    Replies: 4
    Last Post: 25th May 2011, 12:44
  3. Replies: 1
    Last Post: 5th April 2011, 12:58
  4. Replies: 1
    Last Post: 12th February 2011, 18:43
  5. Can't build QtOpenCl on mac snow leopard
    By shaolin in forum Qt Programming
    Replies: 7
    Last Post: 11th December 2010, 14:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.