Project

General

Profile

compiling on freebsd fails (ffmpeg)

Added by sharky :-) over 8 years ago

Hello ,

I'm trying to build the latest git version on freebsd, but I can't figure out why ffmpeg building fails. Any hints ?

root@tvh:~/tvheadend # gmake
gmake -f Makefile.ffmpeg
gmake[1]: Entering directory '/root/tvheadend'
DOWNLOAD        https://dl.bintray.com/tvheadend/misc/staticlib//amd64/ffmpeg-4729f117973e18d97b1895e7fdbf52db98875118.tgz
--2016-05-15 02:25:40--  https://dl.bintray.com/tvheadend/misc/staticlib//amd64/ffmpeg-4729f117973e18d97b1895e7fdbf52db98875118.tgz
Resolving dl.bintray.com (dl.bintray.com)... 5.153.35.248, 159.122.18.156
Connecting to dl.bintray.com (dl.bintray.com)|5.153.35.248|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-05-15 02:25:40 ERROR 404: Not Found.

FAILED TO DOWNLOAD https://dl.bintray.com/tvheadend/misc/staticlib//amd64/ffmpeg-4729f117973e18d97b1895e7fdbf52db98875118.tgz (BUT THIS IS NOT A FATAL ERROR! DO NOT REPORT THAT!)
cd /root/tvheadend/build.freebsd/ffmpeg/ffmpeg-3.0.2 && FFMPEG_PREFIX=/root/tvheadend/build.freebsd/ffmpeg/build/ffmpeg PKG_CONFIG=/root/tvheadend/support/pkg-config.ffmpeg ./configure --prefix=/ffmpeg --enable-static --disable-shared \
        --disable-all \
        --enable-gpl \
        --extra-cflags="-I/root/tvheadend/build.freebsd/ffmpeg/build/ffmpeg/include -fPIE" \
        --extra-libs="-L/root/tvheadend/build.freebsd/ffmpeg/build/ffmpeg/lib -ldl" \
        --pkg-config="/root/tvheadend/support/pkg-config.ffmpeg" \
        --enable-avutil --enable-avcodec --enable-avformat --enable-swscale --enable-avresample --enable-swresample --enable-avfilter \
        --enable-libx264 --enable-libx265 --enable-libvpx --enable-libtheora --enable-libvorbis --enable-libfdk-aac --enable-nonfree \
        --enable-protocol=file \
        --enable-decoder=mpeg2video --enable-decoder=mp2 --enable-decoder=aac --enable-decoder=vorbis --enable-decoder=ac3 --enable-decoder=eac3 --enable-decoder=aac_latm --enable-decoder=h264 --enable-decoder=hevc --enable-decoder=libvorbis \
        --enable-encoder=mpeg2video --enable-encoder=mp2 --enable-encoder=aac --enable-encoder=vorbis --enable-encoder=libx264 --enable-encoder=libx265 --enable-encoder=libvpx_vp8 --enable-encoder=libvpx_vp9 --enable-encoder=libtheora --enable-encoder=libvorbis --enable-encoder=libfdk_aac \
        --enable-muxer=mpegts --enable-muxer=mpeg2dvd --enable-muxer=matroska --enable-muxer=webm --enable-muxer=mp4 --enable-muxer=ogg \
        --enable-bsf=h264_mp4toannexb --enable-bsf=hevc_mp4toannexb \
        --enable-filter=yadif --enable-filter=scale --enable-filter=null --enable-filter=aresample --enable-filter=anull
gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.
Makefile.ffmpeg:561: recipe for target '/root/tvheadend/build.freebsd/ffmpeg/ffmpeg-3.0.2/.tvh_build' failed
gmake[1]: *** [/root/tvheadend/build.freebsd/ffmpeg/ffmpeg-3.0.2/.tvh_build] Error 1
gmake[1]: Leaving directory '/root/tvheadend'
Makefile:749: recipe for target '/root/tvheadend/build.freebsd/ffmpeg/build/ffmpeg/lib/libavcodec.a' failed
gmake: *** [/root/tvheadend/build.freebsd/ffmpeg/build/ffmpeg/lib/libavcodec.a] Error 2

from ffmpeg.log

BEGIN /tmp/ffconf.SEQSmSGi.c
    1   int main(void){ return 0; }
END /tmp/ffconf.SEQSmSGi.c
gcc -I/root/tvheadend/build.freebsd/ffmpeg/build/ffmpeg/include -fPIE -c -o /tmp/ffconf.vWHMtftT.o /tmp/ffconf.SEQSmSGi.c
gcc -o /tmp/ffconf.IoGsCbpx /tmp/ffconf.vWHMtftT.o -L/root/tvheadend/build.freebsd/ffmpeg/build/ffmpeg/lib -ldl
/usr/local/bin/ld: cannot find -ldl
collect2: error: ld returned 1 exit status
C compiler test failed.