Notes on building with MacOS Catalina 10.15.7.
Apologies for the Issue basket. If requested, I'll come back and break these out into individual issues when I have a bit more downtime. I made the judgement call that it would be better to raise these sooner rather than later, with the understanding that it breaks etiquette, and will accept any punishment deemed appropriate (Please don't hurt me. :) )
These are my build notes using the current gtk-osx following the below-referenced wiki page.
MacOS Catalina 10.15.7 (19H1615)
Fresh non-admin user.
JHBUILD_RELEASE_VERSION=3.38.0
https://gitlab.gnome.org/GNOME/gtk-osx/-/tree/master
(As of January 14, 2022 1:05 PM CST)\
Following: https://wiki.gnome.org/Projects/GTK/OSX/Building
Installing gtk-doc:
ERROR: Could not detect Ninja v1.8.2 or newer
SOLVED:
~/.new_local/share/virtualenvs/etc-LdWkfVtL/bin/pip3.10 install --upgrade ninja meson
jhbuild buildone -afc meta-gtk-osx-bootstrap gtk-doc
RESOURCES:
" devkenante commented on May 15, 2020 | As far as I can tell, it was fixed in e04b0ae#diff-a66a8f5d37d3492fc951e272fca392e7. |Still getting the same issue on meson -v 0.54.1
Solved by installing ninja by pip3 pip3 install ninja meson"
Link: https://github.com/mesonbuild/meson/issues/6867
Building module harfbuzz-no-cairo:
Run-time dependency gobject-introspection-1.0 found: NO (tried pkgconfig, framework and cmake)
../../../../gtk/source/harfbuzz-2.8.0/src/meson.build:631:4: ERROR: Dependency "gobject-introspection-1.0" not found, tried pkgconfig, framework and cmake
*** Error during phase configure of harfbuzz-no-cairo: ########## Error running meson --prefix /Users/genealogy/gtk/inst --libdir lib -Dcoretext=enabled -Ddocs=disabled -Dbenchmark=disabled --wrap-mode=nofallback /Users/genealogy/gtk/source/harfbuzz-2.8.0 *** [15/33]
SOLUTION:
~/.new_local/share/virtualenvs/etc-LdWkfVtL/bin/pip3.10 uninstall meson
~/.new_local/share/virtualenvs/etc-LdWkfVtL/bin/pip3.10 install meson==0.60.3
jhbuild buildone -afc meta-gtk-osx-bootstrap gobject-introspection
jhbuild buildone -afc meta-gtk-osx-bootstrap harfbuzz-no-cairo
RESOURCES:
"Heiko Becker @heirecka I see the same here since meson 0.61.0. Supposedly meson expects files for input/output of custom_target."
Building rsvg:
checking for cargo... no
configure: error: cargo is required. Please install the Rust toolchain from https://www.rust-lang.org/
*** Error during phase configure of librsvg: ########## Error running /Users/genealogy/gtk/source/librsvg-2.51.0/configure --prefix /Users/genealogy/gtk/inst --disable-Bsymbolic *** [31/33]
SOLUTION:
I tried a few things, so take this one with a grain of salt, but I believe that what fixed it was symlinking ~/.cargo to ~/.rustup.
ln -s ~/.rustup ~/.cargo
If I get a chance, I'll start with a fresh install and try just that, but it'll be a bit before I can.
Building gobject-introspection:
~/gtk/source/gobject-introspection-1.68.0/giscanner/meson.build:51:0: ERROR: File doctemplates does not exist.
SOLUTION:
Use https://gitlab.gnome.org/GNOME/gobject-introspection/-/tree/master, at least until the next release.
RESOURCES:
Link: gobject-introspection#414 (closed)
CAVEAT: This one may be the result of something else I did in my environment, but I've tried to keep it as clean and fresh as possible and simply follow the basic jhbuild build meta-gtk-osx-bootstrap meta-gtk-osx-gtk3
flow, with the other fixes listed above. I don't recall if I did jhbuild buildone -afc meta-gtk-osx-bootstrap python3
in an attempt to solve one of the above issues, or if the python3 SSL issue was simply the result of my initial jhbuild build meta-gtk-osx-bootstrap meta-gtk-osx-gtk3
and the python3 re-attempt was an effort to fix the SSL issue.
NOTE: Python 3.9 seems to install without TLS/SSL using jhbuild buildone -afc meta-gtk-osx-bootstrap python3
, which yields:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
SOLUTION:
jhbuild buildone -afc meta-gtk-osx-bootstrap openssl
jhbuild buildone -afc meta-gtk-osx-bootstrap python3