/usr/include/glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: No such file or directory

cc -DDEBUG -mtune=core2 -O2 \
-onvideo nvideo.c \
-I/usr/include/atk-1.0 \
-I/usr/include/cairo \
-I/usr/include/gdk-pixbuf-2.0 \
-I/usr/include/glib-2.0 \
-I/usr/include/gtk-3.0 \
-I/usr/include/pango-1.0 \
-I/usr/include/libxml2 \
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include \
-lpthread \
-lgtk-3 -lgobject-2.0 -lgthread-2.0 \
-lxml2
In file included from /usr/include/glib-2.0/glib/galloca.h:34:0,
from /usr/include/glib-2.0/glib.h:32,
from /usr/include/gtk-3.0/gdk/gdkconfig.h:13,
from /usr/include/gtk-3.0/gdk/gdk.h:32,
from /usr/include/gtk-3.0/gtk/gtk.h:32,
from nvideo.c:11:
/usr/include/glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: No such file or directory
compilation terminated.
make: *** [edit] Error 1

因为之前已经安装了gtk开发包,所以理论上不应该出现找不到.h文件的问题。最后发现问题出在-I/usr/lib/x86_64-linux-gnu/glib-2.0/include参数上。因为之前使用的64位,所以这个位置没有问题,但是现在我用的是32位系统,所以导致这个路径指错了,增加-I/usr/lib/i386-linux-gnu/glib-2.0/include 即可。

实际使用应该使用pkg-config来配置这个路径的,但是我想手工去完成这个事情,所以导致了这个问题。还弄得满世界去找是不是少装了哪个开发包~~:)

原文地址:https://www.cnblogs.com/xiaoleiel/p/8295842.html

时间: 2024-08-05 20:11:01

/usr/include/glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: No such file or directory的相关文章

plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory

装一台新服务器环境的时候,装uwsgi报错: plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory #include <Python.h> 查了一下解决办法: yum install python-devel.x86_64   之后再运行安装,问题解决.

src/core/ngx_regex.h:15:18: fatal error: pcre.h: No such file or directory

make nginx报错 解决方案:apt-get install libpcre3-dev

编译Busybox时,出现错误fatal error: curses.h: No such file or directory

1 scripts/kconfig/mconf.c: In function ‘exec_conf’: 2 scripts/kconfig/mconf.c:481:2: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result] 3 pipe(pipefd); 4 ^ 5 SHIPPED scripts/kconfig/zconf.tab.c 6 SH

fatal error: pcre.h: No such file or directory

/usr/include/php5/ext/pcre/php_pcre.h:29:18: fatal error: pcre.h: No such file or directory apt-get update apt-get install libpcre3 libpcre3-dev

fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add &#39;#include &quot;stdafx.h&quot;&#39; to your source?

解决方法:设置cpp文件的Precompiled Header属性设置为Not Using Precompiled Headers fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? 原文地址:https://www.cnblogs.com/MakeView66

安装MySQLdb模块遭遇&quot;fatal error: my_config.h: No such file or directory&quot;的处理

Issue       I encountered an error when I run the python script which need to import the module of "MySQLdb".The error shows like this: [[email protected] script]# python Xtrabackup.py Traceback (most recent call last): File "backup.py"

“fatal error: hdf5.h: 没有那个文件或目录”解决方法

問題一: Installing Caffe without CUDA: fatal error: cublas_v2.h No such file: 在Makefile.config中修改,將CPU_ONLY := 1打開. 問題二:“fatal error: hdf5.h: 没有那个文件或目录”解决方法 参考自http://blog.csdn.net/hongye000000/article/details/51043913 Step 1 在Makefile.config文件的第85行,添加/

fatal error: Python.h: No such file or directory 解决

[常见错误] fatal error: Python.h: No such file or directory 环境场景 系统: Parrot Linux软件: 系统python默认版本2.7 PyCharm默认版本Python3.5场景: Build pycrypto-2.6.1 失败提示: building 'Crypto.PublicKey._fastmath' extension x86_64-linux-gnu-gcc -pthread -fwrapv -Wall -Wstrict-p

Mac安装Mysql-python _mysql.c:44:10: fatal error: &#39;my_config.h&#39; file not found

解决步骤 brew install mysql brew unlink mysql brew install mysql-connector-c sed -i -e 's/libs="$libs -l "/libs="$libs -lmysqlclient -lssl -lcrypto"/g' /usr/local/Cellar/mysql/8.0.13/bin/mysql_config //后面的路径就是你 mysql 的安装路径,这个尤为重要,就是路径问题报错的