openSUSE Tumbleweed安装CGoban程序

在gnugo网页上浏览了一会发现了一款带gui的围棋程序CGoban,gnugo是命令行下的使用不方便。决定自己安装一下这个程序。

@1   https://sourceforge.net/projects/cgoban1/   在这个网页中下载cgoban程序cgoban-1.9.14。

我的电脑中原来安装过qt环境。gcc gcc-c++ make automake之类的工具如果系统没有需要自己提前安装。

@2 解压源文件,查看readme文件发现

1) Unpack it.  You must have done this already to read this file.  Make sure
   that you "cd" into the cgoban directory (the directory that has this
   README in it).
2) Type "./configure".
3) Type "make".
4) Type "./cgoban".  If all went well you should be running cgoban.  Directions
   on using cgoban are all available through the "help" buttons.  For a
   list of command line switches available, try "./cgoban -help".
5) You can copy the cgoban executable to a directory on your PATH after you
   have built it. Then you can delete all the rest of the files - once you
   have built the binary, you don't need anything else.
 

如果第2步报错Can't find X。。。,根据提示使用如下配置方式

./configure --x-includes=/usr/include/X11 --x-libraries=/usr/lib/X11

用./cgoban启动程序之后,

@4在我下载的gnugo源文件 中查看readme文件

 Running GNU Go via CGoban

This is an extremely nice way to run GNU Go. CGoban provides a
beautiful graphic user interface under X Window System.

Start CGoban. When the CGoban Control panel comes up, select ``Go
Modem''. You will get the Go Modem Protocol Setup. Choose one (or
both) of the players to be ``Program,'' and fill out the box with the
path to gnugo. After clicking OK, you get the Game Setup window.
Choose ``Rules Set'' to be Japanese (otherwise handicaps won't work).
Set the board size and handicap if you want. Click OK and you are
ready to go.
发现需要在Go modem中设置成人与程序的方式,即可手谈一局。

 

openSUSE Tumbleweed安装CGoban程序_第1张图片

openSUSE Tumbleweed安装CGoban程序_第2张图片openSUSE Tumbleweed安装CGoban程序_第3张图片

你可能感兴趣的:(opensuse使用记录)