epoccam_linux icon indicating copy to clipboard operation
epoccam_linux copied to clipboard

Failed to compile.

Open tomas789 opened this issue 8 years ago • 2 comments

I have some troubles compiling this. It fails with following message.

tom:~/epoccam_linux$ make
gcc -DPREFIX=\"/usr\" -Wall -Werror -std=c99 -g -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/harfbuzz   -o epoccam epoccam_linux.c -lavcodec -lavutil -lasound -lavformat -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig -lgobject-2.0 -lglib-2.0 -lfreetype  
epoccam_linux.c: In function ‘h264_prepare’:
epoccam_linux.c:339:3: error: implicit declaration of function ‘av_err2str’ [-Werror=implicit-function-declaration]
   fprintf(stderr, "error opening fmt (%s)\n", av_err2str(ret));
   ^
epoccam_linux.c:339:3: error: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Werror=format=]
epoccam_linux.c:344:3: error: implicit declaration of function ‘av_frame_alloc’ [-Werror=implicit-function-declaration]
   h264->frame = av_frame_alloc();
   ^
epoccam_linux.c:344:15: error: assignment makes pointer from integer without a cast [-Werror]
   h264->frame = av_frame_alloc();
               ^
epoccam_linux.c: In function ‘aac_init’:
epoccam_linux.c:393:13: error: assignment makes pointer from integer without a cast [-Werror]
  aac->frame = av_frame_alloc();
             ^
cc1: all warnings being treated as errors
make: *** [epoccam] Error 1
tom:~/epoccam_linux$ 

I have commit

bb1113a4f467a05f8c4bbe4427b41e2585be4807
My version of GCC is
tom:~/epoccam_linux$ gcc --version
gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

tom:~/epoccam_linux$ 
tom:~/epoccam_linux$ dpkg -s libavutil-dev
Package: libavutil-dev
Status: install ok installed
Priority: optional
Section: libdevel
Installed-Size: 563
Maintainer: Ubuntu Developers 
Architecture: amd64
Source: libav
Version: 6:9.18-0ubuntu0.14.04.1
Depends: libavutil52 (= 6:9.18-0ubuntu0.14.04.1)
Description: Development files for libavutil
 Libav is a complete, cross-platform solution to decode, encode, record,
 convert and stream audio and video.
 .
 This is the common utility library from Libav.
 .
 This package contains the header files and static libraries needed to
 compile applications or shared objects that use libavutil.
Homepage: http://libav.org/
Original-Maintainer: Debian Multimedia Maintainers 
tom:~/epoccam_linux$ 

tomas789 avatar Sep 06 '15 10:09 tomas789