QtOpenCL install problems with Qt 4.7 and Windows 7



  • Hello,

    i read an older topic but it could not help me.

    Im trying to build QtOpenCL.
    I used the two following ways to Build it.

    #1 with MSYS:
    @
    karls0n@karls0n-PC /opencl
    $ ./configure -qmake c:/Qt/2010.05/qt/bin/qmake -I "/../Progra~1/NVIDIA~2/CUDA/v3.2/include/" -L "/../Progra~1/NVIDIA~2/CUDA/v3.2/lib/Win32
    /" -l"OpenCL"

    This is the QtOpenCL configuration utility.

    Qt version ............. 4.7.0
    qmake .................. c:/Qt/2010.05/qt/bin/qmake
    OpenCL 1.0 ............. no
    OpenCL 1.1 ............. no
    OpenCL/OpenGL interop .. no
    Extra QMAKE_CXXFLAGS ...
    Extra INCLUDEPATH ...... /../Progra~1/NVIDIA~2/CUDA/v3.2/include/
    Extra LIBS ............. -L/../Progra~1/NVIDIA~2/CUDA/v3.2/lib/Win32/ -lOpenCL

    Could not detect an OpenCL implementation ... aborting
    Use the -verbose option for more information

    karls0n@karls0n-PC /opencl
    $ ./configure -verbose -I "/../Progra~1/NVIDIA~2/CUDA/v3.2/include/" -L "/../Progra~1/NVIDIA~2/CUDA/v3.2/lib/Win32/" -l"OpenCL"

    This is the QtOpenCL configuration utility.

    opencl auto-detection... ()
    /bin/make.exe -f Makefile.Debug
    make.exe[1]: Entering directory /opencl/config.tests/unix/opencl' g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NEEDS_QMAIN -I'/../Progra~1/NVIDIA~2/CUDA/v3.2/include' -I'c:/Qt/2010.05/qt/mkspecs/default' -o debug/opencl.o opencl.cpp g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug/opencl.exe debug/opencl.o -L/../Progra~1/NVIDIA~2/CUDA/v3.2/lib/Win32/ -lOpenCL make.exe[1]: Leaving directory/opencl/config.tests/unix/opencl'
    opencl disabled.
    openclgl auto-detection... ()
    /bin/make.exe -f Makefile.Debug
    make.exe[1]: Entering directory /opencl/config.tests/unix/openclgl' g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_ NEEDS_QMAIN -I'c:/Qt/2010.05/qt/include/QtCore' -I'c:/Qt/2010.05/qt/include/QtGui' -I'c:/Qt/2010.05/qt/include' -I'/../Progra~1/NVIDIA~2/CUD A/v3.2/include' -I'c:/Qt/2010.05/qt/include/ActiveQt' -I'debug' -I'c:/Qt/2010.05/qt/mkspecs/default' -o debug/openclgl.o openclgl.cpp g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug/openclgl.ex e debug/openclgl.o -L'c:/Qt/2010.05/qt/lib' -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 -lqtmaind -L/../Progra~1/NVIDIA~2/CUDA/v3.2/lib/W in32/ -lOpenCL -lQtGuid4 -lQtCored4 make.exe[1]: Leaving directory/opencl/config.tests/unix/openclgl'
    openclgl disabled.
    opencl11 auto-detection... ()
    /bin/make.exe -f Makefile.Debug
    make.exe[1]: Entering directory /opencl/config.tests/unix/opencl11' g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NEEDS_QMAIN -I'/../Progra~1/NVIDIA~2/CUDA/v3.2/include' -I'c:/Qt/2010.05/qt/mkspecs/default' -o debug/opencl11.o opencl11.cpp g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug/opencl11.ex e debug/opencl11.o -L/../Progra~1/NVIDIA~2/CUDA/v3.2/lib/Win32/ -lOpenCL make.exe[1]: Leaving directory/opencl/config.tests/unix/opencl11'
    opencl11 disabled.
    Qt version ............. 4.7.0
    qmake .................. /c/Qt/2010.05/qt/bin/qmake.exe
    OpenCL 1.0 ............. no
    OpenCL 1.1 ............. no
    OpenCL/OpenGL interop .. no
    Extra QMAKE_CXXFLAGS ...
    Extra INCLUDEPATH ...... /../Progra~1/NVIDIA~2/CUDA/v3.2/include/
    Extra LIBS ............. -L/../Progra~1/NVIDIA~2/CUDA/v3.2/lib/Win32/ -lOpenCL

    Could not detect an OpenCL implementation ... aborting

    karls0n@karls0n-PC /opencl
    $@

    #2 with QtCommandPrompt
    @C:Qtopencl>qmake opencl.pro

    C:Qtopencl>mingw32-make
    cd src && mingw32-make -f Makefile
    mingw32-make[1]: Entering directory C:/Qt/opencl/src' cd opencl/ && mingw32-make -f Makefile mingw32-make[2]: Entering directoryC:/Qt/opencl/src/opencl'
    mingw32-make -f Makefile.Debug
    mingw32-make[3]: Entering directory C:/Qt/opencl/src/opencl' g++ -c -g -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_MAKEDLL -DQT_BUILD_CL_LIB -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I'../../../20 10.05/qt/include/QtCore' -I'../../../2010.05/qt/include/QtGui' -I'../../../2010.05/qt/include' -I'../../../2010.05/qt/include/ActiveQt' -I'debug' -I'../../../2010.05/qt/mkspecs/def ault' -o debug/qclbuffer.o qclbuffer.cpp In file included from qclevent.h:45, from qclmemoryobject.h:45, from qclbuffer.h:45, from qclbuffer.cpp:42: qclglobal.h:88:28: error: CL/cl_platform.h: No such file or directory qclglobal.h:89:19: error: CL/cl.h: No such file or directory qclbuffer.cpp:1070: error: 'clGetMemObjectInfo' was not declared in this scope qclbuffer.cpp:1070: error: 'CL_SUCCESS' was not declared in this scope mingw32-make[3]: *** [debug/qclbuffer.o] Error 1 mingw32-make[3]: Leaving directoryC:/Qt/opencl/src/opencl'
    mingw32-make[2]: *** [debug] Error 2
    mingw32-make[2]: Leaving directory C:/Qt/opencl/src/opencl' mingw32-make[1]: *** [sub-opencl-make_default-ordered] Error 2 mingw32-make[1]: Leaving directoryC:/Qt/opencl/src'
    mingw32-make: *** [sub-src-make_default-ordered] Error 2
    @

    In MSYS i set the path´s and no failures are shown, but OpenCL could not be detected?

    I hope someone can help me.

    Karls0n


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.