glib.h使错误。致命错误:glib.h:没有这样的文件或目录

哈基拉特·塞西(Harkirat Sethi)

对于解决方案,我在Internet上进行了搜索。我添加的命令的输出
pkg-config --cflags glib-2.0-I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include到像生成文件GCC = -I的/ usr /包括/油嘴-2.0 -I / usr / lib中/ I386-Linux的GNU /油嘴-2.0 /包括-lglib-2.0

but still an error glib.h: No such file or directory

这是我的文件

ROOTDIR = $(CURDIR)
#-I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include  include makefiles/platforms.mk

ZLIBDIRS = zlibrary/core zlibrary/text zlibrary/ui APPDIRS = fbreader  GCC = -I/usr/include/glib-2.0
-I/usr/lib/i386-linux-gnu/glib-2.0/include  -lglib-2.0
#gcc -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include
#gcc pkg-config --cflags --libs glib-2.0  all:  @for dir in $(ZLIBDIRS) $(APPDIRS); do \        if [ -d $$dir ]; then \             cd $$dir; \             if ! $(MAKE); then \
                exit 1; \           fi; \           cd $(ROOTDIR); \        fi; \   done;

install: all do_install

do_install:     @for dir in $(ZLIBDIRS) $(APPDIRS); do \        if [ -d $$dir ]; then \             cd $$dir; make $@; cd $(ROOTDIR); \         fi; \   done

do_install_dev:     @for dir in $(ZLIBDIRS); do \       if [ -d $$dir ]; then \             cd $$dir; make $@; cd $(ROOTDIR); \         fi; \   done

clean:  @for dir in $(ZLIBDIRS) $(APPDIRS); do \        if [ -d $$dir ]; then \             cd $$dir; make $@; cd $(ROOTDIR); \         fi; \   done

distclean: clean    @rm -rvf *.tgz *.tar.gz *.ipk *.deb *.prc *.exe
*.log *.dsc *.changes *.rpm     @rm -rf tmp packages packages-nonGPL fbreader-*

请让我摆脱这个。提前致谢。

西尔文·皮诺(Sylvain Pineau)

您可能只需要包含glib.h以下内容的-dev软件包libglib2.0-dev

sudo apt-get install libglib2.0-dev

当您仅知道标题文件名时,http://packages.ubuntu.com及其“搜索软件包内容”表单可以帮助查找此类开发软件包。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

arm-linux-gnu-gcc致命错误:stdio.h:没有这样的文件或目录

致命错误:cuda.h:没有这样的文件或目录

致命错误:libudev.h:没有这样的文件或目录

致命错误:Python.h:没有这样的文件或目录

WLroots,致命错误:xdg-shell-protocol.h:没有这样的文件或目录

致命错误:Rcpp.h:没有这样的文件或目录

编译OpenCV时出错,致命错误:stdlib.h:没有这样的文件或目录

错误生成:致命错误:pcre.h:没有这样的文件或目录

GCC致命错误:stdio.h:没有这样的文件或目录

致命错误:mpi.h:没有这样的文件或目录#include <mpi.h>

python buildpack-致命错误:sasl / sasl.h:没有这样的文件或目录

C ++ boost / multiprecision:致命错误:mpfr.h:没有这样的文件或目录

Yocto meta-toolchain致命错误:stdio.h:没有这样的文件或目录

Ubuntu 16.04:致命错误:X11 / Xlib.h:没有这样的文件或目录

Makefile:致命错误:jni.h:没有这样的文件或目录

soci给出致命错误:mysql.h:没有这样的文件或目录

致命错误:openssl / sha.h:没有这样的文件或目录

致命错误:linux / delay.h:没有这样的文件或目录

jinclude.h:20:55:致命错误:jconfig.h:没有这样的文件或目录

os_defines.h:致命错误:features.h没有这样的文件或目录

致命错误:Box2D.h:没有这样的文件或目录

C ++ /程序编译致命错误:QtGui / qwidget.h:没有这样的文件或目录

致命错误:netlink / genl / genl.h:没有这样的文件或目录

致命错误:ext / type_traits.h:没有这样的文件或目录

来自Fortran的C代码:致命错误:stdlib.h:没有这样的文件或目录

在Linux上安装nloptr-致命错误:nlopt.h:没有这样的文件或目录

致命错误:ui_about.h:没有这样的文件或目录

致命错误:openssl/err.h:没有这样的文件或目录 - Python

C++ 错误消息:致命错误:wchar.h:没有这样的文件或目录