bug-gnubg
[Top][All Lists]
Advanced

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

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


From: Michael Petch
Subject: Re: [Bug-gnubg] gnubg-cli board appearance doesn't work?
Date: Fri, 19 Oct 2012 08:50:18 -0600
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1

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.

./autogen.sh
./configure CFLAGS="-DNO_OVERLAYSCROLLBARS"
make

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.

-- 
Michael Petch
CApp::Sysware Consulting Ltd.
OpenPGP FingerPrint=D81C 6A0D 987E 7DA5 3219 6715 466A 2ACE 5CAE 3304



reply via email to

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