Menu

integrating c++ wrapper to own application?

user
2006-02-23
2013-05-09
  • Nobody/Anonymous

    hello,

    since a few days I tried to use the fobs c++ wrapper for my application. I installed the fobs-src like the installation instructions and used the libraries from this installation. My problem is now, when I want to link my application, I always get following error: /home/christian/fobs-src/ffmpeg/libavformat/libavformat.a *2002: undefined reference to `avcodec_pix_fmt_to_codec_tag'  In function `av_register_all':

    This error is only one of more.
    I entered the path and the library into the Makefile, but now I really dont know, what I can do.

    Has anyone an idea, what I did wrong?

     
    • Jose San Pedro

      Jose San Pedro - 2006-02-23

      Hi,

      that may happen when you use the worng libraries order in link command. Make sure libavcodec.a comes after libavformat.a when you link your applicaciont.

      Hope that helps.

      Cheers,

      Jose San Pedro

       
    • Nobody/Anonymous

      Hi,

      thanks for your help. I had another problem and now it is working.
      maybe it is a bad question, but I dont find any documentation. Do you know some sites, where I can find a documentation?
      Another question: is it possible to convert a mp3 to a wav or a wav to a mp3? or only changing the quality of a codec?

      thx

      chris

       
  • Lars Kühne

    Lars Kühne - 2010-01-12

    hi,

    im experiencing the same problem. the fobs compilation went through in the end. Now when i want to integrate it into my own application, i get the same errors like you.
    Did you, or anyone else, already find a solution for this?
    I would really appreciate it.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.