pkg-config --cflags gobject-2.0返回错误的路径

时间:2019-10-30 02:28:24

标签: glib pkg-config

起点是~/Downloads/emacs-26.3 $ sudo make,抱怨缺少glib标头,这导致我去做$pkg-config --cflags gobject-2.0,其输出包括与使用{{1}找到的文件夹不对应的文件夹}。问题是,如何才能$ find . -name glib*进行自我修复?这是在Linux Mint 19上。

pkg-config
~/Downloads/emacs-26.3 $ sudo make
make -C lib all
make[1]: Entering directory '/home/er/Downloads/emacs-26.3/lib'
[truncated]
  CC       xsettings.o
In file included from xsettings.c:44:0:
/usr/include/gconf/2/gconf/gconf-client.h:24:10: fatal error: glib-object.h: No such file or directory
 #include <glib-object.h>
          ^~~~~~~~~~~~~~~
compilation terminated.
Makefile:377: recipe for target 'xsettings.o' failed
make[1]: *** [xsettings.o] Error 1
make[1]: Leaving directory '/home/er/Downloads/emacs-26.3/src'
Makefile:421: recipe for target 'src' failed
make: *** [src] Error 2
~/Downloads/emacs-26.3 $ pkg-config --cflags gobject-2.0
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include

0 个答案:

没有答案