compiling gtkglext/gtk/pango apps

Doug Schwer doug.schwer at gmail.com
Sun Nov 26 15:00:03 UTC 2006


I have a small application that uses OpenGL/gtkglext/gtk/pango
libraries (it's a plotting program), that compiled fine under Fedora
Core 5.  When I try compiling under Fedora Core 6, it compiles fine,
but gives several cairo related errors when it tries to link.  The
linking command is:

gcc -o test.e -g -O3 -Wall -I/home/doug/x86_64/include
-DSYS_LITTLE_ENDIAN main_test.o -L/home/doug/x86_64/lib -ldasscene-1.1
-ldasdata-1.2 -ldasutil-2.2 `pkg-config --libs gtkglext-1.0 cairo
pangoft2 pango pangox pangoxft` -lGL -lGLU  -lm

and it gives several undefined reference errors such as:

/usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libgtk-x11-2.0.so:
undefined reference to `cairo_surface_get_type'

All the undefined references refer to cairo functions.  I added in
`pkg-config --libs cairo-ft cairo-pdf cairo-ps cairo-xlib
cairo-xlib-xrender cairo` to link to the Cairo libraries, but this
doesn't seem to help the situation.  Any suggestions for why this is
happening.  It worked fine under Fedora Core 5.  Thanks.

Doug




More information about the users mailing list