Re: "Can't link to Pango"



On 02/13/2014 07:03 AM, Kang Hu wrote:
sorry for my previous misinfomation
it seems that the error happens here in your configure log file:
---------------------------------------------------------------------------------------------------------
configure:24295: gcc -o conftest -march=i686 -mtune=i686 -Wall -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/include/pixman-1      -ldl conftest.c 
-L/usr/local/lib -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lglib-2.0    >&5
/usr/local/lib/libpangocairo-1.0.so  <http://libpangocairo-1.0.so>: undefined reference to 
`pango_fc_font_create_base_metrics_for_context'
collect2: ld returned 1 exit status
-----------------------------------------------------------------
symbol pango_fc_font_create_base_metrics_for_context is defined in pangoft2.
you can add -lpangoft2-1.0 by hand to the end of pangocairo.pc or pango.pc as a workaround.

I did the above workaround, successfully, and got past my pango snag....

Then ./configure complained about not having atk-bridge; i went down that chain of dependencies, with at-spi2-core, etc., (some of the latest git failed to "make"; i used version releases), and made gtk+ ./configure happy.

But gtk+ make is now failing — HANGING (not exiting!) on an error:

(let me know if I should start a new thread for this, since my subject line is pango-specific, and this is beyond pango (apparently!)) ...

<snip>

GEN resources/ui/gtkappchooserdialog.ui.h
GEN resources/ui/gtkappchooserwidget.ui.h
GEN resources/ui/gtkassistant.ui.h
GEN resources/ui/gtkcolorchooserdialog.ui.h
GEN resources/ui/gtkcoloreditor.ui.h
GEN resources/ui/gtkdialog.ui.h
GEN resources/ui/gtkfilechooserbutton.ui.h
GEN resources/ui/gtkfilechooserwidget.ui.h
GEN resources/ui/gtkfilechooserdialog.ui.h
GEN resources/ui/gtkfontbutton.ui.h
GEN resources/ui/gtkfontchooserdialog.ui.h
GEN resources/ui/gtkfontchooserwidget.ui.h
GEN resources/ui/gtkinfobar.ui.h
GEN resources/ui/gtklockbutton.ui.h
GEN resources/ui/gtkmessagedialog.ui.h
GEN resources/ui/gtkpagesetupunixdialog.ui.h
GEN resources/ui/gtkpathbar.ui.h
GEN resources/ui/gtkprintunixdialog.ui.h
GEN resources/ui/gtkrecentchooserdefault.ui.h
GEN resources/ui/gtksearchbar.ui.h
GEN resources/ui/gtkscalebutton.ui.h
GEN resources/ui/gtkstatusbar.ui.h
GEN resources/ui/gtkvolumebutton.ui.h
GEN gtkresources.c

(glib-compile-resources:6887): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call g_type_init()

(glib-compile-resources:6887): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(glib-compile-resources:6887): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call g_type_init()

(glib-compile-resources:6887): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call g_type_init()

(glib-compile-resources:6887): GLib-GObject-CRITICAL **: IA__g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed

(glib-compile-resources:6887): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(glib-compile-resources:6887): GLib-GObject-CRITICAL **: IA__g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(glib-compile-resources:6887): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(glib-compile-resources:6887): GLib-GObject-CRITICAL **: IA__g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

(glib-compile-resources:6887): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call g_type_init()

(glib-compile-resources:6887): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call g_type_init()

(glib-compile-resources:6887): GLib-GObject-CRITICAL **: IA__g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed

(glib-compile-resources:6887): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(glib-compile-resources:6887): GLib-GObject-CRITICAL **: IA__g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(glib-compile-resources:6887): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(glib-compile-resources:6887): GLib-GObject-CRITICAL **: IA__g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

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

at this point it just hangs, without exiting...; I need to do Ctrl+C, and get:

^Cmake[2]: *** [gtkresources.c] Interrupt
make[1]: *** [all-recursive] Interrupt
make: *** [all] Interrupt

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

This is a never ending battle, this gtk+ on my Ubuntu 10.10, with the sprawling tree and extensive chains of dependencies, each of which is not yielding easily (!!!) — battling over 48 hours now...

i don't know a better way to do this.  your problem may be caused by  the custom-built pango library.



On Thu, Feb 13, 2014 at 6:26 PM, Bric <bric flight us <mailto:bric flight us>> wrote:

    On 02/13/2014 04:21 AM, Lucas Levrel wrote:

        Le 12 février 2014, Bric a écrit :

            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" :


        I think you should look at --libs since the error is about
        linking.


    $ pkg-config --libs pango
    -L/usr/local/lib -lpango-1.0 -lgobject-2.0 -lglib-2.0

    $ pkg-config --libs "pango pangocairo"
    -L/usr/local/lib -lpangocairo-1.0 -lpango-1.0 -lcairo
    -lgobject-2.0 -lglib-2.0

    ça ne change pas grand chose (en ce qui concerne ma compréhension)

    that doesn't give me a clue




    _______________________________________________
    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]