linux下 putty 的痛苦编译之路

编译目录 /putty-版本/unix

下载地址:http://www.putty.nl/download.html

1、./configure

安装以来环境:

sudo apt-get install libgtk2.0-dev libglib2.0-dev

问题:

checking for GTK+ - version >= 2.0.0... Package gtk+-2.0 was not found in the pkg-config search path.

Perhaps you should add the directory containing `gtk+-2.0.pc'

to the PKG_CONFIG_PATH environment variable

No package 'gtk+-2.0' found

 

配置 gtk-config

路径:/usr/local/bin/gtk-config

内容:

            #!/bin/sh

            module="gtk+-2.0"

            if test "$1" = "--version"; then

                    pkg-config --modversion $module

            else

                    pkg-config $* $module

            fi

权限:chmod +x gtk-config

问题:

*** The gtk-config script installed by GTK could not be found

*** If GTK was installed in PREFIX, make sure PREFIX/bin is in

*** your path, or set the GTK_CONFIG environment variable to the

*** full path to gtk-config.

2.编译出带界面的putty

命令:make -f Makefile.gtk

修改文件:./unix/Makefile.gtk

 

问题:由于警告报的错误

            cc1: all warnings being treated as errors

            Makefile.gtk:343: recipe for target 'gtkfont.o' failed

            make: *** [gtkfont.o] Error 1

如果有不同的需求可以选择编译文件:

 

3、编译文件:

命令:make install

4、启动:

命令:putty


 

 





转载于:https://www.cnblogs.com/linuxone/p/5527641.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值