在便携式草莓上安装Gtk2 [英] Installing Gtk2 on portable strawberry

查看:137
本文介绍了在便携式草莓上安装Gtk2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了strawberry-perl-5.12.2.0-portable和gtk + -bundle_2.22.1-20101227_win32。我在一些目录中提取了草莓perl,并且在那里我把gtk文件夹放到了gtk文件中。

在portableshell.bat中,我更改了Path env并添加了:%drivep%\ gtk\bin;%drivep%\gtk\lib;。不要问我为什么要添加lib目录,我看到有人在某个网站上添加了它。



当我运行portableshell命令时:pkg-config - libs --cflags gtk + -2.0我得到:

  c:\ test> pkg-config --libs --cflags gtk + -2.0 
-mms-bitfields -Ic:/test/gtk/include/gtk-2.0 -Ic:/test/gtk/lib/gtk-2.0/include -
Ic:/ test / gtk /include/atk-1.0 -Ic:/ test / gtk / include / cairo -Ic:/ test / gtk / include / g
dk-pixbuf-2.0 -Ic:/test/gtk/include/pango-1.0 -Ic:/test/gtk/include/glib-2.0 -Ic
:/test/gtk/lib/glib-2.0/include -Ic:/ test / gtk / include -Ic:/ test / gtk / include / free
type2 -Ic:/ test / gtk / include / libpng14 -Lc:/ test / gtk / lib -lgtk-win32-2.0 -lgdk-wi
n32-2.0 -latk-1.0 -lgio -2.0 -lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lgdk_pixb
uf-2.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0
-lintl

所有文件夹看起来都不错,我也有编译glib的完整日志这里。看起来它不能编译,因为pkg-config会给出错误的数据或其他东西。



有没有人知道如何使这个工作成功?

解决方案

如果您坚持编译,请参阅 http://perlmonks.com/?node_id=793472 为build-gtk-glib-post.PL,它为我工作(一定要使用下载链接)



或者,使用

  ppm install Bundle :: Gnome2 

它可以从ActiveState和trouchelle存储库中获得(参见 http://kobesearch.cpan.org/dist/Bundle-Gnome2

I downloaded "strawberry-perl-5.12.2.0-portable" and "gtk+-bundle_2.22.1-20101227_win32". I extracted strawberry-perl in some directory and there I put gtk folder with gtk stuff.

In portableshell.bat I changed Path env and added: "%drivep%\gtk\bin;%drivep%\gtk\lib;". Don't ask me why I added lib directory, I saw that some guy added it in some website.

When I run in portableshell command: "pkg-config --libs --cflags gtk+-2.0" I get:

c:\test>pkg-config --libs --cflags gtk+-2.0
-mms-bitfields -Ic:/test/gtk/include/gtk-2.0 -Ic:/test/gtk/lib/gtk-2.0/include -
Ic:/test/gtk/include/atk-1.0 -Ic:/test/gtk/include/cairo -Ic:/test/gtk/include/g
dk-pixbuf-2.0 -Ic:/test/gtk/include/pango-1.0 -Ic:/test/gtk/include/glib-2.0 -Ic
:/test/gtk/lib/glib-2.0/include -Ic:/test/gtk/include -Ic:/test/gtk/include/free
type2 -Ic:/test/gtk/include/libpng14  -Lc:/test/gtk/lib -lgtk-win32-2.0 -lgdk-wi
n32-2.0 -latk-1.0 -lgio-2.0 -lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lgdk_pixb
uf-2.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0
-lintl

All folders looks fine, I also have complete log of compiling glib here. It looks like it doesn't compile because pkg-config gives bad data, or something.

Does anyone have some idea how to make this thing work?

解决方案

If you insist on compilation, see http://perlmonks.com/?node_id=793472 for "build-gtk-glib-post.PL" , it worked for me ( be sure to use the download link )

Alternatively, use

ppm install Bundle::Gnome2

Its available from both the ActiveState and trouchelle repositories ( see http://kobesearch.cpan.org/dist/Bundle-Gnome2 )

这篇关于在便携式草莓上安装Gtk2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆