[FFmpeg-user] user32.lib missing in link call
Bernhard Döbler
programmer at bardware.de
Sun Feb 8 14:09:41 CET 2015
Hi,
I call
$ ./configure \
--toolchain=msvc --arch=x86 \
--host-cc=gcc \
--host-ld=gcc \
--prefix=/deps \
--disable-ffplay \
--disable-ffserver \
--enable-version3 \
--disable-debug \
--disable-everything \
--disable-filters \
--enable-parser=png,ac3,flac,mpegaudio \
--enable-filter=scale,aresample \
--enable-protocol=file,pipe,md5,data \
--enable-muxer=flac,mp3,mov,mjpeg,wav,image2,gif,crc,framecrc,framemd5,md5,null
\
--enable-demuxer=flac,mp3,mov,mjpeg,wav,image2,gif \
--enable-decoder=aac,flac,mp3,mjpeg,png,pcm_s16le,pcm_s16be,pcm_u16le,pcm_u16be,pcm_s8,pcm_u8,pcm_mulaw,pcm_alaw,pcm_s32le,pcm_s32be,pcm_u32le,pcm_u32be,pcm_s24le,pcm_s24be,pcm_u24le,pcm_u24be,pcm_s24daud,pcm_zork,pcm_s16le_planar,pcm_s24le_planar,pcm_s32le_planar,pcm_dvd,pcm_f32be,pcm_f32le,pcm_f64be,pcm_f64le,pcm_bluray,pcm_lxf,s302m,pcm_s8_planar
\
--enable-encoder=flac,mjpeg,png,pcm_s16le,pcm_s16be,pcm_u16le,pcm_u16be,pcm_s8,pcm_u8,pcm_mulaw,pcm_alaw,pcm_s32le,pcm_s32be,pcm_u32le,pcm_u32be,pcm_s24le,pcm_s24be,pcm_u24le,pcm_u24be,pcm_s24daud,pcm_f32be,pcm_f32le,pcm_f64be,pcm_f64le
$ make
and finally recieve:
link -libpath:libavcodec -libpath:libavdevice -libpath:libavfilter
-libpath:libavformat -libpath:libavresample -libpath:libavutil
-libpath:libpostproc -libpath:libswscale -libpath:libswresample -nologo
-libpath:ARGEADDRESSAWARE -out:ffmpeg_g.exe cmdutils.o ffmpeg_opt.o
ffmpeg_filter.o ffmpeg.o ffmpeg_dxva2.o libavdevice.a libavfilter.a
libavformat.a libavcodec.a libswresample.a libswscale.a libavutil.a
psapi.lib advapi32.lib shell32.lib ole32.lib
link -libpath:libavcodec -libpath:libavdevice -libpath:libavfilter
-libpath:libavformat -libpath:libavresample -libpath:libavutil
-libpath:libpostproc -libpath:libswscale -libpath:libswresample -nologo
-libpath:ARGEADDRESSAWARE -out:ffprobe_g.exe cmdutils.o ffprobe.o
libavdevice.a libavfilter.a libavformat.a libavcodec.a libswresample.a
libswscale.a libavutil.a psapi.lib advapi32.lib shell32.lib
ffmpeg_dxva2.o : error LNK2019: Verweis auf nicht aufgel▒stes externes
Symbol "__imp__GetShellWindow at 0" in Funktion "_dxva2_alloc".
ffmpeg_g.exe : fatal error LNK1120: 1 nicht aufgel▒ste Externe
Something configured obviously needs GetShellWindow but user32.lib is
not added to the list of libraries ffmpeg_g.exe is linked against.
I thus added
--extra-libs='user32.lib'
to my configure call.
Best,
Bernhard
More information about the ffmpeg-user
mailing list