Advertisement
Guest User

Untitled

a guest
May 21st, 2018
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.02 KB | None | 0 0
  1. mkdir build
  2. gcc -g -Wall -o build/hello_world -lavformat -lavcodec -lswscale -lavutil -lz 0_hello_world.c \
  3.   && ./build/hello_world small_bunny_1080p_60fps.mp4
  4. 0_hello_world.c: In function โ€˜mainโ€™:
  5. 0_hello_world.c:35:3: warning: โ€˜av_register_allโ€™ is deprecated [-Wdeprecated-declarations]
  6.    av_register_all();
  7.    ^~~~~~~~~~~~~~~
  8. In file included from 0_hello_world.c:15:0:
  9. /usr/local/include/libavformat/avformat.h:2033:6: note: declared here
  10.  void av_register_all(void);
  11.       ^~~~~~~~~~~~~~~
  12. /tmp/ccbsfyh8.o: In function `av_make_error_string':
  13. /usr/local/include/libavutil/error.h:111: undefined reference to `av_strerror'
  14. /tmp/ccbsfyh8.o: In function `main':
  15. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:35: undefined reference to `av_register_all'
  16. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:40: undefined reference to `avformat_alloc_context'
  17. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:54: undefined reference to `avformat_open_input'
  18. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:73: undefined reference to `avformat_find_stream_info'
  19. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:103: undefined reference to `avcodec_find_decoder'
  20. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:125: undefined reference to `avcodec_alloc_context3'
  21. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:134: undefined reference to `avcodec_parameters_to_context'
  22. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:142: undefined reference to `avcodec_open2'
  23. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:149: undefined reference to `av_frame_alloc'
  24. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:156: undefined reference to `av_packet_alloc'
  25. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:180: undefined reference to `av_packet_unref'
  26. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:168: undefined reference to `av_read_frame'
  27. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:185: undefined reference to `avformat_close_input'
  28. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:186: undefined reference to `avformat_free_context'
  29. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:187: undefined reference to `av_packet_free'
  30. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:188: undefined reference to `av_frame_free'
  31. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:189: undefined reference to `avcodec_free_context'
  32. /tmp/ccbsfyh8.o: In function `decode_packet':
  33. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:207: undefined reference to `avcodec_send_packet'
  34. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:218: undefined reference to `avcodec_receive_frame'
  35. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:230: undefined reference to `av_get_picture_type_char'
  36. /home/xultz/libav/ffmpeg-libav-tutorial/0_hello_world.c:242: undefined reference to `av_frame_unref'
  37. collect2: error: ld returned 1 exit status
  38. Makefile:4: recipe for target 'hello_world' failed
  39. make: *** [hello_world] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement