[linux] build failed
Hello.
Trying to compile mpv under Debian Wheezy, but build failed:
[241/241] linking -> build/mpv
/usr/bin/ld: cannot find -lvpx
/usr/bin/ld: cannot find -lfdk-aac
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/home/serge/.0-source/mpv/build'
Build failed
Latest ffmpeg from git is installed in /usr/local:
serge@debian:~$ ffmpeg -version
ffmpeg version N-60911-g2673357
built on Feb 26 2014 07:16:49 with gcc 4.7 (Debian 4.7.2-5)
configuration: --extra-cflags=-I/home/serge/.0-source/ffmpeg/include --extra-ldflags=-L/home/serge/.0-source/ffmpeg/lib --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab --enable-libaacplus
libavutil 52. 66.100 / 52. 66.100
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.100 / 55. 33.100
libavdevice 55. 10.100 / 55. 10.100
libavfilter 4. 1.103 / 4. 1.103
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
serge@debian:~$
http://metafight.ru/files/waf-configure.txt
http://metafight.ru/files/waf-build.txt
http://metafight.ru/files/config.log.txt
What's wrong? Thanks.
Are you using https://github.com/mpv-player/mpv-build?
If not, make your life easier and use that to build a Debian package. It works on Wheezy.
If you are already using mpv-build, it looks like the dependencies got messed up. fdk-aac suggests that you did echo --enable-libfdk-aac >> ffmpeg_options echo --enable-nonfree >> ffmpeg_options but did not actually install the required libfdk-aac-dev package (which also pulls in libfdk-aac0 containing the library it's looking for). This has to be done manually since libfdk-aac is in the non-free section, which not everybody will have access to.
As for libvpx, that should have been installed as a build dependency with mk-build-deps -s sudo -i
However, I have found that mk-build-deps sometimes gets confused and installs old build-deps packages instead of the one it just created. Try removing all the build-deps .deb files from the mpv directory and reruning mk-build-deps.
Yeah, this is a ffmpeg/libav issue. Somehow the libraries ffmpeg was compiled against are missing, and this shows up in the mpv final link.
Well, build okay after compiling and installing libvpx and fdk-aac.