对于解决方案,我在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-*
请让我摆脱这个。提前致谢。
您可能只需要包含glib.h
以下内容的-dev软件包:libglib2.0-dev
sudo apt-get install libglib2.0-dev
当您仅知道标题文件名时,http://packages.ubuntu.com及其“搜索软件包内容”表单可以帮助查找此类开发软件包。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句