Opened 3 years ago
Last modified 20 months ago
#64777 new defect
mpv 0.34.1: Xcode is required even for the precompiled binary
Reported by: | dardo82 (Michele Venturi) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | highsierra | Cc: | Ionic (Mihai Moldovan), i0ntempest |
Port: | mpv |
Description
MPV needs Xcode, otherwise it prints an error:
dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib Referenced from: /opt/local/bin/mpv Reason: image not found
All the missing libraries are available in /usr/lib/swift
,
but LC_RPATH (checked with otool -l $(which mpv)
)
points only to /opt/local/lib
and the Xcode directory.
Is this issue caused by the way the port is built
or should it be fixed upstream instead of here?
Change History (6)
comment:1 Changed 3 years ago by Wowfunhappy (Jonathan)
comment:2 Changed 3 years ago by kencu (Ken)
comment:3 Changed 3 years ago by dardo82 (Michele Venturi)
The Command Line Tools are installed and
I have also tried using a package for Swift.
comment:4 Changed 2 years ago by i0ntempest
Does the issue still exists on High Sierra? For me on Monterey I can see RPATH includes /usr/lib/swift
.
comment:5 Changed 21 months ago by mrkapqa
Hello , i am having similar issue on HighSierra?
mpv dyld: Symbol not found: __T0So8NSWindowC5LevelV6AppKit01_cdD23NumericRawRepresentableAEWP Referenced from: /opt/local/bin/mpv Expected in: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftAppKit.dylib in /opt/local/bin/mpv Abort trap: 6
comment:6 Changed 20 months ago by mrkapqa
Hello , the issue occurs with Xcode 10.1 on MacOS HighSierra, downgrading Xcode to 9.4.1 solves the issue.
Note: See
TracTickets for help on using
tickets.
See also, mailing list discussion: https://lists.macports.org/pipermail/macports-users/2022-March/050875.html
The OP is trying to install MPV on a machine that does not have Xcode installed. This should work because MPV is available from MacPorts as a binary archive.
OP, for the sake of completeness, are the Developer Command Line Tools installed?