Advertisement
Guest User

FFMPEG library linking problem

a guest
Jul 13th, 2012
465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. bhanu@HRS:~$ g++ main.cpp -lavcodec -lavdevice -lavfilter -lavformat -lavutil -logg -lrtmp -lswscale -lx264 -lpthread -lvorbis -L/usr/lib
  2.  
  3. this is generating compiler output ..
  4.  
  5. main.cpp: In function ‘int main(int, char**)’:
  6. main.cpp:57:29: warning: ‘AVCodecContext* avcodec_alloc_context()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3283)
  7. main.cpp:57:51: warning: ‘AVCodecContext* avcodec_alloc_context()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3283)
  8. main.cpp:111:6: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3417)
  9. main.cpp:111:34: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3417)
  10. /usr/lib/libavformat.a(allformats.o): In function `av_register_all':
  11. /home/bhanu/work_environment/softwares/ffmpeg/libavformat/allformats.c:49: undefined reference to `avcodec_register_all'
  12. /usr/lib/libavformat.a(oggparsevorbis.o): In function `vorbis_packet':
  13. /home/bhanu/work_environment/softwares/ffmpeg/libavformat/oggparsevorbis.c:306: undefined reference to `avpriv_vorbis_parse_reset'
  14. /home/bhanu/work_environment/softwares/ffmpeg/libavformat/oggparsevorbis.c:309: undefined reference to `avpriv_vorbis_parse_frame'
  15. /home/bhanu/work_environment/softwares/ffmpeg/libavformat/oggparsevorbis.c:318: undefined reference to `avpriv_vorbis_parse_frame'
  16. /home/bhanu/work_environment/softwares/ffmpeg/libavformat/oggparsevorbis.c:340: undefined reference to `avpriv_vorbis_parse_frame'
  17. /home/bhanu/work_environment/softwares/ffmpeg/libavformat/oggparsevorbis.c:335: undefined reference to `avpriv_vorbis_parse_reset'
  18. /usr/lib/libavformat.a(oggparsevorbis.o): In function `vorbis_header':
  19. /home/bhanu/work_environment/softwares/ffmpeg/libavformat/oggparsevorbis.c:280: undefined reference to `avpriv_vorbis_parse_extradata'
  20. /usr/lib/libavformat.a(sdp.o): In function `extradata2psets':
  21. /home/bhanu/work_environment/softwares/ffmpeg/libavformat/sdp.c:169: undefined reference to `av_bitstream_filter_init'
  22. /home/bhanu/work_environment/softwares/ffmpeg/libavformat/sdp.c:185: undefined reference to `av_bitstream_filter_filter'
  23. /home/bhanu/work_environment/softwares/ffmpeg/libavformat/sdp.c:186: undefined reference to `av_bitstream_filter_close'
  24. /home/bhanu/work_environment/softwares/ffmpeg/libavformat/sdp.c:181: undefined reference to `av_bitstream_filter_close'
  25. collect2: ld returned 1 exit status
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement