QtOpenCL install problems with Qt 4.7 and Windows XP
-
Yes, that is exactly the path to put after the -L
-
Thanks mr Volker again. At this time it compiled successfully. But it've try every example include with QtOpenCL, whole them crash.
My spec is :
NVdia 9500GT 1GB
Dirver ver 260.99 (Supported OpenCL following by NVidia website)
Windows XP Sp3.
QT 4.7.1What went wrong?
-
Now it's time to put OpenCL.dll near your exe.
-
I doing exactly what you told me. It's require some more dll such as mingw100.dll and some Qt4 runtime dll almost done. I've tested with clinfo program but it's doesn't show up anything about my system device. It's just terminated in silent.
-
QtOpenCL doesn't work on my XP system. Every examples are built, but them crashes?
What went wrong? -
[quote author="Tadius" date="1294390789"]QtOpenCL doesn't work on my XP system. Every examples are built, but them crashes?
What went wrong?
[/quote]This question is something like: My car is out of order, how can I repair it.
Please be morre precisely, What exaclty happens? Which error/crash messages do you get? Can you debug it? You are using mingw, is QtOpenCL also compiled with the same compiler? ...?
-
I'm using Qt from QtSDK for Windows. It comes with MinGW.
1.Example "Colorize" and "Blur" ran but after I quit these program ,they were crashed.
Messages is "An unhandle Win32 exception occurred in colorize [3928]" because I've installed Visual Studio 2008 on same machine with Qt SDK 2010.05 (ver 4.7.1 - MinGW).2.clinfo - for displaying infor about my devices run. But doesn't show up anything. It quits with Error code 0. I've try comment out all the code in scope main() to make it like this
[quote]
//include some header of QtOpenCL or OpenCL header file
#include <conio.h>
int main(int argc,char *argv[])
{
/*I comment all code of original clinfo.cpp file */
getch();
return 0;
}
[/quote]
I save it and recompile and then launch it. It returned immediately without waiting for user press a key. That means something went wrong when including the header of QtOpenCL but I don't know.
Some one can tell me why? And how to solve this problem. -
I have same problems. If i run bezierpatch demo in QtCreator i see in console:
@
QCLContextGL::create: do not know how to enable sharing
QtOpenGL: Resources are still available at program shutdown.
This is possibly caused by a leaked QGLWidget,
QGLFramebufferObject or QGLPixelBuffer.
@Only debug version worked for me, but also crashed at close. But debug version don't run under gdb, segmentation fault at runtime.
Problems with utils like clinfo i solve by adding "CONFIG += console" to .pro files. printf doesn't work for windows if programs don't compiled as "console" application.
-
Something wrong inside QApplication and QApplication::exec()/QCoreApplication::exec(). With QCoreApplication and without call main event loop application run and exit without crashes, but with QApplication and without call main event loop application also crashes. Maybe something bad inside event loop.
-
Following instructions on this page I succeeded in building qtopencl on windows 7/64 bit but when I run the colorize example I get:
QCLProgram::build: "CL_BUILD_PROGRAM_FAILURE"
"C:\Users\name\AppData\Local\Temp\OCL6154.tmp.cl(41): warning: global
variable declaration is corrected by the compiler to have addrSpace
constant
const sampler_t samp = CLK_ADDRESS_CLAMP_TO_EDGE |
^Error:E014:Images not currently supported!
QCLContext::createImage2DCopy: "CL_INVALID_OPERATION"
Has anybody suggestions on that?
Thanks