Re: compile gtk static



Hi,

ViNiCiUs wrote:
to compile static using: gcc file.c -o file -static `pkg-config --cflags --libs gtk+-2.0`

and I have the error:
/usr/bin/ld: cannot find -lgtk-x11-2.0
collect2: ld returned 1 exit status

What I have to do to complite the program with all libraries static ?

When you build gtk, it does not build the static libraries by default. You need to either rebuild gtk with static libraries enabled, or download a set of static libs from somewhere.
If you check the list archives you'll see a few posts on this subject, for example:

 http://mail.gnome.org/archives/gtk-list/2004-February/msg00011.html

Unfortunately, searching the list archive seems to be broken :-(

John



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