Menu

"undefined refference to sincos" and "libavcodec.so has text relocations"

derekzhuo
2015-04-24
2015-04-25
  • derekzhuo

    derekzhuo - 2015-04-24

    Got the latest version ffmpeg4android, and compile it on my platform using ndk-r9d, ubuntu-64, which has two problems:

    1."undefined refference to sincos"
    and so on, a lot of errors just like this, but the compiling process can just keep going, what should i do if i want to solve this?

    2."libavcodec.so has text relocations"
    really i still don't understand this after surveying, i can see many people asking but no one give an correct answer, could anyone solve this?

    email: hoi72008@sina.com

     
  • derekzhuo

    derekzhuo - 2015-04-24

    plus, the tool i wrote compiled with static-lib could work well, does not work well while compiled with shared-lib, why is this happening?

    many thanks!!!

     
    • Obucina

      Obucina - 2015-04-24

      MIssing sincos is a long known problem I reported a while ago.
      However, there is still no proper solution.

      https://code.google.com/p/android/issues/detail?id=38423

      Basically, the problem You have is caused because You configure and
      build FFmpeg against NDK system root and libraries. But when You put
      them on Your system, and try to build something, they work and are
      linking against bionic libraries from android system root. It happens
      that these two are different. Solution - try to exclude the codec
      which is using missing functions, or create some macro to avoid them.

      Regarding text relocations, this should be fixed in my make files,
      there is a flag for this (+++ LOCAL_LDFLAGS :=
      -Wl,--no-warn-shared-textrel)

      Best regards

      Srdjan

      2015-04-24 11:45 GMT+02:00 derekzhuo derekzhuo@users.sf.net:

      plus, the tool i wrote compiled with static-lib could work well, does not
      work well while compiled with shared-lib, why is this happening?

      many thanks!!!


      "undefined refference to sincos" and "libavcodec.so has text relocations"


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/ffmpeg4android/discussion/general/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
      • derekzhuo

        derekzhuo - 2015-04-24

        The tool ffmpeg compile with static lib in the project work fine, but ffmpeg(shared version) would hang.

        And it goes the same for my tool, i found that i just hang on function "avformat_find_stream_into()", have you ever encounter this?

        thank u!

         

        Last edit: derekzhuo 2015-04-24
  • derekzhuo

    derekzhuo - 2015-04-25

    to tranform video format, instruction is like this:

    $ffmpeg -i video.avi video.ts
        --the tool compiled with shared lib will hand
    $ffmpeg-static -i video.avi video.ts
        --this tool just work fine
    

    have you ever encountered this?
    thank you.

     
  • Obucina

    Obucina - 2015-04-25

    Sorry, I cant tell anything without debugging.

     
  • derekzhuo

    derekzhuo - 2015-04-25

    thanks any way!

     

Log in to post a comment.