jrottenberg / ffmpeg

Docker build for FFmpeg on Ubuntu / Alpine / Centos / Scratch / nvidia / vaapi
https://hub.docker.com/r/jrottenberg/ffmpeg/
Apache License 2.0
1.4k stars 455 forks source link

Ubuntu-Server 16.04 Build Error #122

Open DineshGuptaa opened 5 years ago

DineshGuptaa commented 5 years ago

HI Jrottenberg, I am new to ffmpeg and wanted to build the project inside docker. Thank you for such work. I am building on Ubuntu-server 16.04 platform with Tiger VNC.

I have making docker of the ffmpeg 4.0.2. Bu t build in giving me error.

Install the project...
-- Install configuration: "Release"
-- Installing: /opt/ffmpeg/include/aom/aom.h
-- Installing: /opt/ffmpeg/include/aom/aom_codec.h
-- Installing: /opt/ffmpeg/include/aom/aom_frame_buffer.h
-- Installing: /opt/ffmpeg/include/aom/aom_image.h
-- Installing: /opt/ffmpeg/include/aom/aom_integer.h
-- Up-to-date: /opt/ffmpeg/include/aom/aom.h
-- Installing: /opt/ffmpeg/include/aom/aom_decoder.h
-- Installing: /opt/ffmpeg/include/aom/aomdx.h
-- Installing: /opt/ffmpeg/include/aom/aomcx.h
-- Installing: /opt/ffmpeg/include/aom/aom_encoder.h
-- Installing: /opt/ffmpeg/lib/pkgconfig/aom.pc
-- Installing: /opt/ffmpeg/lib/libaom.so.0
-- Installing: /opt/ffmpeg/lib/libaom.so
-- Installing: /opt/ffmpeg/bin/aomdec
-- Set runtime path of "/opt/ffmpeg/bin/aomdec" to ""
-- Installing: /opt/ffmpeg/bin/aomenc
-- Set runtime path of "/opt/ffmpeg/bin/aomenc" to ""
ERROR: aom >= 0.1.0 not found using pkg-config

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
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.

Thanks

derek-adair commented 5 years ago

Here is the error I receieve when building 4.0 in ubuntu:

libavcodec/libaomenc.c:703:109: error: 'AOM_ERROR_RESILIENT_PARTITIONS' undeclared here (not in a function)
                          " is still done over the partition boundary.",       0, AV_OPT_TYPE_CONST, {.i64 = AOM_ERROR_RESILIENT_PARTITIONS}, 0, 0, VE, "er"},
                                                                                                             ^
ffbuild/common.mak:60: recipe for target 'libavcodec/libaomenc.o' failed
make: *** [libavcodec/libaomenc.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /opt/ffmpeg/include/fdk-aac/FDK_audio.h:98:0,
                 from /opt/ffmpeg/include/fdk-aac/aacdecoder_lib.h:347,
                 from libavcodec/libfdk-aacdec.c:20:
/opt/ffmpeg/include/fdk-aac/genericStds.h:402:5: warning: 'IS_LITTLE_ENDIAN' defined but not used [-Wunused-function]
 int IS_LITTLE_ENDIAN(void) {
derek-adair commented 5 years ago

I suspect its because the AOM dependency is not pinned

derek-adair commented 5 years ago

I think my issue is potentially different tho. I get past the AOM build.

derek-adair commented 5 years ago

Solution for me was to remove --enable-libaom --extra-libs=-lpthread .

Also its worth noting that the snapshot build works in ubuntu.