LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   glib-2.4.0 compile error (https://www.linuxquestions.org/questions/linux-software-2/glib-2-4-0-compile-error-160223/)

trollman 03-20-2004 11:16 AM

glib-2.4.0 compile error
 
Hello, im trying to upgrade to GTK+2.4 and while i am compiling glib i get the following error:

Code:

gconvert.c:47:2: #error GNU libiconv not in use but included iconv.h is from libiconv
make[3]: *** [gconvert.lo] Error 1
make[3]: Leaving directory `/home/trollman/glib-2.4.0/glib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/trollman/glib-2.4.0/glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/trollman/glib-2.4.0'
make: *** [all] Error 2

i installed libiconv, but that didnt help at all. how can i fix this error? Thanks for the help

Karl

trollman 03-20-2004 12:07 PM

i was able to fix that error with the following command,
Code:

./configure --with-libiconv
(I also learned some german too ):)

I am now getting the following error when i try to complile atk:

Code:

checking for GLIB - version >= 2.0.0...
*** 'pkg-config --modversion glib-2.0' returned 2.4.0, but GLIB (2.2.3)
*** 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.0.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.

i did an export to /usr/lib/glib-2.0 for both the PKG_CONFIG_PATH & LD_LIBRARY_PATH, but i still ge this error. Any ideas?

metallikop 04-09-2004 09:37 AM

I had to download glib-2.3 (2.2 in your case) and ./configure && make uninstall, then glib-2.4 compiled.


All times are GMT -5. The time now is 06:13 AM.