Extension Development :: pkgconfig



When I try to compile using the cairo-1.2 extension make fails compiling the libexif-gtk library with the message:

Code Sample
gcc -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -o .libs/test-libexif-gtk test-libexif-gtk.o  ../libexif-gtk/.libs/libexif-gtk.so -L/opt/gtkam/lib -L/opt/cairo-1.2/lib -L/opt/gtk+-2.10/lib /opt/gtk+-2.10/lib/libgtk-x11-2.0.so /opt/gtk+-2.10/lib/libgdk-x11-2.0.so /opt/gtk+-2.10/lib/libatk-1.0.so /opt/gtk+-2.10/lib/libgdk_pixbuf-2.0.so /opt/gtk+-2.10/lib/libpangocairo-1.0.so /opt/gtk+-2.10/lib/libpango-1.0.so /opt/cairo-1.2/lib/libcairo.so /opt/gtk+-2.10/lib/libgobject-2.0.so /opt/gtk+-2.10/lib/libgmodule-2.0.so -ldl /opt/gtk+-2.10/lib/libglib-2.0.so /opt/gtkam/lib/libexif.so -lm -Wl,--rpath -Wl,/opt/gtkam/lib
/opt/cairo-1.2/lib/libcairo.so: undefined reference to `FT_GlyphSlot_Embolden'
collect2: ld returned 1 exit status
make[2]: *** [test-libexif-gtk] Error 1
make[2]: Leaving directory `/mnt/hdb/libexif-gtk-0.3.5/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/hdb/libexif-gtk-0.3.5'
make: *** [all] Error 2
dsl@box:/mnt/hdb/libexif-gtk-0.3.5$


I had encountered this before your explanation of your compiling method. I have checked this under 3.11 using a base frugal installation and only cairo1.2, gtk+-2.10, xorg72 * compile3.3.5. I redid the symlinks in /opt/bin to point to the fc & freetype files in cairo.

Quote
/opt/cairo-1.2/lib/libcairo.so: undefined reference to `FT_GlyphSlot_Embolden'
collect2: ld returned 1 exit status

- I believe this is because libcairo is trying to use the freetype/fontconfig libs in the base dsl. You could try either:

1. Move "/opt/cairo-1.2/lib" above "/usr/lib" in /etc/ld.so.conf and then "sudo ldconfig"

or

2. [Brute Force method] delete the freetype/fontconfig libs in /usr/lib then "sudo ldconfig"

..and then try make again.

BTW, once compiled, the gtkam *uci I made starts up without touching /etc/ld.so.conf or deleting the freetype/fontconfig libs in /usr/lib

OK,

Finally got it compiled. Then got the error:

Code Sample
dsl@box:/opt/gtkam/bin$ gtkam
gtkam: relocation error: /opt/gtk+-2.10/lib/libgobject-2.0.so.0: undefined symbol: g_regex_unref

when I ran it. Sorted this by moving /opt/gtk+-2.10/lib above /urs/lib in ld.so.conf & running ldconfig.

Now to try a reboot......

does the same - still need to edit ld.so.conf

I had been starting gtkam with "LD_LIBRARY_PATH=/opt/gtkam/lib /opt/gtkam/bin/gtkam" and did not get this error, but you could try "LD_LIBRARY_PATH=/opt/gtkam/lib:/opt/gtk+-2.10/lib /opt/gtkam/bin/gtkam" or put symlinks to /opt/gtk+-2.10/lib/glib2* in /opt/gtkam/lib
Juanito - thanks for all the help. An update version of gtkam should be in testing soon - along with gnokii.
Next Page...
original here.