[MacPorts] #63694: mpv: fatal error encountered while reading from module 'Foundation'

MacPorts noreply at macports.org
Sat Nov 13 18:08:40 UTC 2021


#63694: mpv: fatal error encountered while reading from module 'Foundation'
---------------------------+------------------------
  Reporter:  ShadSterling  |      Owner:  i0ntempest
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:
      Port:  mpv           |
---------------------------+------------------------

Comment (by Gandoon):

 Replying to [comment:30 jf]:
 > Replying to [comment:29 Gandoon]:
 > >
 > > As a test I did download mpv directly from the github repository and
 built that version, and it worked perfectly except for the libjpeg
 dependency from macports could not be found (all other macports based
 dependencies were detected and used without problem), and it does not
 build a .app which is less of a concern to me.
 > > However, it is interesting to note that the waf version used there
 seems to be 2.0.20 rather than 2.0.22 that seems to be what is used in the
 port. There are also discrepancies in various scripts when referring to
 the waf version number. Shuffling around a bit, I still can't get the
 macport to build, but as I said, the github clone I got builds perfectly
 fine, and it does not complain about Swift.
 >
 > Thank you for your report! I was able to successfully compile and use
 mpv myself as well. Similarly, the configure process was not able to
 detect libjpeg; but no matter! I mostly never use the screenshot feature,
 and I more often than not trigger it accidentally... This is my system:
 > - MacPorts 2.7.1 (with updated tree)
 > - M1 silicon
 > - Xcode 13.1
 > - MacOS 11.6

 I can give you a tip, for the standalone build I explicitly added a
 LDFLAGS for the config step:

 {{{
 LDFLAGS='-L/usr/lib -L/opt/local/lib -L/opt/local/lib/lua-5.2' ./waf
 configure --enable-jpeg [...]
 }}}

 Then the turbojpeg library could be found.\\
 The -L/usr/lib was necessary because for some reason the macports iconv
 failed on me, so I had to point to the system version, and the lua-5.2 may
 or may not be necessary, but it gave me some headaches so it does not hurt
 (I further changed the includes to be <lua-5.2/lua.h> etc. in player/lua.c
 and the headaches went away). It is quite nice to have lua working since I
 do want to use the youtube-dl binding from time to time. Also, I changed
 the jpeglib.h includes in video/image_writer.c to explicit paths and added
 the turbojpeg.h include. Then it compiled more or less exactly as I wanted
 it to.\\
 Finally, I built and installed it with:


 {{{
 ./waf\\
 sudo ./waf --install
 }}}


 I avoided using the ./waf build construct, as it didn't quite work the way
 I expected it to.\\
 Slightly more fiddly than the normal macports build, but since at least
 for the time being, the port is semi-broken for some of us, this is an
 acceptable workaround for me.

-- 
Ticket URL: <https://trac.macports.org/ticket/63694#comment:31>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list