2008年12月16日星期二

chmsee-1.0.2 折腾两天,编译OK!

昨天晚上折腾了几个小时去编译chmsee,结果总是出错,还好在SZLUG友人的帮助下,一步步解决了。

checking for GECKO... no
*** You must have either the Mozilla, Firefox, Seamonkey or XulRunner
*** development libraries installed in order to build ChmSee!

SZLUG问题帖子
http://groups.google.com/group/szlug/browse_thread/thread/d77adfd925aaf79f
Chmsee bug报告
http://code.google.com/p/chmsee/issues/detail?id=3

2008年12月14日星期日

GTK探险 @)@

GTK是个难肯的骨头,用--prefix=/opt/gtk这种方法我没有成功!游走于十几个源代码包后,最后在make GTK library的错误信息中宣告失败!和我一样失败的兄台也有,linuxsir早有记载!
http://www.linuxsir.org/bbs/lastpostinthread336444.html
在编译之前要好好想想:
1 自己为什么要手动编译
2 编译了以后打算怎么挂掉

干脆靠ubuntu整理好的开发包!
sudo apt-get install libgtk2.0-dev这时候遇到了如下问题:

The following packages have broken dependencies:
libgtk2.0-dev: Depends: libgtk2.0-0 (= 2.12.9-3ubuntu4) but 2.12.9-4ubuntu3 will be installed
E: Broken Packages

解决方法如下:
sudo aptitude install libgtk2.0-dev

在下面文章指引下,我的第一个GTK程序 Helloworld诞生了! ^^
http://bo.majewski.name/bluear/gnu/GTK/plain/#sidenote2

夜深了,从18点折腾到现在。为了GTK的Helloworld值了!