zoukankan      html  css  js  c++  java
  • 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


     





  • 相关阅读:
    Editor REST Client
    log配置
    spring-boot-configuration-processor
    http请求
    做项目用到的一些正则表达式,贴出来共享
    批量插入的实现
    sql执行顺序对比
    Java常用的并发工具类:CountDownLatch、CyclicBarrier、Semaphore、Exchanger
    spring中bean的生命周期
    多属性的对象列表的两种排序方法
  • 原文地址:https://www.cnblogs.com/linuxone/p/5527641.html
Copyright © 2011-2022 走看看