[FFmpeg-trac] #6871(build system:new): problem cross-compiling ffmpeg with OpenCL
FFmpeg
trac at avcodec.org
Sun Nov 26 11:42:57 EET 2017
#6871: problem cross-compiling ffmpeg with OpenCL
-------------------------------------+-------------------------------------
Reporter: hydra3333 | Owner:
Type: defect | Status: new
Priority: normal | Component: build
Version: git-master | system
Keywords: build | Resolution:
OpenCL cross-compile | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by hydra3333):
OK, build rebuilt ffmpeg using the commits just before and just after the
recent OpenCL changes and sure enough ... Opencl_bench works with the .exe
built before but not using the .exe built after :(
Suggestions welcomed.
{{{
old OpenCL version that works -opencl_bench
"C:\SOFTWARE\ffmpeg\0-homebuilt-x64\ffmpeg.exe" -opencl_bench
ffmpeg version N-89088-gce001bb8fc Copyright (c) 2000-2017 the FFmpeg
developers
built with gcc 7.2.0 (GCC)
configuration: --arch=x86_64 --target-os=mingw32 --cross-
prefix=/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-
master/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32-
--pkg-config=pkg-config --pkg-config-flags=--static --enable-gray
--enable-version3 --disable-debug --disable-doc --disable-htmlpages
--disable-manpages --disable-podpages --disable-txtpages --disable-
w32threads --enable-nvenc --enable-cuda --enable-cuvid --enable-d3d11va
--enable-libsoxr --enable-fontconfig --enable-libass --enable-libbluray
--enable-iconv --enable-libtwolame --enable-libzvbi --enable-libcaca
--enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --extra-
libs=-loleaut32 --enable-libmp3lame --enable-version3 --enable-zlib
--enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex
--enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype
--enable-libopus --enable-bzlib --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libvo-amrwbenc --enable-libvpx --enable-libilbc
--enable-libwavpack --enable-libwebp --enable-libgme --enable-dxva2
--enable-gray --enable-libopenh264 --enable-libmysofa --enable-libflite
--enable-lzma --enable-libsnappy --enable-libzimg --enable-libbs2b
--enable-gmp --enable-libfribidi --enable-cross-compile --enable-pic
--extra-libs=-lpsapi --extra-libs=-lspeexdsp --disable-schannel --extra-
cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-
cflags=-DCACA_STATIC --enable-gpl --enable-avisynth --enable-frei0r
--enable-filter=frei0r --enable-librubberband --enable-libvidstab
--enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
--enable-libmfx --enable-avresample --enable-libcdio --extra-
cflags='-mtune=generic' --extra-cflags=-O3 --enable-static --disable-
shared --prefix=/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-
master/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32
--enable-nonfree --enable-decklink --enable-libfdk-aac --enable-opencl
--enable-runtime-cpudetect --extra-libs=-lcrypt32 --extra-libs=-lshlwapi
--extra-libs=-lstdc++ --extra-libs=-lass --extra-libs=-lfontconfig
--extra-libs=-lexpat --extra-libs=-lfribidi --extra-libs=-lfreetype
--extra-libs=-lharfbuzz --extra-libs=-lbz2 --extra-libs=-llzma --extra-
libs=-liconv --extra-libs=-lcdio --extra-libs=-lcdio_paranoia --extra-
libs=-lz --extra-libs=-lpsapi --extra-libs=-lspeexdsp --extra-libs=-lgdi32
--extra-libs=-lwinmm
libavutil 56. 0.100 / 56. 0.100
libavcodec 58. 3.102 / 58. 3.102
libavformat 58. 2.100 / 58. 2.100
libavdevice 58. 0.100 / 58. 0.100
libavfilter 7. 0.101 / 7. 0.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 0.101 / 5. 0.101
libswresample 3. 0.101 / 3. 0.101
libpostproc 55. 0.100 / 55. 0.100
1 warning generated.
platform_idx device_idx device_name runtime
1 0 GeForce GTX 750 Ti 1480
0 0 Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz 11410
".\ffmpeg_1.before_opencl_changes_152902f3799f24d0d392880f33a11c6920a30cf1.exe"
-opencl_bench
ffmpeg version N-89191-g152902f379 Copyright (c) 2000-2017 the FFmpeg
developers
built with gcc 7.2.0 (GCC)
configuration: --arch=x86_64 --target-os=mingw32 --cross-
prefix=/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-
master/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32-
--pkg-config=pkg-config --pkg-config-flags=--static --enable-gray
--enable-version3 --disable-debug --disable-doc --disable-htmlpages
--disable-manpages --disable-podpages --disable-txtpages --disable-
w32threads --enable-nvenc --enable-cuda --enable-cuvid --enable-d3d11va
--enable-libsoxr --enable-fontconfig --enable-libass --enable-libbluray
--enable-iconv --enable-libtwolame --enable-libzvbi --enable-libcaca
--enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --extra-
libs=-loleaut32 --enable-libmp3lame --enable-version3 --enable-zlib
--enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex
--enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype
--enable-libopus --enable-bzlib --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libvo-amrwbenc --enable-libvpx --enable-libilbc
--enable-libwavpack --enable-libwebp --enable-libgme --enable-dxva2
--enable-gray --enable-libopenh264 --enable-libmysofa --enable-libflite
--enable-lzma --enable-libsnappy --enable-libzimg --enable-libbs2b
--enable-gmp --enable-libfribidi --enable-cross-compile --enable-pic
--extra-libs=-lpsapi --extra-libs=-lspeexdsp --disable-schannel --extra-
cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-
cflags=-DCACA_STATIC --enable-gpl --enable-avisynth --enable-frei0r
--enable-filter=frei0r --enable-librubberband --enable-libvidstab
--enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
--enable-libmfx --enable-avresample --enable-libcdio --extra-
cflags='-mtune=generic' --extra-cflags=-O3 --enable-static --disable-
shared --prefix=/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-
master/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32
--enable-nonfree --enable-decklink --enable-libfdk-aac --enable-opencl
--enable-runtime-cpudetect --extra-libs=-lcrypt32 --extra-libs=-lshlwapi
--extra-libs=-lstdc++ --extra-libs=-lass --extra-libs=-lfontconfig
--extra-libs=-lexpat --extra-libs=-lfribidi --extra-libs=-lfreetype
--extra-libs=-lharfbuzz --extra-libs=-lbz2 --extra-libs=-llzma --extra-
libs=-liconv --extra-libs=-lcdio --extra-libs=-lcdio_paranoia --extra-
libs=-lz --extra-libs=-lpsapi --extra-libs=-lspeexdsp --extra-libs=-lgdi32
--extra-libs=-lwinmm
libavutil 56. 0.100 / 56. 0.100
libavcodec 58. 3.105 / 58. 3.105
libavformat 58. 2.102 / 58. 2.102
libavdevice 58. 0.100 / 58. 0.100
libavfilter 7. 2.100 / 7. 2.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 0.101 / 5. 0.101
libswresample 3. 0.101 / 3. 0.101
libpostproc 55. 0.100 / 55. 0.100
1 warning generated.
platform_idx device_idx device_name runtime
1 0 GeForce GTX 750 Ti 1801
0 0 Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz 11210
".\ffmpeg_2.after_opencl_changes_3650cb2dfa644ff4260d226b783747ff9e020ad1.exe"
-opencl_bench
ffmpeg version N-89205-g3650cb2dfa Copyright (c) 2000-2017 the FFmpeg
developers
built with gcc 7.2.0 (GCC)
configuration: --arch=x86_64 --target-os=mingw32 --cross-
prefix=/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-
master/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32-
--pkg-config=pkg-config --pkg-config-flags=--static --enable-gray
--enable-version3 --disable-debug --disable-doc --disable-htmlpages
--disable-manpages --disable-podpages --disable-txtpages --disable-
w32threads --enable-nvenc --enable-cuda --enable-cuvid --enable-d3d11va
--enable-libsoxr --enable-fontconfig --enable-libass --enable-libbluray
--enable-iconv --enable-libtwolame --enable-libzvbi --enable-libcaca
--enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --extra-
libs=-loleaut32 --enable-libmp3lame --enable-version3 --enable-zlib
--enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex
--enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype
--enable-libopus --enable-bzlib --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libvo-amrwbenc --enable-libvpx --enable-libilbc
--enable-libwavpack --enable-libwebp --enable-libgme --enable-dxva2
--enable-gray --enable-libopenh264 --enable-libmysofa --enable-libflite
--enable-lzma --enable-libsnappy --enable-libzimg --enable-libbs2b
--enable-gmp --enable-libfribidi --enable-cross-compile --enable-pic
--extra-libs=-lpsapi --extra-libs=-lspeexdsp --disable-schannel --extra-
cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-
cflags=-DCACA_STATIC --enable-gpl --enable-avisynth --enable-frei0r
--enable-filter=frei0r --enable-librubberband --enable-libvidstab
--enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
--enable-libmfx --enable-avresample --enable-libcdio --extra-
cflags='-mtune=generic' --extra-cflags=-O3 --enable-static --disable-
shared --prefix=/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-
master/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32
--enable-nonfree --enable-decklink --enable-libfdk-aac --enable-opencl
--enable-runtime-cpudetect --extra-libs=-lcrypt32 --extra-libs=-lshlwapi
--extra-libs=-lstdc++ --extra-libs=-lass --extra-libs=-lfontconfig
--extra-libs=-lexpat --extra-libs=-lfribidi --extra-libs=-lfreetype
--extra-libs=-lharfbuzz --extra-libs=-lbz2 --extra-libs=-llzma --extra-
libs=-liconv --extra-libs=-lcdio --extra-libs=-lcdio_paranoia --extra-
libs=-lz --extra-libs=-lpsapi --extra-libs=-lspeexdsp --extra-libs=-lgdi32
--extra-libs=-lwinmm
libavutil 56. 2.100 / 56. 2.100
libavcodec 58. 3.105 / 58. 3.105
libavformat 58. 2.102 / 58. 2.102
libavdevice 58. 0.100 / 58. 0.100
libavfilter 7. 2.102 / 7. 2.102
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 0.101 / 5. 0.101
libswresample 3. 0.101 / 3. 0.101
libpostproc 55. 0.100 / 55. 0.100
Unrecognized option 'opencl_bench'.
Error splitting the argument list: Option not found
".\ffmpeg_3.latest_master_3701d499f8734ec5f3e7359de7311b15d92070b0.exe"
-opencl_bench
ffmpeg version N-89248-g3701d499f8 Copyright (c) 2000-2017 the FFmpeg
developers
built with gcc 7.2.0 (GCC)
configuration: --arch=x86 --target-os=mingw32 --cross-
prefix=/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-
master/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-
config=pkg-config --pkg-config-flags=--static --enable-gray --enable-
version3 --disable-debug --disable-doc --disable-htmlpages --disable-
manpages --disable-podpages --disable-txtpages --disable-w32threads
--enable-nvenc --enable-cuda --enable-cuvid --enable-d3d11va --enable-
libsoxr --enable-fontconfig --enable-libass --enable-libbluray --enable-
iconv --enable-libtwolame --enable-libzvbi --enable-libcaca --enable-
libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --extra-
libs=-loleaut32 --enable-libmp3lame --enable-version3 --enable-zlib
--enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex
--enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype
--enable-libopus --enable-bzlib --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libvo-amrwbenc --enable-libvpx --enable-libilbc
--enable-libwavpack --enable-libwebp --enable-libgme --enable-dxva2
--enable-gray --enable-libopenh264 --enable-libmysofa --enable-libflite
--enable-lzma --enable-libsnappy --enable-libzimg --enable-libbs2b
--enable-gmp --enable-libfribidi --enable-cross-compile --enable-pic
--extra-libs=-lpsapi --extra-libs=-lspeexdsp --disable-schannel --extra-
cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-
cflags=-DCACA_STATIC --enable-gpl --enable-avisynth --enable-frei0r
--enable-filter=frei0r --enable-librubberband --enable-libvidstab
--enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
--enable-libmfx --enable-avresample --enable-libcdio --extra-
cflags='-mtune=generic' --extra-cflags=-O3 --enable-static --disable-
shared --prefix=/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-
master/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32 --enable-
nonfree --enable-decklink --enable-libfdk-aac --enable-opencl --enable-
runtime-cpudetect --extra-libs=-lcrypt32 --extra-libs=-lshlwapi --extra-
libs=-lstdc++ --extra-libs=-lass --extra-libs=-lfontconfig --extra-
libs=-lexpat --extra-libs=-lfribidi --extra-libs=-lfreetype --extra-
libs=-lharfbuzz --extra-libs=-lbz2 --extra-libs=-llzma --extra-
libs=-liconv --extra-libs=-lcdio --extra-libs=-lcdio_paranoia --extra-
libs=-lz --extra-libs=-lpsapi --extra-libs=-lspeexdsp --extra-libs=-lgdi32
--extra-libs=-lwinmm
libavutil 56. 3.100 / 56. 3.100
libavcodec 58. 3.105 / 58. 3.105
libavformat 58. 2.102 / 58. 2.102
libavdevice 58. 0.100 / 58. 0.100
libavfilter 7. 4.100 / 7. 4.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 0.101 / 5. 0.101
libswresample 3. 0.101 / 3. 0.101
libpostproc 55. 0.100 / 55. 0.100
Unrecognized option 'opencl_bench'.
Error splitting the argument list: Option not found
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6871#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list