tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

osx mpv and swift



hi-

    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 'swiftCoreFoundation'
ld: warning: Could not find auto-linked library 'swiftIOKit'
ld: warning: Could not find auto-linked library 'swiftDarwin'
ld: warning: Could not find auto-linked library 'swiftDispatch'
ld: warning: Could not find auto-linked library 'swiftObjectiveC'
ld: warning: Could not find auto-linked library 'swiftAppKit'
ld: warning: Could not find auto-linked library 'swiftCoreData'
ld: warning: Could not find auto-linked library 'swiftXPC'
ld: warning: Could not find auto-linked library 'swiftFoundation'
ld: warning: Could not find auto-linked library 'swiftMetal'
ld: warning: Could not find auto-linked library 'swiftQuartzCore'
ld: warning: Could not find auto-linked library 'swiftCore'
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?

thanks,
chuck



Home | Main Index | Thread Index | Old Index