pkg-config and "glib-2.0 >= 2.16" not found

# wget http://ftp.gnome.org/pub/gnome/sources/glib/2.22/glib-2.22.5.tar.gz

# tar xvfz glib-2.22.5.tar.gz 

# cd glib-2.22.5

# ./configure --prefix=/usr/local/glib-2.2

# make && make install

设置环境变量:

export GLIB_CFLAGS="-I/usr/local/glib-2.2/include/glib-2.0"

export GLIB_LIBS="-L/usr/local/glib-2.2/lib/glib-2.0"

export GMODULE_CFLAGS="-I/usr/local/glib-2.2/include"

export GMODULE_LIBS="-L/usr/local/glib-2.2/lib"

export GTHREAD_CFLAGS="-I/usr/local/glib-2.2/include"

export GTHREAD_LIBS="-L/usr/local/glib-2.2/lib"

特别强调,GMODULE和GTHREAD的相关变量必须设置,否则会遇到(gmodule-2.0 >= 2.16.0) were not met或(gthread-2.0 >= 2.16.0) were not met之类错误。

 

 

 

 

你可能感兴趣的:(linux)