Skip to content

move pangoft2_pkgs into gtk_packages

Maxim Zakharov requested to merge Maxime2/gtk:gtk-private-packages into master

I am trying to link an application against the master branch of gtk4 but getting the following error:

cc -o mbbag_run api.a `pkg-config --libs gtk4` -lcrypt -lcurl -lavformat -lavcodec -lavutil -lswscale -ltls -lssl -lcrypto -pthread -lm -ldl -lrt    -lpq  `mailutils-config --link all` -L../common -lmbbag-common -lldap -llber `xml2-config --libs` -l:libtcmalloc_minimal.so.4
/usr/bin/ld: /usr/local/muli/lib/x86_64-linux-gnu/libgtk-4.so: undefined reference to `pango_fc_font_get_languages'
collect2: error: ld returned 1 exit status

pkg-config --libs gtk4 returns

-L/usr/local/muli/lib/x86_64-linux-gnu -lgtk-4 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lgdk_pixbuf-2.0 -lcairo-gobject -lcairo -lgraphene-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0

as you can see libpangoft2 (which has pango_fc_font_get_languages defined) is missing here.

This merge request fixes the issue by moving pangoft3_pkgs from gtk_private_packages into gtk_pakages.

Merge request reports