[FFmpeg-devel] [PATCH]Exit configure if opencl is requested with w32threads

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Jun 26 01:05:49 CEST 2013


Hi!

Attached patch should address the main issue of ticket #2422.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/configure b/configure
index d3d5580..a179036 100755
--- a/configure
+++ b/configure
@@ -4185,6 +4185,8 @@ enabled openal            && { { for al_libs in "${OPENAL_LIBS}" "-lopenal" "-lO
 enabled opencl            && { check_lib2 OpenCL/cl.h clEnqueueNDRangeKernel -Wl,-framework,OpenCL ||
                                check_lib2 CL/cl.h clEnqueueNDRangeKernel -lOpenCL ||
                                die "ERROR: opencl not found"; } &&
+                             { enabled_any w32threads os2threads &&
+                               die "opencl currently needs --enable-pthreads or --disable-w32threads"; } &&
                              { check_cpp_condition "OpenCL/cl.h" "defined(CL_VERSION_1_2)" ||
                                check_cpp_condition "CL/cl.h" "defined(CL_VERSION_1_2)" ||
                                die "ERROR: opencl must be installed and version must be 1.2 or compatible"; }


More information about the ffmpeg-devel mailing list