[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] gnubg-cli board appearance doesn't work?

From: Fredrik
Subject: Re: [Bug-gnubg] gnubg-cli board appearance doesn't work?
Date: Fri, 19 Oct 2012 17:54:16 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1

Thanks for the patch and the description... worked like a charm!



On 2012-10-19 16:50, Michael Petch wrote:
On 2012-10-19 03:08, Fredrik wrote:
all I want to be able to run is something like:

new match 3
export position png out.png

any ideas?
Hi Fredrik,

I looked at the code and when the -t option is used reading of the board
preferences is completely bypassed. Unfortunately, there is no work
around using the Ubuntu installed version of GNUBG that I can think of.

With that being said, I committed a change to GNUBG's source code to
support reading of preferences related to exporting when running with
the -t option, or for anyone who may build with the --without-gtk option.

If you pull the latest version of GNUBG from revision control and build
it on Ubuntu you should be able to make this work. I'm not sure if you
have build from source code on Ubuntu before, so I'll try to give a
brief primer:

At a command prompt you can do this

Install the packages required to build GNUBG. So issue this command:

sudo apt-get build-dep gnubg

Create a place to do builds. In your home directory is fine, but I'd
prefer creating a subdirectory. Issue these commands (you cna change the
directory name from build to whatever you choose)

cd ~
mkdir build

Next we need to get the source code. We need to change into our primary
build directory first so do:

cd ~/build

Then do:

cvs -z3 -d:pserver:address@hidden:/sources/gnubg co gnubg

this will create a subdirectory off of your build directory called gnubg
and pull all the files into it.

Change into that directory with:

cd gnubg

Now the fun begins. This is known as the autogen/configure/make process.
This will build GNUBG.


At this point GNUBG should have been built if there were no errors (If
you encounter errors you can always contact me off list at
address@hidden for help). That CFLAGS option works around an
issue that can make the mouse fail to work on Ubuntu.

You can attempt to run GNUBG now by using the command:

./gnubg -t

This will run GNUBG from the current directory (that is what the ./ in
front will do). Are you able to do the exports now the way you would expect?

You can have gnubg installed into the /usr/local directory if things
work as expected. Issue this command:

sudo make install

You should now be able to run GNUBG from /usr/local/bin/gnubg

Eventually these fixes will be rolled into the Ubuntu GNUBG build buy
the Ubuntu build team, however that could be quite a while (many
months). Building your own from source is the only way to get the
feature you need right now.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]