Re: problems compiling gtk3

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

 



Where did you installed the dependencies?
You must set some environment variables, so it links with the correct *.so files:

BASE=$HOME/Build
export PATH=$BASE/bin:$PATH
export LD_LIBRARY_PATH=$BASE/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=$BASE/lib/pkgconfig:$PKG_CONFIG_PATH
export XDG_DATA_DIRS=$BASE/share:$XDG_DATA_DIRS

Ian L.

On Tue, Mar 15, 2011 at 5:21 PM, Josh Bialkowski <jbialk@xxxxxxx> wrote:
Hello, I'm having some trouble compiling gtk3 on ubuntu lucid. I've
successfully compiled and installed the following versions of the
pre-reqs from source:

glib-2.28.3
pango-1.28.3
atk-1.33.6

When I try to build gtk+-3.0.3, configure finishes without any errors or
warnings, but when I "make" it get's caught while making the tests:

Making all in tests
make[4]: Entering directory `/home/josh/Codes/c/gtk/gtk
+-3.0.3/gdk/tests'
 CCLD   gdk-color
/usr/local/lib/libgio-2.0.so: undefined reference to
`g_variant_get_bytestring_array'
/usr/local/lib/libgio-2.0.so: undefined reference to `g_source_get_time'
/usr/local/lib/libgio-2.0.so: undefined reference to
`g_cclosure_marshal_VOID__VARIANT'
../../gdk/.libs/libgdk-3.so: undefined reference to `g_list_free_full'
/usr/local/lib/libgio-2.0.so: undefined reference to
`g_variant_dup_bytestring_array'
/usr/local/lib/libgio-2.0.so: undefined reference to `g_dcgettext'
/usr/local/lib/libgio-2.0.so: undefined reference to
`g_signal_accumulator_first_wins'
---snip---

The problem seems to be with libio-2.0.so referencing some things so I
took a look at what that file was linked to

:~/Codes/c/gtk/gtk+-3.0.3$ ls -l /usr/local/lib/libgio*
-rwxr-xr-x 1 root root    1095 2011-03-15
14:17 /usr/local/lib/libgio-2.0.la
lrwxrwxrwx 1 root root      22 2011-03-15
14:17 /usr/local/lib/libgio-2.0.so -> libgio-2.0.so.0.2800.3
lrwxrwxrwx 1 root root      22 2011-03-15
14:17 /usr/local/lib/libgio-2.0.so.0 -> libgio-2.0.so.0.2800.3
-rwxr-xr-x 1 root root 4544706 2011-03-15
13:29 /usr/local/lib/libgio-2.0.so.0.2793.0
-rwxr-xr-x 1 root root 4476130 2011-03-15
14:17 /usr/local/lib/libgio-2.0.so.0.2800.3

and it looks like it's linked to the right thing (0.2800.3). Putting
some of the undefined symbols into google brings me to the docs for
glib.. but since the shared object file is a link the the shared object
that I just built, I'm not sure what the problem could be. Does anyone
recognize what the errors might be and what I could be doing wrong?

Thanks for any help.



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

_______________________________________________
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