Compiling gtk for static linking
- From: Johan Ersvik <jersvik fastmail fm>
- To: gtk-list gnome org
- Subject: Compiling gtk for static linking
- Date: Fri, 24 Sep 2004 17:35:03 +0200
Hi,
I wanted to compile a static gtk+ library so I tried compiling glib,
atk, pango and gtk+ with
"./configure --prefix=/home/johan/Devel --enable-static
--disable-modules --enable-explicit-deps
--with-included-loaders=png,jpeg && make && make install",
but the gtk build fails when linking gtk-query-immodules-2.0. Error
output pasted below. Am I misusing/not using some critical flag? I do
have LD_LIBRARY_PATH set to "/home/johan/Devel/lib" and PKG_CONFIG_PATH
to "/home/johan/Devel/lib/pkgconfig".
Thanks,
Johan
Error output:
...
make[4]: Entering directory `/home/johan/cvs/gnome2/gtk+/gtk'
/bin/sh ../libtool --mode=link gcc -g -O2 -g -Wall -o
gtk-query-immodules-2.0 queryimmodules.o libgtk-x11-2.0.la
../gdk-pixbuf/libgdk_pixbuf-2.0.la ../gdk/libgdk-x11-2.0.la
gcc -g -O2 -g -Wall -o .libs/gtk-query-immodules-2.0 queryimmodules.o
./.libs/libgtk-x11-2.0.so -L/home/johan/Devel//lib
/home/johan/cvs/gnome2/gtk+/gdk/.libs/libgdk-x11-2.0.so -L/usr/X11R6/lib
-L/usr//lib /home/johan/Devel//lib/libatk-1.0.so
../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so ../gdk/.libs/libgdk-x11-2.0.so
-lXrandr -lXinerama -lXfixes -lXcursor -lXext
/home/johan/Devel//lib/libpangoxft-1.0.so
/home/johan/Devel//lib/libpangoft2-1.0.so /usr/lib/libexpat.so -lXft
/usr/lib/libfreetype.so -lXrender /usr/lib/libfontconfig.so
/home/johan/Devel//lib/libpangox-1.0.so -lX11
/home/johan/Devel//lib/libpango-1.0.so /usr//lib/libgobject-2.0.so
/usr//lib/libgmodule-2.0.so /usr//lib/libglib-2.0.so
/home/johan/cvs/gnome2/gtk+/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so
/home/johan/Devel//lib/libgmodule-2.0.so -ldl
/home/johan/Devel//lib/libgobject-2.0.so
/home/johan/Devel//lib/libglib-2.0.so -ltiff /usr/lib/libjpeg.so -lpng12
-lz -lm -Wl,--rpath -Wl,/home/johan/Devel//lib -Wl,--rpath -Wl,/usr//lib
/home/johan/cvs/gnome2/gtk+/gdk/.libs/libgdk-x11-2.0.so: undefined
reference to `g_option_context_set_main_group'
./.libs/libgtk-x11-2.0.so: undefined reference to
`g_option_group_set_parse_hooks'
./.libs/libgtk-x11-2.0.so: undefined reference to
`g_option_context_set_help_enabled'
./.libs/libgtk-x11-2.0.so: undefined reference to
`g_option_context_parse'
./.libs/libgtk-x11-2.0.so: undefined reference to
`g_option_context_add_group'
./.libs/libgtk-x11-2.0.so: undefined reference to
`g_option_context_set_ignore_unknown_options'
./.libs/libgtk-x11-2.0.so: undefined reference to
`g_option_group_set_translation_domain'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_get_user_data_dir'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_option_group_new'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_option_context_new'
./.libs/libgtk-x11-2.0.so: undefined reference to
`g_get_system_data_dirs'
./.libs/libgtk-x11-2.0.so: undefined reference to
`g_option_context_free'
./.libs/libgtk-x11-2.0.so: undefined reference to
`g_option_context_add_main_entries'
./.libs/libgtk-x11-2.0.so: undefined reference to
`g_option_group_add_entries'
./.libs/libgtk-x11-2.0.so: undefined reference to
`g_return_if_fail_warning'
collect2: ld returned 1 exit status
make[4]: *** [gtk-query-immodules-2.0] Error 1
make[4]: Leaving directory `/home/johan/cvs/gnome2/gtk+/gtk'
...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]