hardcoded dependencies problem with building/installing GTK+

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

 



Hi,

I downloaded GTK2.16.4 and 10+ other packages that GTK 2.16.4 depends on. And did the following to make my application use GTK2.16:

1. "configure --prefix=my_build_dir"
2. "make"
3. "make install".
4. cp my_build_dir/lib my_install_dir/lib
5. set the environment variable LD_LIBRARY_PATH to my_install_dir/lib before running my application.

My application runs fine so long as my_build_dir/ is still accessible. On a host where my_build_dir is not accessible, the application runs into problems.

One of the problem is with my_build_dir/lib being written into the library as RPATH. I fixed that by patching the libtool according to http://wiki.debian.org/RpathIssue.

But I'm now facing with another problem. The application would try to look for "my_build_dir/etc/gtk-2.0/gdk-pixbuf.loaders" and "my_build_dir/etc/pango/pango.modules" and complains when not found.


(.:8307): GdkPixbuf-WARNING **: Cannot open pixbuf loader module file '<my_build_dir>/etc/gtk-2.0/gdk-pixbuf.loaders': No such file or directory

(.:8307): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(.:8307): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(.:8307): Gtk-CRITICAL **: gtk_window_resize: assertion `width > 0' failed

(Surf:8307): Pango-CRITICAL **: No modules found:
No builtin or dynamically loaded modules were found.
PangoFc will not work correctly.
This probably means there was an error in the creation of:
  '<my_build_dir>/etc/pango/pango.modules'
You should create this file by running:
  pango-querymodules > '/<my_build_dir>/etc/pango/pango.modules'
Fontconfig error: Cannot load default config file

(Surf:8307): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='common'
How to prevent my_build_dir from being written into the library? In particular, how could I make my application look for the gdk-pixbuf.loaders and pango.modules in my_install_dir instead of my_build_dir?

Thanks
Maggie
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux