Life In 19x19
http://www.lifein19x19.com/

Go-gui question: can I just use the jar file?
http://www.lifein19x19.com/viewtopic.php?f=10&t=12738
Page 1 of 1

Author:  Jujube [ Sat Feb 27, 2016 10:29 am ]
Post subject:  Go-gui question: can I just use the jar file?

I like gogui, it looks quite pretty. I like how it automatically labels variations on the board when we create multiple branches at a move (like eidogo).

I was trying to build it for mac and I've almost got it but I need to download xcode and that's a pain.

I noticed there is a file gogui.jar in the lib folder. Can I just use this? Was the mac build from source thing just to get a .app package?

Is there anything the program won't do if I just use this jar file and save the hassle of building it?

Author:  pleiade67 [ Sun Feb 28, 2016 3:01 pm ]
Post subject:  Re: Go-gui question: can I just use the jar file?

Did you try this to build the app:
http://gogui.sourceforge.net/doc/invocation.html

I used ant to built 1.4.2 on Mac OS in 2012 and it worked fine.

Author:  Jujube [ Sun Feb 28, 2016 4:01 pm ]
Post subject:  Re: Go-gui question: can I just use the jar file?

Yeah there are a few problems...

Excerpt from the README from the latest zipfile download:

Compiling GoGui from the sources needs the Ant build system.

The HTML documentation is generated using Docbook. This requires that the XSL transformer xsltproc and the Docbook XSL Stylesheets are installed. The location of the Docbook XSL directory can be defined with the ant option -Ddocbook-xsl.dir=directory (default is /usr/share/xml/docbook/stylesheet/docbook-xsl).
To run the validation of the GoGui documentation XML sources (which is part of the check target in build.xml), a local copy of the Docbook DTD 4.2 needs to be installed. The location of the file can be defined with the ant option -Ddocbook.dtd-4.2=file (default is /usr/share/xml/docbook/schema/dtd/4.2/docbookx.dtd).

The file quaqua.jar from the Quaqua Look and Feel (http://www.randelshofer.ch/quaqua) needs to be downloaded and copied to lib/quaqua.jar. The recommended version tested with GoGui is in http://www.randelshofer.ch/quaqua/files ... nested.zip For building GoGui with limited support for the Mac, Quaqua can be disabled by invoking ant with the option -Dquaqua.ignore=true. GoGui will use Quaqua if it finds the file quaqua.jar in the same directory as gogui.jar, so it is still possible to manually copy it there later.

Problems are:

  • The xcode paths are hardcoded and it's all changed in El Capitan
  • The homebrew xsltproc isn't liked very much by gogui
  • The build depends on a full xcode install
  • The Docbook file and xsltproc are required libs otherwise the build falls over due to checks in the build.xml

I hate building things from source. It never works.

HOWEVER the link you provided made me look in the bin directory and the gogui script just does some java install checks and then points to gogui.jar. So I'm confident now that I can just run the jar and forget about installing it.

Author:  pleiade67 [ Sun Feb 28, 2016 10:58 pm ]
Post subject:  Re: Go-gui question: can I just use the jar file?

I also hate building from source, always need to patch everything. :scratch:

By the way I also remember having used the jar file and did not notice any inconvenience apart that it was not possible to open sgf files in gogui directly by associating them to Gogui. Should work.

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/