Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build on Ubuntu 12.04 / amd64 #26

Open
kasperholtze opened this issue Jul 28, 2012 · 2 comments
Open

Cannot build on Ubuntu 12.04 / amd64 #26

kasperholtze opened this issue Jul 28, 2012 · 2 comments

Comments

@kasperholtze
Copy link

Just checked out from Github, and configured/compiled as instructed:

$ aclocal
$ automake -ac
$ autoconf
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for sys/types.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for memmove... yes
checking for memset... yes
checking for strrchr... yes
checking for strtol... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FFMPEG... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tests/Makefile
config.status: executing depfiles commands

$ make
Making all in tests
...
gcc -DPACKAGE_NAME="m3u8-segmenter" -DPACKAGE_TARNAME="m3u8-segmenter" -DPACKAGE_VERSION="0.3" -DPACKAGE_STRING="m3u8-segmenter\ 0.3" -DPACKAGE_BUGREPORT="http://github.com/johnf/m3u8-segmenter/issues\" -DPACKAGE_URL="http://m3u8-segmenter.inodes.org\" -DPACKAGE="m3u8-segmenter" -DVERSION="0.3" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SIGNAL_H=1 -DHAVE_GETOPT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_STRRCHR=1 -DHAVE_STRTOL=1 -I. -I/usr/local/include -g -O2 -Wall -Wextra -Wdeclaration-after-statement -Wpointer-arith -funsigned-char -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wbad-function-cast -Wwrite-strings -MT m3u8_segmenter-m3u8-segmenter.o -MD -MP -MF .deps/m3u8_segmenter-m3u8-segmenter.Tpo -c -o m3u8_segmenter-m3u8-segmenter.o test -f 'm3u8-segmenter.c' || echo './'m3u8-segmenter.c
m3u8-segmenter.c: In function ‘add_output_stream’:
m3u8-segmenter.c:58:5: error: implicit declaration of function ‘avformat_new_stream’ [-Werror=implicit-function-declaration]
m3u8-segmenter.c:58:5: error: nested extern declaration of ‘avformat_new_stream’ [-Werror=nested-externs]
m3u8-segmenter.c:58:19: error: assignment makes pointer from integer without a cast [-Werror]
m3u8-segmenter.c: In function ‘main’:
m3u8-segmenter.c:343:5: error: implicit declaration of function ‘avformat_find_stream_info’ [-Werror=implicit-function-declaration]
m3u8-segmenter.c:343:5: error: nested extern declaration of ‘avformat_find_stream_info’ [-Werror=nested-externs]
m3u8-segmenter.c:390:7: error: implicit declaration of function ‘avcodec_open2’ [-Werror=implicit-function-declaration]
m3u8-segmenter.c:390:7: error: nested extern declaration of ‘avcodec_open2’ [-Werror=nested-externs]
cc1: all warnings being treated as errors
make[1]: *** [m3u8_segmenter-m3u8-segmenter.o] Error 1
make[1]: Leaving directory '/home/kasper/src/m3u8-segmenter'
make: *** [all-recursive] Error 1

@johnf
Copy link
Collaborator

johnf commented Jul 28, 2012

Could I see the output of

dpkg -l | egrep 'ffmpeg|libav'

@kasperholtze
Copy link
Author

Well, as it seemed to have a lot to do with the version of ffmpeg, I tried with the latest version.. that resolved the problem above, but raised new problems with missing vp8 functionality (eg. undefined reference to `vpx_codec_decode').

I ended up using the new segment-functions in the latest ffmpeg, and creating a script to generate m3u8 files.

It probably won't help, but here goes:

ii chromium-codecs-ffmpeg 18.0.1025.168r134367-0ubuntu0.12.04.1 Free ffmpeg codecs for the Chromium Browser
ii ffmpeg 5:201207282000-git-1 Package created with checkinstall 1.6.2
ii ffmpeg2theora 0.27-1.1ubuntu1 Theora video encoder using ffmpeg
ii gstreamer0.10-ffmpeg 0.10.13-1 FFmpeg plugin for GStreamer
ii libavahi-client-dev 0.6.30-5ubuntu2 Development files for the Avahi client library
ii libavahi-client3 0.6.30-5ubuntu2 Avahi client library
ii libavahi-client3:i386 0.6.30-5ubuntu2 Avahi client library
ii libavahi-common-data 0.6.30-5ubuntu2 Avahi common data files
ii libavahi-common-data:i386 0.6.30-5ubuntu2 Avahi common data files
ii libavahi-common-dev 0.6.30-5ubuntu2 Development files for the Avahi common library
ii libavahi-common3 0.6.30-5ubuntu2 Avahi common library
ii libavahi-common3:i386 0.6.30-5ubuntu2 Avahi common library
rc libavahi-core6 0.6.25-1ubuntu6.1 Avahi's embeddable mDNS/DNS-SD library
ii libavahi-core7 0.6.30-5ubuntu2 Avahi's embeddable mDNS/DNS-SD library
ii libavahi-glib-dev 0.6.30-5ubuntu2 Development headers for the Avahi glib integration library
ii libavahi-glib1 0.6.30-5ubuntu2 Avahi glib integration library
ii libavahi-gobject0 0.6.30-5ubuntu2 Avahi GObject library
ii libavahi-ui-gtk3-0 0.6.30-5ubuntu2 Avahi GTK+ User interface library for GTK3
ii libavahi-ui0 0.6.30-5ubuntu2 Avahi GTK+ User interface library
ii libavc1394-0 0.5.3-1ubuntu2 control IEEE 1394 audio/video devices
ii libavc1394-0:i386 0.5.3-1ubuntu2 control IEEE 1394 audio/video devices
ii libavcodec-dev 4:0.8.3-0ubuntu0.12.04.1 Development files for libavcodec
rc libavcodec-extra-52 4:0.6.2-1ubuntu2 Libav codec library
ii libavcodec-extra-53 4:0.8.3ubuntu0.12.04.1+medibuntu1 Libav codec library
rc libavcodec52 4:0.6.2-1ubuntu1 Libav codec library
rc libavdevice52 4:0.6.2-1ubuntu1.1 Libav device handling library
ii libavdevice53 4:0.8.3-0ubuntu0.12.04.1 Libav device handling library
rc libavfilter1 4:0.6.2-1ubuntu1.1 Libav video filtering library
ii libavfilter2 4:0.8.3-0ubuntu0.12.04.1 Libav video filtering library
ii libavformat-dev 4:0.8.3-0ubuntu0.12.04.1 Development files for libavformat
rc libavformat-extra-53 4:0.8.3ubuntu0.12.04.1+medibuntu1 Libav video postprocessing library
rc libavformat52 4:0.6.2-1ubuntu1.1 Libav file format library
ii libavformat53 4:0.8.3-0ubuntu0.12.04.1 Libav file format library
ii libavidemux0 1:2.5.4-0ubuntu12
ppa1 a free video editor - shared libraries
ii libavutil-dev 4:0.8.3-0ubuntu0.12.04.1 Development files for libavutil
rc libavutil-extra-50 4:0.6.2-1ubuntu2 Libav utility library
ii libavutil-extra-51 4:0.8.3ubuntu0.12.04.1+medibuntu1 Libav utility library
rc libavutil49 4:0.5.1-1ubuntu1 ffmpeg utility library
rc libavutil50 4:0.6.2-1ubuntu1 Libav utility library
rc libffmpegthumbnailer4 2.0.7-2 shared library for ffmpegthumbnailer
ii libffms2-2 2.17-1 Cross platform ffmpeg wrapper library
ii libsox-fmt-ffmpeg 14.3.2-3 SoX ffmpeg format library
ii libxine1-ffmpeg 1.1.20-2build1 MPEG-related plugins for libxine1
ii winff 1.4.1-1ubuntu0.1 graphical video and audio batch converter using ffmpeg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants