MacPorts XCode Installation

Marius Schamschula lists at schamschula.com
Mon Mar 7 16:25:32 UTC 2022


Michele,

Please submit a MacPorts ticket!

Other users may search trac if they encounter the same issue. We can also link to any upstream tickets from there.

> On Mar 7, 2022, at 10:22 AM, Michele Venturi <dardo82 at gmail.com> wrote:
> 
> Should I submit a bug report before we even know if it's a MacPorts specific issue? Or how do we find that out?
> 
> Il lun 7 mar 2022, 16:47 Chris Jones <jonesc at hep.phy.cam.ac.uk <mailto:jonesc at hep.phy.cam.ac.uk>> ha scritto:
> 
> 
> On 07/03/2022 3:31 pm, Michele Venturi wrote:
> > I have the required libraries in /usr/lib/swift too,but MPV is looking 
> > for them in /opt/local/lib,so it doesn't find them:
> > 
> > otool -l $(which mpv)
> > ...
> > cmd LC_RPATH
> > cmdsize 32
> > path /opt/local/lib (offset 12)
> > 
> > Should we change RPATH or add symbolic links?
> 
> No, those are not the solutions here. If there is an issue with the 
> build on 10.13 we should fix that instead, rather than apply 
> after-the-fact bandaids.
> 
> The first thing to determine is if its a MacPorts specific issue due to 
> how the build is performed, or an upstream issue. Either way please 
> submit a bug report to macports trac so the discussion on this can 
> continue there.
> 
> Chris
> 
> > 
> > Michele Venturi
> > about.me/dardo82 <http://about.me/dardo82> <http://about.me/dardo82 <http://about.me/dardo82>>
> > 
> > <https://about.me/dardo82?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb <https://about.me/dardo82?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>> 
> >       
> > Michele Venturi
> > about.me/dardo82 <http://about.me/dardo82> 
> > <https://about.me/dardo82?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb <https://about.me/dardo82?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>> 
> > 
> > 
> > 
> > 
> > Il giorno lun 7 mar 2022 alle ore 15:46 Ryan Schmidt 
> > <ryandesign at macports.org <mailto:ryandesign at macports.org> <mailto:ryandesign at macports.org <mailto:ryandesign at macports.org>>> ha scritto:
> > 
> > 
> > 
> >     On Mar 7, 2022, at 08:34, Michele Venturi wrote:
> > 
> >      > If I install MPV without Xcode I get an error when I launch it:
> >      >
> >      > dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib
> >      >   Referenced from: /opt/local/bin/mpv
> >      >   Reason: image not found
> >      >
> >      > It's missing something,have you tried to execute it on 10.13?
> > 
> >     I have not.
> > 
> >     I guess you're right, in relation to the Swift language usage I
> >     mentioned earlier, this port does appear to need
> >     libswiftAVFoundation.dylib at runtime. And maybe it is expecting to
> >     find it within Xcode on your system. (It depends on what @rpath
> >     expands to. I forget what the command is to interrogate a binary
> >     about its rpaths.)
> > 
> >     Swift is still a new programming language and I don't think we have
> >     many ports in MacPorts that use Swift so I'm not sure if this should
> >     be considered normal or not.
> > 
> >     I see that I have many copies of libswiftAVFoundation.dylib on my
> >     system, within various applications' bundles, so I guess Apple
> >     expects people to include copies of the Swift dylibs with their
> >     application.
> > 
> >     On my 10.15 system, it does not link with
> >     @rpath/libswiftAVFoundation.dylib. It links with various Swift
> >     dylibs in /usr/lib/swift. Maybe the port can be made to do so on
> >     10.13 as well.
> > 
> >     You should file a bug report about this mpv problem.
> > 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20220307/f9e099d5/attachment.htm>


More information about the macports-users mailing list