Re: [gtk-osx-users] implicit declaration of function 'pango_font_metrics' is invalid in C99



I haven't built anything that uses Gtk2 in a long time.

It was my very first concern (I was hoping to test a patch for the "marching ants" bug which otherwise renders Gimp stable unusable), but when I asked I was presented with the Gimp = Gtk backstory.

Apparently the "marching ants" bug is fixed for Wayland on Gimp master branch which uses Gtk3, so the team is hopeful this patch may work on MacOS as well.

Unfortunately I don't chat synchronously (IRC) these days.  Instead, I close the lid and hope to get some help in people's spare time.

I wasn't sent here, but rather emailed due to the close ties between gtk-osx and the Gimp port.  I have some experience building for Mac for some other projects, but I'm not a C++ developer so troubleshooting these issues does not come naturally and the jhbuild process of building all dependencies from scratch is an impressive feat, but one which comes with a volatile workflow. 

At a glance, I thought maybe this message is missing a header or something, which brought me to GtkAda's page, but the amount of time getting the dependencies compiled alone seems to make it hard to attract developers to such a project.

I'll politely decline your instructions to ask for an individual on #gimp, since that's where I started (just getting Adium to join the channel took me quite a while to figure out) so my email was a last-ditch effort to understand what a basic troubleshooting step could be for compiling such a popular program.  I digress. :)

 


On Tue, Jul 27, 2021 at 6:26 PM John Ralls <jralls ceridwen us> wrote:


> On Jul 27, 2021, at 3:11 PM, Tres Finocchiaro via gtk-osx-users-list <gtk-osx-users-list gnome org> wrote:
>
> Hi,
>
> I'm attempting to build Gimp for MacOS and in doing so, I encounter the following error:
>
> implicit declaration of function 'pango_font_metrics' is invalid in C99
>
> Although the issue reads very similar to this issue, installing fontconfig and rebuilding the failing module didn't work. https://www.mail-archive.com/search?l=gtk-osx-users-list gnome org&q=subject:%22Re%5C:+%5C%5Bgtk%5C-osx%5C-users%5C%5D+Pango+error+implicit+declaration+of+function+is+invalid+in+C99.%22&o=newest&f=1
>
> I understand that gtk-osx requires jhbuild, which can come with its own configuration.  I'm not working from a build tutorial but rather adapting a Circle-CI configuration as directed here: https://gitlab.gnome.org/GNOME/gimp/-/issues/5952#note_1211266
>
> I'm adapting this to a human-readable procedure here:
> https://gist.github.com/tresf/7afd58020be5274d2e583a89854d8bd1
>
> ... but I get stuck with the above error message on the prerequisites Step 10.
>
> As far as I'm aware, the only modification to the Circle-CI steps is my XCode/MacOSX SDK version is slightly newer than that which CIrcle-CI uses.
>
> Any help is appreciated.

Sorry, your gist indicates that you're using a fork of gtk-osx with its own modulesets. If that's what you want to do then ask Alex Samurukov for help. IIRC he hangs out on #gimp. If you want me to help then use the mainline gtk-osx... but note that I haven't built anything that uses Gtk2 in a long time. You're probably better off with Alex.

Regards,
John Ralls



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]