Re: Static compilation of hello world



I'am not very sure. But `pkg-config --libs --cflags gtk+-2.0` makes
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -Wl,--export-dynamic
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0
-lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 in my
system.
I think this is a link time error. Maybe --export-dynamic parameter should
not be used here.
But when I removed this parameter, more errors occured.
/usr/bin/ld: cannot find -lgtk-x11-2.0
I was confused.

This happens because you have the .so.0 libraries but not the static ones 
(.a). Try to recompile glib, pango, atk and gtk with 
./configure --enable-static

and then it will find all the static libraries. This is what i have done, but 
I have found the errors I commented in the previous mail.


-- 
Patricia Balbastre Betoret
Departamento de Informatica de Sistemas y Computadores
Camino de Vera, 14, E-46071, Valencia, Spain
Tel: +34 96 387 70 00 Ext 75707
Fax: +34 96 387 75 79
http://ttt.upv.es/~patbalb1
-----------------------------
http://www.fsf.org/philosophy/no-word-attachments.es.html




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