rhx / SwiftGtk

A Swift wrapper around gtk-3.x and gtk-4.x that is largely auto-generated from gobject-introspection
https://rhx.github.io/SwiftGtk/
BSD 2-Clause "Simplified" License
317 stars 26 forks source link

Unneeded include prevents build #58

Closed jamgard closed 1 year ago

jamgard commented 1 year ago

In the SwiftCairo/Sources/CCairo/cairo_bridging.h file there is a reference to cairo-tee.h and it prevents building on Manjaro Linux. The current Cairo version is 1.17 and doesn't include cairo-tee.h and after removing the reference in the SwiftGtk SwiftCairo source file, the build completes and the tests pass.

rhx commented 1 year ago

I have now removed cairo-tee.h for cairo-1.17 and higher. Could you double-check that this works for you (don't forget to swift package purge-cache ; rm -f Package.resolved ; swift package upgrade to ensure the new SwiftCairo is pulled in when re-compiling).

jamgard commented 1 year ago

It builds now. Thank you for the change.