[FFmpeg-devel] Configure: commit 6dfcbd80ad446ff163b47f2bf432bbf706436ea8 broke my builds

James Almer jamrial at gmail.com
Sun Oct 15 03:38:09 EEST 2017


On 10/14/2017 8:46 PM, hydra3333 at gmail.com wrote:
> Hello. Per ticket https://trac.ffmpeg.org/ticket/6731 I too am having
> trouble cross-compiling ffmpeg.
> 
> This is the configure being used
>    ./configure --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  --disable-libx264 --extra-libs=-lpthread
> --extra-libs=-lcrypt32 --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=-lm
> --extra-libs=-lpsapi --extra-libs=-lspeexdsp
> 
> And this is a part of my script in which I am adding libraries one by
> one once I see what error message appears in each subsequent attempt to
> build (I started with a set I saw in another post somewhere).
>    # 2017.10.14 - START add this for various errors per
> https://patchwork.ffmpeg.org/patch/5540/ - removed from being extralibs
> being global any more ?
>    config_options+=" --extra-libs=-lpthread"
>    config_options+=" --extra-libs=-lcrypt32"
>    config_options+=" --extra-libs=-lstdc++"
>    config_options+=" --extra-libs=-lass"
>    config_options+=" --extra-libs=-lfontconfig"
>    config_options+=" --extra-libs=-lexpat"
>    config_options+=" --extra-libs=-lfribidi"
>    config_options+=" --extra-libs=-lfreetype"
>    config_options+=" --extra-libs=-lharfbuzz"
>    config_options+=" --extra-libs=-lpsapi" # dlfcn [frei0r?] requires
> this, has no .pc file should put in frei0r.pc? ...
>    config_options+=" --extra-libs=-lspeexdsp" # libebur :|
>    config_options+=" --extra-libs=-lbz2"
>    config_options+=" --extra-libs=-llzma"
>    config_options+=" --extra-libs=-liconv"
>    config_options+=" --extra-libs=-lcdio"
>    config_options+=" --extra-libs=-lcdio_paranoia"
>    config_options+=" --extra-libs=-lz"
>    config_options+=" --extra-libs=-lm"
>    config_options+=" --extra-libs=-lgdi32"
> 
> However I'm not quite sure what to do when I see the following errors in
> config.log, so advice would be appreciated.
> 
> /home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-master/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-gcc
> -Wl,--large-address-aware -Wl,--nxcompat,--dynamicbase -Wl,--as-needed
> -Wl,--pic-executable,-e,_mainCRTStartup -o /tmp/ffconf.a5swywFH/test.exe
> /tmp/ffconf.a5swywFH/test.o -lcdio_paranoia -lcdio_cdda -lcdio
> -lspeexdsp -lpsapi -lm -lz -lcdio_paranoia -lcdio -liconv -llzma -lbz2
> -lharfbuzz -lfreetype -lfribidi -lexpat -lfontconfig -lass -lstdc++
> -lcrypt32 -lpthread -lspeexdsp -lpsapi  -loleaut32 -lpng -lstdc++
> /home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-master/sandbox/cross_compilers/mingw-w64-i686/lib/gcc/i686-w64-mingw32/7.2.0/../../../../i686-w64-mingw32/lib/../lib/libcdio.a(win32.o):win32.c:(.text+0x80):
> undefined reference to `_imp__mciSendCommandA at 16'
> /home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-master/sandbox/cross_compilers/mingw-w64-i686/lib/gcc/i686-w64-mingw32/7.2.0/../../../../i686-w64-mingw32/lib/../lib/libcdio.a(win32.o):win32.c:(.text+0xa2):
> undefined reference to `_imp__mciGetErrorStringA at 12'
> /home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-master/sandbox/cross_compilers/mingw-w64-i686/lib/gcc/i686-w64-mingw32/7.2.0/../../../../i686-w64-mingw32/lib/../lib/libcdio.a(aspi32.o):aspi32.c:(.text+0x1b9a):
> undefined reference to `_imp__mciSendCommandA at 16'
> <snip lots>
> /home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-master/sandbox/cross_compilers/mingw-w64-i686/lib/gcc/i686-w64-mingw32/7.2.0/../../../../i686-w64-mingw32/lib/../lib/libcdio.a(aspi32.o):aspi32.c:(.text+0x3205):
> undefined reference to `_imp__mciGetErrorStringA at 12'
> /home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-master/sandbox/cross_compilers/mingw-w64-i686/lib/gcc/i686-w64-mingw32/7.2.0/../../../../i686-w64-mingw32/lib/../lib/libcdio.a(aspi32.o):aspi32.c:(.text+0x3236):
> undefined reference to `_imp__mciGetErrorStringA at 12'

These are from -lwinmm.

> collect2: error: ld returned 1 exit status
> ERROR: No usable libcdio/cdparanoia found

I have added a pkg-config check for libcdio, which should when present
hopefully add -lwinmm on windows builds.


More information about the ffmpeg-devel mailing list