justdan96 / tsMuxer

tsMuxer is a transport stream muxer for remuxing/muxing elementary streams, EVO/VOB/MPG, MKV/MKA, MP4/MOV, TS, M2TS to TS to M2TS. Supported video codecs H.264/AVC, H.265/HEVC, VC-1, MPEG2. Supported audio codecs AAC, AC3 / E-AC3(DD+), DTS/ DTS-HD.
Apache License 2.0
871 stars 147 forks source link

Library not found on macOS #539

Closed SubJunk closed 2 years ago

SubJunk commented 2 years ago

This problem has resurfaced which makes the macOS release not work unless the machine also has freetype installed. It got fixed last year but maybe that fix didn't make it into the releases or something, the previous issue is at https://github.com/justdan96/tsMuxer/issues/443

lighterowl commented 2 years ago

The documentation now explicitly requests macOS users to install Freetype via Homebrew.

There is a pull request which will make the macOS binary as static as possible, i.e. without any external non-system dependencies but it's still pending review and approval.

SubJunk commented 2 years ago

@xavery thanks for your response. Is there anything I can do to help that PR move forward? I'm a developer of a media server that bundles tsMuxeR so it's not that practical to get our users to run a Homebrew command

lighterowl commented 2 years ago

@justdan96 Do you mind having a look?

lighterowl commented 2 years ago

@SubJunk Dan seems to be missing in action, so I went ahead and merged that PR seeing how it's blocking an actual issue.

The changes will be incorporated into today's nightly build, or you can try out the per-commit build if you don't want to wait. Please test and report back.

As expected, running otool on the new binary shows that there are no external dependencies :

$ llvm-otool -L tsMuxeR 
tsMuxeR:
    /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
    /usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.8)
    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1200.3.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.0.0)
justdan96 commented 2 years ago

Sorry the only M1 Mac I have access to is my partner's and she has been using it a lot recently! I'll check if the finished build still works okay on her M1 Mac.

SubJunk commented 2 years ago

Thanks guys, I really appreciate this :)

justdan96 commented 2 years ago

I'm seeing this output from latest Mac binary on M1 Mac:

tsmuxer_mac_screenshot

justdan96 commented 2 years ago

I think we are okay to close.

SubJunk commented 2 years ago

Thanks again!