Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 2nd, 2012  |  syntax: None  |  size: 1.25 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. cbeck@lol:~/afp/lib/libav$ make
  2. CGOPKGPATH=afp cgo -- -g libav.go
  3. Error running gcc:
  4. $ gcc -m32 -Wall -Werror -o_cgo_.o -gdwarf-2 -fno-eliminate-unused-debug-types -c -xc - -g <<EOF
  5.  
  6. typedef struct { char *p; int n; } _GoString_;
  7. _GoString_ GoString(char *p);
  8. _GoString_ GoStringN(char *p, int l);
  9. char *CString(_GoString_);
  10. #include <stdlib.h>
  11. #include "libav.h"
  12. #include "libav.c"
  13.  
  14. typeof(CString) *__cgo__0;
  15. typeof(prepare_decoding) *__cgo__1;
  16. typeof(decode_packet) *__cgo__2;
  17. typeof(init_decoding) *__cgo__3;
  18. typeof(free) *__cgo__4;
  19. typeof(get_stream_info) *__cgo__5;
  20. typeof(AVDecodeContext) *__cgo__6;
  21. typeof(int) *__cgo__7;
  22. EOF
  23. cc1: warnings being treated as errors
  24. In file included from <stdin>:8:
  25. libav.c: In function 'prepare_decoding':
  26. libav.c:95: error: implicit declaration of function 'av_guess_format'
  27. libav.c:95: error: initialization makes pointer from integer without a cast
  28. libav.c:96: error: 'AVMEDIA_TYPE_AUDIO' undeclared (first use in this function)
  29. libav.c:96: error: (Each undeclared identifier is reported only once
  30. libav.c:96: error: for each function it appears in.)
  31. libav.c: In function 'decode_packet':
  32. libav.c:203: error: implicit declaration of function 'avcodec_decode_audio3'
  33. make: *** [_cgo_defun.c] Error 2