Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#15 rev1577 link error on OSX w/ fix

closed-fixed
Jin
5
2007-12-28
2007-11-30
Reid
No

Hi:
There was a missing symbol when compiling mediatomb rev1577 on macosx (PPC at least) on final link. Namely, _av_log_set_callback. I was able to resolve this by additionally linking to avutil. Please find attached a patch, but please forgive it. I don't speak auto-tools, so it is rather a hack.

Discussion

  • Reid
    Reid
    2007-11-30

    patch to allow linking on osx

     
    Attachments
  • Jin
    Jin
    2007-12-21

    Logged In: YES
    user_id=1205152
    Originator: NO

    sorry for the late reply; I think I will have to do it in a different way, but thanks for the hint; I'll see that I add an extra check, would be nice if you could test it once it is done; I'll post the revision number

    Thanks!

    Jin

     
  • Jin
    Jin
    2007-12-21

    • assigned_to: nobody --> jin_eld
     
  • Logged In: NO

    Oh, I was fully expecting my patch to be thrown out and it done a different why. It was more an illustrative example of what needed to happen (in principle) and show that it works (though inelegantly).

    But, yah. Just let me know what rev to test and I'll test it.

     
  • Jin
    Jin
    2007-12-23

    Logged In: YES
    user_id=1205152
    Originator: NO

    ok, can you please try with revision 1594 and let me know if it worked?

    thanks,
    Jin

     
  • Reid
    Reid
    2007-12-24

    Logged In: YES
    user_id=1932533
    Originator: YES

    It gets that it needs avutil, but the linking test fails (it is successful in 1577).

    checking for ffmpeg/avformat.h... yes
    checking for av_register_all in -lavformat... yes
    checking for av_log_set_callback in -lavutil... yes
    checking ffmpeg linking... failed, check your ffmpeg installation

    I checked out the code in configure that it was trying to compile to check the linking and found that the C compiles successfully with:

    gcc -o test -L/opt/local/lib -I/opt/local/include -lavformat -lavutil test.c

    Similarly for the C++ (extern "C") with g++. So, something's not right with the switches that are getting to the command.

    Unfortunately, I can't see the problem when compare the two versions. I also don't know if there's a way to display the commands that are being executed by configure (is there a way?).

    I'll give it another stab tomorrow sometime (currently very late here). But, I thought I'd let you know about what was going on in case it's something that I'm just not seeing. Or if you want me to do anything specific that'd give you any other info that you need.

     
  • Jin
    Jin
    2007-12-24

    Logged In: YES
    user_id=1205152
    Originator: NO

    oops, that was a screwup on my part

    Committed revision 1599.

    I hope this finally works :)

     
  • Reid
    Reid
    2007-12-28

    Logged In: YES
    user_id=1932533
    Originator: YES

    Sorry it took so long. My ISP decided that the holidays would be the perfect time to cut of my inet access. At any rate...

    Success!

    checking for ffmpeg/avformat.h... yes
    checking for av_register_all in -lavformat... yes
    checking for av_log_set_callback in -lavutil... yes
    checking ffmpeg linking... ok

    ...

    ffmpeg : yes

    Tests: Haven't had any problems with playing mp3's and transcoding and copying of files to a PS3.

    Thanks :)

     
  • Jin
    Jin
    2007-12-28

    • status: open --> closed-fixed
     
  • Jin
    Jin
    2007-12-28

    Logged In: YES
    user_id=1205152
    Originator: NO

    Nice! Thanks for testing :)

    fixed in rev 1599