当前位置: 技术问答>linux和unix
这个报错是什么意思呢? 大虾们帮帮 要崩溃了噢!!!!
来源: 互联网 发布时间:2016-07-18
本文导语: kooko@kooko-desktop:~/Diveo_NVSS_SDK/Diveo_NVSS_SDK_and_Demo_ver_1.0/LinuxDemoSource$ make gcc -O2 -g -Wall -I.. -I/usr/include -I/usr/include/dvoAVdecode -I/usr/include/SDL -D_REENTRANT -L/usr/lib -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/gli...
kooko@kooko-desktop:~/Diveo_NVSS_SDK/Diveo_NVSS_SDK_and_Demo_ver_1.0/LinuxDemoSource$ make
gcc -O2 -g -Wall -I..
-I/usr/include -I/usr/include/dvoAVdecode -I/usr/include/SDL -D_REENTRANT -L/usr/lib
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2
-c -o main.o main.c
In file included from /usr/include/gtk-2.0/gdk/gdkcairo.h:23,
from /usr/include/gtk-2.0/gdk/gdk.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from main.c:19:
/usr/include/gtk-2.0/gdk/gdkcolor.h:30:19: error: cairo.h: No such file or directory
In file included from /usr/include/gtk-2.0/gdk/gdkcairo.h:25,
from /usr/include/gtk-2.0/gdk/gdk.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from main.c:19:
make以后这样报错 那个In file included from是说明我少文件吗? 我机器安装了Gtk2.0的 那些23 30 31. 25 30 31 19的报错到底是什么意思呢?
gcc -O2 -g -Wall -I..
-I/usr/include -I/usr/include/dvoAVdecode -I/usr/include/SDL -D_REENTRANT -L/usr/lib
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2
-c -o main.o main.c
In file included from /usr/include/gtk-2.0/gdk/gdkcairo.h:23,
from /usr/include/gtk-2.0/gdk/gdk.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from main.c:19:
/usr/include/gtk-2.0/gdk/gdkcolor.h:30:19: error: cairo.h: No such file or directory
In file included from /usr/include/gtk-2.0/gdk/gdkcairo.h:25,
from /usr/include/gtk-2.0/gdk/gdk.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from main.c:19:
make以后这样报错 那个In file included from是说明我少文件吗? 我机器安装了Gtk2.0的 那些23 30 31. 25 30 31 19的报错到底是什么意思呢?
|
先make SDK然后再make你的app
|
error: cairo.h: No such file or directory //这个是错误提示,
这个头文件被包含在如下文件中
In file included from /usr/include/gtk-2.0/gdk/gdkcairo.h:25,
from /usr/include/gtk-2.0/gdk/gdk.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from main.c:19:
这个头文件被包含在如下文件中
In file included from /usr/include/gtk-2.0/gdk/gdkcairo.h:25,
from /usr/include/gtk-2.0/gdk/gdk.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from main.c:19:
|
-I/usr/include/cairo
加一行这个,可能是编译器只在include目录下找但没有进行cairo目录
加一行这个,可能是编译器只在include目录下找但没有进行cairo目录
|
cairo.h: No such file or directory
没有cairo.h
没有cairo.h
|
You should install cairo library first!
|
有可能是安装库的时候不完全造成的,头文件的路径没有添加到环境变量中!