LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1260|回复: 12

在FC2如何用Anjuta+Glade?

[复制链接]
发表于 2004-6-23 00:33:22 | 显示全部楼层 |阅读模式
我想学C++ GUI编程,但发现很多lib文档都没有,而且dependency很麻烦,有图为证!请问那位可以教教我?
已安装的文档:
[rolly@localhost rolly]$ rpm -qa anjuta*
anjuta-1.2.2-1.1.fc2.fr

[rolly@localhost rolly]$ rpm -qa glade*
glade2-2.5.0-1

[rolly@localhost rolly]$ rpm -qa gtk*
gtkhtml2-2.6.0-1
gtkspell-2.0.4-4.1
gtkhtml-1.1.9-8
gtk-engines-0.12-3.0.1
gtkhtml-devel-1.1.9-8
gtk2-2.4.0-1
gtk+-1.2.10-29.1.1
gtkam-0.1.11-2
gtkhtml3-3.0.10-1
gtk2-engines-2.2.0-5
gtksourceview-1.0.0-2
gtk-doc-1.2-1
gtk2-devel-2.4.0-1
gtk+-devel-1.2.10-29.1.1

[rolly@localhost rolly]$ rpm -qa lib*
libstdc++-3.3.3-7
libwvstreams-3.70-13.1
libxml2-python-2.6.8-1
libpcap-0.8.3-3
libtool-libs-1.5.6-1
libglade2-2.3.6-1
libgnomeui-2.6.0-3
libcap-1.10-18.1
libdv-0.102-1
libraw1394-0.10.1-1
librsvg2-2.6.4-2
libgal2-1.99.11-1
libghttp-1.0.9-9.1.1
libglade-0.17-13.2.1
libcap-devel-1.10-18.1
libvorbis-devel-1.0.1-2.1
libusb-devel-0.1.8-2.1
libgcj-devel-3.3.3-7
libtool-1.5.6-1
libtiff-devel-3.5.7-16.1
libole2-0.2.4-8.1
libxml-devel-1.8.17-10.1.1
libxslt-devel-1.1.5-1
libglade2-devel-2.3.6-1
libbonoboui-devel-2.6.0-1
libcroco-devel-0.4.0-4
libpng-1.2.5-5
libgcc-3.3.3-7
libacl-2.2.7-5
libtermcap-2.0.8-38
libuser-0.51.7-7.1.1
libgcj-3.3.3-7
libjpeg-6b-31.1
libgcj34-3.4.0-1
libtiff-3.5.7-16.1
libIDL-0.8.3-2.1
libbonobo-2.6.0-2
libogg-1.1-2.1
libxml-1.8.17-10.1.1
libao-0.8.4-2.1
libexif-0.5.12-2.1
libmusicbrainz-2.0.2-7.1
libungif-4.1.0-17.1
libgnomecups-0.1.6-7
libgsf-1.9.0-2
libgnomeprint22-2.6.0-1
libgal23-0.24-3.1
libgnomeprint15-0.37-9
libgtop2-2.5.2-2
libgail-gnome-1.0.2-3.1
libf2c-3.3.3-7
libogg-devel-1.1-2.1
libstdc++-devel-3.3.3-7
libtermcap-devel-2.0.8-38
libgcj34-devel-3.4.0-1
libjpeg-devel-6b-31.1
libmng-devel-1.0.4-5.1
libole2-devel-0.2.4-8.1
libgtop2-devel-2.5.2-2
libIDL-devel-0.8.3-2.1
libbonobo-devel-2.6.0-2
libgsf-devel-1.9.0-2
libgnomecanvas-devel-2.6.0-1
libgnomeui-devel-2.6.0-3
librsvg2-devel-2.6.4-2
libtabe-0.2.6-7.1
libgnome-2.6.0-3
libgnome-devel-2.6.0-3
libpng10-1.0.15-5
libpng-devel-1.2.5-5
libattr-2.4.1-4
libselinux-1.11.4-1
libxml2-2.6.8-1
libusb-0.1.8-2.1
libxslt-1.1.5-1
libart_lgpl-2.3.16-2.1
libgnomecanvas-2.6.0-1
libbonoboui-2.6.0-1
libwnck-2.6.0.1-1
libvorbis-1.0.1-2.1
libieee1284-0.2.8-2.1
libmng-1.0.4-5.1
libsoup-1.99.28-1
libcroco-0.4.0-4
libgnomeprintui22-2.6.0-1
libxklavier-1.02-1
libgnat-3.3.3-7
libxml2-devel-2.6.8-1
libuser-devel-0.51.7-7.1.1
libungif-devel-4.1.0-17.1
libart_lgpl-devel-2.3.16-2.1
libglade-devel-0.17-13.2.1
libpng10-devel-1.0.15-5
[rolly@localhost rolly]$ rpm -qa gnome*
gnome-spell-1.0.5-4.1
gnome-panel-2.6.0-9
gnome-mag-0.10.10-2
gnome-system-monitor-2.6.0-3
gnome-terminal-2.6.0-2
gnome-vfs-1.0.5-18
gnome-desktop-devel-2.6.0.1-1
gnome-print-devel-0.37-9
gnome-session-2.6.0-4
gnome-mime-data-2.4.1-4
gnome-vfs2-2.6.0-8
gnome-python2-gtkhtml2-2.0.0-4.1
gnome-python2-bonobo-2.0.0-4.1
gnome-python2-2.0.0-4.1
gnome-python2-canvas-2.0.0-4.1
gnome-desktop-2.6.0.1-1
gnome-pilot-2.0.10-6.1
gnome-icon-theme-1.2.0-1
gnome-libs-1.4.1.2.90-40
gnome-print-0.37-9
gnome-user-docs-2.6.0.1-2
gnome-vfs-extras-0.2.0-8.1
gnome-media-2.6.0-1
gnome-pilot-devel-2.0.10-6.1
gnome-vfs-devel-1.0.5-18
gnome-keyring-0.2.0-1
gnome-vfs2-smb-2.6.0-8
gnome-audio-1.4.0-7
gnome-themes-2.6.0-2
gnome-utils-2.6.0-2
gnome-applets-2.6.0-5
gnome-vfs2-devel-2.6.0-8
gnome-panel-devel-2.6.0-9
gnome-libs-devel-1.4.1.2.90-40
[rolly@localhost rolly]$

(1)好像还要什么gtkmm, 分2.4; 2.2; 2.0; 1.2 版本的包,究竟选那个?
(2)又要GTK+, 分2.4; 2.0; 1.2版,FC2里有gtk+, gtk2(清看上面),这些和GTK+有分别吗?
(3)又要libsigc++, 分2.0; 1.2; 1.0版,究竟选那个?
(4)除了glade2外,还要glade才可以build C++ 吗?为什么又以下的error?

谢谢各位大侠!:help

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2004-6-23 00:35:29 | 显示全部楼层
dependency1

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2004-6-23 00:37:33 | 显示全部楼层
dependency2

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2004-6-23 15:47:05 | 显示全部楼层
Anjuta 自己 ./configure 出问题!

checking for    glib-2.0 >= 2.0.6       gtk+-2.0 >= 2.0.8       ORBit-2.0 >= 2.4 .0      libglade-2.0 >= 2.0.0   libgnome-2.0 >= 2.0.2   libgnomeui-2.0 >= 2.0.2l ibgnomeprint-2.2 >= 2.0.1       libgnomeprintui-2.2 >= 2.0.1    gnome-vfs-2.0 >=  2.0.2  gnome-vfs-module-2.0 >= 2.0.2   libbonobo-2.0 >= 2.0.0  libbonoboui-2.0 >= 2.0.1        vte >= 0.7.0    libxml-2.0 >= 2.4.23    pango >= 1.1.1... Packag e libgnomeprint-2.2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgnomeprint-2.2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgnomeprint-2.2' found

configure: error: Library requirements (        glib-2.0 >= 2.0.6       gtk+-2.0  >= 2.0.8       ORBit-2.0 >= 2.4.0      libglade-2.0 >= 2.0.0   libgnome-2.0 >= 2.0.2   libgnomeui-2.0 >= 2.0.2         libgnomeprint-2.2 >= 2.0.1      libgnome printui-2.2 >= 2.0.1    gnome-vfs-2.0 >= 2.0.2  gnome-vfs-module-2.0 >= 2.0.2  l ibbonobo-2.0 >= 2.0.0   libbonoboui-2.0 >= 2.0.1        vte >= 0.7.0    libxml-2 .0 >= 2.4.23    pango >= 1.1.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config  can find them.

:help
 楼主| 发表于 2004-6-23 17:40:31 | 显示全部楼层

Help libgnomeprint problem!

[root@localhost libgnomeprint-2.2.1.3]# make
make  all-recursive
make[1]: Entering directory `/usr/src/redhat/SOURCES/libgnomeprint-2.2.1.3'
Making all in libgnomeprint
make[2]: Entering directory `/usr/src/redhat/SOURCES/libgnomeprint-2.2.1.3/libgnomeprint'
Making all in gpa
make[3]: Entering directory `/usr/src/redhat/SOURCES/libgnomeprint-2.2.1.3/libgnomeprint/gpa'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/redhat/SOURCES/libgnomeprint-2.2.1.3/libgnomeprint/gpa'
Making all in .
make[3]: Entering directory `/usr/src/redhat/SOURCES/libgnomeprint-2.2.1.3/libgnomeprint'
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..         -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libart-2.0 -I/usr/include/pango-1.0 -I/usr/include/libxml2   -I/usr/include/freetype2       -DG_LOG_DOMAIN=\"GnomePrint\"   -DGNOMELOCALEDIR=\""/usr/local/share/locale"\"         -DBINDIR=\""/usr/local/bin"\"   -DDATADIR=\""/usr/local/share"\"      -DGNOME_PRINT_MODULES_DIR=\""/usr/local/lib/libgnomeprint/2.2.1.3/modules"\"             -DG_DISABLE_DEPRECATED                                  -DGDK_DISABLE_DEPRECATED      -DGTK_DISABLE_DEPRECATED                                 -DGDK_PIXBUF_DISABLE_DEPRECATED                 -DGNOME_DISABLE_DEPRECATED    -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -c gnome-print-ps2.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libart-2.0 -I/usr/include/pango-1.0 -I/usr/include/libxml2 -I/usr/include/freetype2 -DG_LOG_DOMAIN=\"GnomePrint\" -DGNOMELOCALEDIR=\"/usr/local/share/locale\" -DBINDIR=\"/usr/local/bin\" -DDATADIR=\"/usr/local/share\" -DGNOME_PRINT_MODULES_DIR=\"/usr/local/lib/libgnomeprint/2.2.1.3/modules\" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -c gnome-print-ps2.c  -fPIC -DPIC -o .libs/gnome-print-ps2.o
In file included from ../libgnomeprint/gnome-font-private.h:44,
                 from gnome-print-ps2.c:42:
/usr/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!"
/usr/include/freetype2/freetype/freetype.h:21:2: #error "lease always use macros to include FreeType header files."
/usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:"
/usr/include/freetype2/freetype/freetype.h:23:2: #error "  #include <ft2build.h>"
/usr/include/freetype2/freetype/freetype.h:24:2: #error "  #include FT_FREETYPE_H"
make[3]: *** [gnome-print-ps2.lo] Error 1
make[3]: Leaving directory `/usr/src/redhat/SOURCES/libgnomeprint-2.2.1.3/libgnomeprint'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/SOURCES/libgnomeprint-2.2.1.3/libgnomeprint'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/SOURCES/libgnomeprint-2.2.1.3'
make: *** [all-recursive-am] Error 2
[root@localhost libgnomeprint-2.2.1.3]#
 楼主| 发表于 2004-6-23 22:56:14 | 显示全部楼层
pic0

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2004-6-23 22:57:26 | 显示全部楼层
pic1

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2004-6-23 22:58:07 | 显示全部楼层
pic2

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2004-6-23 22:58:54 | 显示全部楼层
pic4

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2004-6-24 01:14:13 | 显示全部楼层
gtkmm2.4需要libsigc++以上
glade生成c++代码要在选项里面选择c++,并安装glademm才可以
而且只有安装了以上代码,才能用anjuta的向导正确生成代码
我也在学。可以交流:
sss@pacia.com.cn
该论坛上还有gtkmm的翻译可以看一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表