一半君的总结纸

听话只听一半君

pidgin安装截图插件pidgin-sendscreenshot

脑残的用ksnapshot截,然后另存再发了好久,为什么没早点装pidgin-sendscreenshot呢…

curl -O http://pidgin-sendscreenshot.googlecode.com/files/pidgin-sendscreenshot-0.8-3.tar.bz2
tar -xvf pidgin-sendscreenshot-0.8-3.tar.bz2
cd pidgin-sendscreenshot-0.8-3
# 我是 csh
setenv PKG_CONFIG_PATH $HOME/apps/pidgin-2.10.9/lib/pkgconfig
./configure --prefix=$HOME/apps/pidgin-2.10.9/lib/pidgin
make
make install

效果图:

唯一问题是,pidgin-lwqq窗口里只要发了消息,快捷键就会失灵,不过菜单依然可以用。
如果在fedora 20上装,会看到

[]In file included from prefs.h:32:0,
                 from prefs.c:23:
main.h:55:24: fatal error: curl/types.h: No such file or directory
 #include <curl/types.h>
                        ^
compilation terminated.

我libcurl libcurl-devel都装了的,后来发现是因为版本太高…

[oglop@localhost pidgin-sendscreenshot-0.8-3]$ curl-config  --version
libcurl 7.32.0

因为

This header no longer exists in libcurl 7.21.7. It has been deprecated and empty since curl 7.12.0 (released June 2, 2004).

See these commits:
curl/types.h is deprecated and stubbed out:
https://github.com/bagder/curl/commit/ffc5fa3a2be787c8198eb68836a45c440876c1bd

curl/types.h is removed:
https://github.com/bagder/curl/commit/2ef7a28a71f819343afefa721e5497119fb2cee0

所以要么去main.h里把这行给注释了

#include <curl/types.h>

要么去建个假文件/usr/include/curl/types.h 里面放上

/* not used */

不过我总感觉这是乱搞…求大师指点正确解法

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: