Hi Werner!
I added libgobject-2.0 to LIBS: "export LIBS='-lglib-2.0
-lgobject-2.0'", and after that building the lilypond executable
succeeded again.
Hmm.  LilyPond doesn't explicitly test for glib; it relies on
PANGO_FT2_LIBS, which should always add those two libraries for
building the `lilypond' binary.  For example, I see the following in
my `config.log' file:

   configure:9658: checking PANGO_FT2_LIBS
   configure:9661: result: -L/usr/local/lib64 -lpangoft2-1.0 \
                           -lpango-1.0 -lgobject-2.0 -lglib-2.0 \
                           -lfontconfig -lfreetype

Why is this not sufficient on your system?

configure has:

   $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
                PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.38.0"`
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGO_FT2_LIBS" 
>&5
   $as_echo "$PANGO_FT2_LIBS" >&6; }


pkg-config --libs "pangoft2 >= 1.38.0" gives

   -lpangoft2-1.0 -lpango-1.0 -lfontconfig -lfreetype

and pkg-config --cflags "pangoft2 >= 1.38.0" gives

   -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz 
-I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include 
-I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libpng16 
-I/usr/include/uuid -I/usr/include/freetype2


Weird. Look at /usr/lib64/pkgconfig/pangoft2.pc:

   prefix=/usr
   libdir=${prefix}/lib64
   includedir=${prefix}/include

   Name: Pango FT2 and Pango Fc
   Description: Freetype 2.0 and fontconfig font support for Pango
   Version: 1.43.0
   Requires: pango, freetype2, fontconfig >=  2.11.91
   Requires.private: glib-2.0 >=  2.38.0, gobject-2.0 >=  2.38.0, fribidi >=  0.19.7, 
libthai >=  0.1.9, harfbuzz >=  1.4.2, xrender, xft >=  2.0.0, cairo >= 1.12.10
   Libs: -L${libdir} -lpangoft2-1.0

Is there a difference to the pangoft2.pc on your system?

Knut


_______________________________________________
lilypond-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to