Results 1 to 2 of 2
I am trying to actually compile glade3-3.4 so I need to compile loads of other things including glib and gtk+. I have compiled and installed glib-2.14.0 and then trying to ...
- 10-07-2007 #1
Trying to compile gtk+ but no success cause glib. Can anybody help?
I am trying to actually compile glade3-3.4 so I need to compile loads of other things including glib and gtk+. I have compiled and installed glib-2.14.0 and then trying to configure gtk+.
But it says-
Then I tried to check it by hand-Code:checking pkg-config is at least version 0.7... yes checking for GLIB - version >= 2.13.5... *** 'pkg-config --modversion glib-2.0' returned 2.14.0, but GLIB (2.12.11) *** was found! If pkg-config was correct, then it is best *** to remove the old version of GLib. You may also be able to fix the error *** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing *** /etc/ld.so.conf. Make sure you have run ldconfig if that is *** required on your system. *** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH *** to point to the correct configuration files no configure: error: *** GLIB 2.13.5 or better is required. The latest version of
I have also had a try with glib-2.14.1 but no gain. Seems those sources are actually 2.12.11 or my wrong! Can any one help? I am feeling desperate..Code:[root@localhost src]# cat glib-version.c #include <glib.h> #include <stdio.h> int main () { printf ("%d %d %d\n",glib_major_version,glib_minor_version,glib_micro_version); return 0; } [root@localhost src]# FLAGS=`pkg-config glib-2.0 --cflags --libs` [root@localhost src]# echo $FLAGS -I/gtkmm/include/glib-2.0 -I/gtkmm/lib/glib-2.0/include -L/gtkmm/lib -lglib-2.0 [root@localhost src]# cc -o glib-version glib-version.c $FLAGS [root@localhost src]# ./glib-version 2 12 11 [root@localhost src]#
- 10-07-2007 #2
Glib should be installed in your system ! so there is no need to compile it , because if you want to do (or you want to have a newer version) ,you have to have glib installed .
I believe you compiled glib with no prefix, then the installed directory is /usr/local and the default installed glib is /usr , the pkg-config still uses the installed one .
if you want to override your version of glib you have to configure it like this :
./configure --prefix=/usr .
if you want to do, fisrt try to uninstall your compiled package from source (make uninstall if you still have the source ).
Don't try to uninstall glib wish comes by your distro otherwise you'll not be able to compile any other package .
at any time you can do pkg-config --modversion glib-2.0
Hope this help.
Regards.Linux is not only an operating system, it's a philosophy.
Archost.


Reply With Quote