[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
Mon Oct 31 04:58:50 UTC 2022

#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 ryandesign):

 binreloc.c only includes gtkmacintegration/gtkosxapplication.h if
 `ENABLE_BINRELOC` is defined. I don't see it defined on the command line.
 It might be defined in an include file, I'm not sure, but if not, that
 would explain why this file can compile even though
 gtkmacintegration/gtkosxapplication.h is not found.

 gnc-main-window.c fails to compile for the reason stated: it can't find
 gtkmacintegration/gtkosxapplication.h. For it to be found, the directory
 containing it would need to be specified as an include path via a `-I` or
 `-isystem` flag. The only flag I see is `-I/opt/local/include
 /gtkmacintegration-gtk3/gtkmacintegration`. As you said, the file is
 actually located at `/opt/local/include/gtkmacintegration-
 gtk3/gtkmacintegration/gtkosxapplication.h` so that include path is
 incorrect. The correct include path would be `-I/opt/local/include

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

More information about the macports-tickets mailing list