当前位置: 技术问答>linux和unix
编译安装libglade出错,求大神
来源: 互联网 发布时间:2016-11-23
本文导语: linux下装linphone提示要求libglade>=2.4.0,编译安装libglad,configure过了,make后提出出错: 2]: Entering directory `/linphonebuild/libglade-2.4.0/glade' if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN="libglade" -I...
linux下装linphone提示要求libglade>=2.4.0,编译安装libglad,configure过了,make后提出出错:
2]: Entering directory `/linphonebuild/libglade-2.4.0/glade'
if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN="libglade" -I.. -I/usr/include/libxml2 -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGLADE_LIBDIR=""/usr/lib"" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -g -O2 -Wall -std=c9x -MT glade-init.lo -MD -MP -MF ".deps/glade-init.Tpo" -c -o glade-init.lo glade-init.c;
then mv -f ".deps/glade-init.Tpo" ".deps/glade-init.Plo"; else rm -f ".deps/glade-init.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN="libglade" -I.. -I/usr/include/libxml2 -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGLADE_LIBDIR="/usr/lib" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -g -O2 -Wall -std=c9x -MT glade-init.lo -MD -MP -MF .deps/glade-init.Tpo -c glade-init.c -fPIC -DPIC -o .libs/glade-init.o
In file included from glade-init.c:34:
glade-private.h:33: error: expected specifier-qualifier-list before 'GtkTooltips'
make[2]: *** [glade-init.lo] 错误 1
make[2]: Leaving directory `/linphonebuild/libglade-2.4.0/glade'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/linphonebuild/libglade-2.4.0'
make: *** [all] 错误 2
我看了下libglade-2.4.0/glade文件夹下的glade-init.c文件34行是:
#include "glade-private.h"
然后看glade-private.h文件:
#ifndef GLADE_PRIVATE_H
#define GLADE_PRIVATE_H
#include
#include
#include
#include
#include
struct _GladeXMLPrivate {
GladeInterface *tree; /* the tree for this GladeXML */
GtkTooltips *tooltips; /* if not NULL, holds all tooltip info */ 这就是出错的34行
请问怎么解绝,就算在#include头文件之后,加上:
#define GtkTooltips
也还是会报错。报的错还是那一行,变成了error: expected specifier-qualifier-list before '*' token
求高人解
2]: Entering directory `/linphonebuild/libglade-2.4.0/glade'
if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN="libglade" -I.. -I/usr/include/libxml2 -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGLADE_LIBDIR=""/usr/lib"" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -g -O2 -Wall -std=c9x -MT glade-init.lo -MD -MP -MF ".deps/glade-init.Tpo" -c -o glade-init.lo glade-init.c;
then mv -f ".deps/glade-init.Tpo" ".deps/glade-init.Plo"; else rm -f ".deps/glade-init.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN="libglade" -I.. -I/usr/include/libxml2 -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGLADE_LIBDIR="/usr/lib" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -g -O2 -Wall -std=c9x -MT glade-init.lo -MD -MP -MF .deps/glade-init.Tpo -c glade-init.c -fPIC -DPIC -o .libs/glade-init.o
In file included from glade-init.c:34:
glade-private.h:33: error: expected specifier-qualifier-list before 'GtkTooltips'
make[2]: *** [glade-init.lo] 错误 1
make[2]: Leaving directory `/linphonebuild/libglade-2.4.0/glade'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/linphonebuild/libglade-2.4.0'
make: *** [all] 错误 2
我看了下libglade-2.4.0/glade文件夹下的glade-init.c文件34行是:
#include "glade-private.h"
然后看glade-private.h文件:
#ifndef GLADE_PRIVATE_H
#define GLADE_PRIVATE_H
#include
#include
#include
#include
#include
struct _GladeXMLPrivate {
GladeInterface *tree; /* the tree for this GladeXML */
GtkTooltips *tooltips; /* if not NULL, holds all tooltip info */ 这就是出错的34行
请问怎么解绝,就算在#include头文件之后,加上:
#define GtkTooltips
也还是会报错。报的错还是那一行,变成了error: expected specifier-qualifier-list before '*' token
求高人解
|
你搜一下看看有没有GtkTooltips结构体,
也有可能是没有GladeInterface结构体
你自己找找吧
也有可能是没有GladeInterface结构体
你自己找找吧