[MacPorts] #66119: gnucash @4.11_1: gnc-main-window.c:80:10: fatal error: 'gtkmacintegration/gtkosxapplication.h' file not found
MacPorts
noreply at macports.org
Sat May 24 05:20:01 UTC 2025
#66119: gnucash @4.11_1: gnc-main-window.c:80:10: fatal error:
'gtkmacintegration/gtkosxapplication.h' file not found
----------------------+----------------------
Reporter: JDLH | Owner: drkp
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.0
Resolution: | Keywords:
Port: gnucash |
----------------------+----------------------
Comment (by JDLH):
I just diagnosed this bug a little more.
Port **gnucash** @5.11 does indeed seem to have a conflict with port
**gtk-osx-application-common-gtk3**, as noted comment:3 .
But it turns out that Port **gnucash** is a recursive dependent of port
**gtk-osx-application-common-gtk3**, if **gtk3** variant `+quartz` is
installed! **Gnucash** has a variant `[+]docs`. The `+docs` variant adds a
dependency on port **gnucash-docs**. **gnucash-docs** depends on port
**yelp**, which depends on port **libhandy**, which depends on port
**glade**, which in variant `+quartz` depends on port **gtk-osx-
application-gtk3**, which depends on port **gtk-osx-application-common-
gtk3**.
The workaround seems to be:
1. deactivate port **gtk-osx-application-common-gtk3** and everything
which depends on it,
2. install `gnucash -docs`, which builds **gnucash** without **gnucash-
docs**,
3. if you are using **gtk3+quartz**, install `glade +quartz` (see
explanation of this workaround below),
4. install `gnucash-docs`.
Then you are fine until you next need to rebuild **gnucash**.
By the way, port **glade** depends on port **gtk3**. Both ports have
`+x11` and `+quartz` variants, and **glade** needs to have the same
variant as **gtk3**. But `+x11` is the default variant for **glade**, so
if you have **gtk3+quartz** installed, **glade** (with no variants stated)
will fail to build. The workaround for _that_ is to install `glade
+quartz` first, so that when **gnucash-docs** installs, it will have the
correct variant of **glade** available.
The fixes I listed in comment:4 still seem to be the right ones for this
bug.
--
Ticket URL: <https://trac.macports.org/ticket/66119#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list