tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: osx mpv and swift
Hello Chuck,
Chuck Cranor writes:
> [...]
> I'm attempting to compile multimedia/mpv on a freshly updated
> pkgsrc and osx mojave system. The build fails with "ld" errors
> when waf tries to link the mpv binary. The errors are all related
> to "swift" libraries:
>
> [225/225] Linking build/mpv
> ld: warning: Could not find auto-linked library 'swiftCoreGraphics'
> [...]
> ld: warning: Could not find auto-linked library 'swiftCoreImage'
> Undefined symbols for architecture x86_64:
> "static Foundation.Notification._unconditionallyBridgeFromObjectiveC(__C.NSNotification?) -> Foundation.Notification", referenced from:
> merged @objc macOS_swift.Window.windowDidEnterFullScreen(Foundation.Notification) -> () in macOS_swift.o
> ... (lots more of Undefined symbols errors) ...
>
>
> I think those libs are here:
>
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift*/macosx
>
>
> After the link failure, I've found that if I bypass pkgsrc "make build"
> and manually go into the pkgsrc "work" directory and directly run
> "waf build" then the link works... so it must be something that pkgsrc
> is doing?
>
>
> > (cd work/mpv-0.29.1/ ; waf build)
> cwd: /usr/local/src/pkgsrc/multimedia/mpv/work/mpv-0.29.1
> Waf: Entering directory `/usr/local/src/pkgsrc/multimedia/mpv/work/mpv-0.29.1/build'
> [1/1] Compiling version.sh
> [224/225] Linking build/mpv
> Waf: Leaving directory `/usr/local/src/pkgsrc/multimedia/mpv/work/mpv-0.29.1/build'
> 'build' finished successfully (1.403s)
> >
>
>
>
> Any suggestions on how to fix or debug this further?
> [...]
Can you please try to add in multimedia/mpv/Makefile:
WAF_CONFIGURE_ARGS+= --disable-swift
...and if it still fails can you please share ${WRKSRC}/build/config.log?
Thank you!
Home |
Main Index |
Thread Index |
Old Index