Re: [gtkmm] Static Compilation...



I did, nothing in Gtk+ list, it's strange, ln finds:
-lgtkmm-2.0
-lgdkmm-2.0
-latkmm-1.0
-lsigc-1.2
-lm
-ldl

and fails to find:
-lgtk-x11-2.0
-lpangomm-1.0
-lglibmm-2.0
-lgdk-x11-2.0
-latk-1.0
-lgdk_pixbuf-2.0 
-lpangoxft-1.0
-lpangox-1.0
-lgobject-2.0
-lgmodule-2.0
-lglib-2.0

that's all for pkg-config gtkmm-2.0 --libs
for gtk+-2.0 I have:
-lgtk-x11-2.0
-lgdk-x11-2.0
-latk-1.0
-lgdk_pixbuf-2.0
-ln
-lpangoxft-1.0
-lpangox-1.0
-lpango-1.0
-lgobject-2.0
-lgmodule-2.0
-ldl
-lglib-2.0

and I noticed that I CAN'T compile gtk+-2.0 statically, ln fails to find the same files that whit gtkmm-2.0, however I can compile gtk apps statically, does anybody know if the rpm's form redhat 8.0 (gtk2-2.0.6-8.i386.rpm and gtk2-devel-2.0.6-8.i386.rpm) has the static libraries? tell me if I'm wrong but I think I'm missing the static libraries from gtk+-2.0 if you recognize any libs in my listing that are't in gtk+-2.0 please tell me, I'm about to install gtk+-2.0 from source... rpms are giving me a bad day...

On Fri, Feb 28, 2003 at 08:23:27AM +0100, Murray Cumming Comneon com wrote:
> Do search the archives - you are not the first to try this.
> 
> However, I thought it was not so simple to compile a GTK+ app statically
> because it loads the GDK implementation (e.g. X11 or Win32) library at
> runtime. I could be wrong. I am surprised that you were able to use a
> statically compiled GTK+ app. It might be worth searching the GTK+ list too.
> 
> 
> Murray Cumming
> murrayc usa net
> www.murrayc.com 
> 
> > -----Original Message-----
> > From: paco pty ods org [mailto:paco pty ods org] 
> > Sent: Freitag, 28. Februar 2003 04:56
> > To: gtkmm-list gnome org
> > Subject: [gtkmm] Static Compilation...
> > 
> > 
> > 
> > Hi, I just installed gtkmm and libsigc with /usr prefix like 
> > my gtk/gtk+/gtk2, and nothing... I'm getting the same error:
> > 
> > g++ -o main main.cc `ls *.o` `pkg-config gtkmm-2.0 --libs --cflags` 
> > g++ -static
> > 
> > /usr/bin/ld: cannot find -lgtk-x11-2.0
> > collect2: ld returned 1 exit status
> > 
> > tell me if I'm wrong but libgtk-x11-2.* is in gtk2 packages 
> > right? and I have installed XFree86-devel-4.2.0-72.i386.rpm  
> > gtk2-devel-2.0.6-8.i386.rpm XFree86-libs-4.2.0-72.i386.rpm   
> > gtk2-engines-1.9.0-4.i386.rpm gtk2-2.0.6-8.i386.rpm
> > 
> > I don't know where are the static libs for libgtk-x11-2.0 
> > however I can compile statics app in gtk/gtk2 but none of 
> > them uses libgtk-x11 at least they are not listed in pkg-config  
> > 
> > _______________________________________________
> > gtkmm-list mailing list
> > gtkmm-list gnome org http://mail.gnome.org/mailman/listinfo/gtkmm-list
> > 
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list



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