Re: "Can't link to Pango"



On 02/12/2014 10:30 PM, Kang Hu wrote:
the error message is emitted here in configure.ac <http://configure.ac>:
-------------------------------------------------------------------------------
if $PKG_CONFIG --uninstalled $PANGO_PACKAGES; then
        :
else
        gtk_save_LIBS="$LIBS"
        LIBS="$PANGO_LIBS $LIBS"
        AC_TRY_LINK_FUNC(pango_context_new, :, AC_MSG_ERROR([
*** Can't link to Pango. Pango is required to build
*** GTK+. For more information see http://www.pango.org]))
        LIBS="$gtk_save_LIBS"
fi
-----------------------------------------------------------------------------------

apparently the condition "pkg-config --uninstalled pango pangocairo" is not true.

the "--uninstalled" option passed to pkg-config instructs pkg-config to find pango-uninstalled.pc instead of pango.pc. this option is mostly used for compilation/linking against uninstalled packages. see man pkg-config for more details. you can set PKG_CONFIG_DISABLE_UNINSTALLED env variable to disable this behavior.


I just tried...

export PKG_CONFIG_DISABLE_UNINSTALLED=1

and

export PKG_CONFIG_DISABLE_UNINSTALLED=true

but ./configure still halts with the same "can't link to Pango" message.

Here is my config.log :

http://www.flight.us/misc/gtk_config.log.txt

thanks.


On Thu, Feb 13, 2014 at 10:13 AM, Bric <bric flight us <mailto:bric flight us>> wrote:

    I am trying to compile gtk+-3.11.5

    during "./configure" I am getting:

     Can't link to Pango. Pango is required to build
    *** GTK+. For more information see http://www.pango.org

    I have pango-1.36.2 installed


    pkg-config --cflags "pango pangocairo" :

    -pthread -I/usr/local/include/pango-1.0
    -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
    -I/usr/local/include/cairo -I/usr/local/include
    -I/usr/local/include/freetype2 -I/usr/local/include/libpng12
    -I/usr/local/include/harfbuzz -I/usr/include/pixman-1

    -------------------

    frustrating to no end.  Can someone please help?

    _______________________________________________
    gtk-app-devel-list mailing list
    gtk-app-devel-list gnome org <mailto:gtk-app-devel-list gnome org>
    https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list





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