当前位置: 技术问答>linux和unix
安装gtk出错
来源: 互联网 发布时间:2016-06-28
本文导语: #./configure --enable-static checking for pkg-config... no checking for BASE_DEPENDENCIES... configure: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the fu...
#./configure --enable-static
checking for pkg-config... no
checking for BASE_DEPENDENCIES... configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.
Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
如何解决?
checking for pkg-config... no
checking for BASE_DEPENDENCIES... configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.
Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
如何解决?
|
gtk还会依赖pango,cario,atk和glib这些安装包的,必须要全部编译安装,然后设置PKG_CONFIG_PATH和LD_LIBRARY_PATH。
|
安装pkg-conf