[FFmpeg-devel] Build ffmpeg with opencl for windows using mingw

Lukasz M lukasz.m.luki at gmail.com
Tue Jan 28 19:54:47 CET 2014


On 28 January 2014 19:33, Ramit Bhalla <ramitbhalla at gmail.com> wrote:

> >
> > you haven't specify what is the
> > problem exactly. configure fails? building fails? linking fails? fails at
> > runtime?
> > And are you using mingw, cygwin, VS?
> > What is the output?
> >
> Am using mingw on Ubuntu to build for Win32 and Win64 targets.
> The configure fails with the following error:
>
> configuring ffmpeg_git
> (/home/mcebuddy/Software/ffmpeg/sandbox/win32/ffmpeg_git) as $
>
> PATH=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
> ./configure --arch=x86 --target-os=mingw32
>
> --cross-prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-
> --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth
> --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib
> --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex
> --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype
> --enable-libopus --disable-w32threads --enable-frei0r
> --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib
> --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB
> --enable-libopencore-amrnb --enable-libopencore-amrwb
> --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx
> --enable-libilbc --enable-iconv --enable-libtwolame --enable-opencl
> --extra-cflags=-DLIBTWOLAME_STATIC --enable-libmodplug
> --extra-libs=-lstdc++ --enable-libzvbi --enable-libcaca
>
> --prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32
> --enable-static --disable-shared --enable-libsoxr --enable-fontconfig
> --enable-libass --enable-libutvideo --enable-libbluray  --extra-cflags=
>  --enable-nonfree --enable-libfdk-aac --enable-runtime-cpudetect
> ERROR: opencl not found
>
>
>
> >
> > reading configure I can say you need CL/cl.h header at version at least
> 1.2
> > and libOpenCL
> > you may need to pass cflags to configure with paths for headers and
> ldflags
> > with paths for libs
> >
>
> Where can I get the libOpenCL and header files? Are these vendor/platform
> dependent?
>

I don't know, but guess they are dependent both vendor and platform.
You probably need to install opencl SDK provided by card vendor.

For example for AMD:
http://developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/#one

I never used opencl so treat is as a hint, not reliable answer.
I have never cross-compilled for mingw so also can't tell its gonna work
for opencl.


More information about the ffmpeg-devel mailing list