Thread: Competition 143
View Single Post
Old August 6, 2013, 04:56   #20
Darin
Scout
 
Join Date: Jun 2010
Location: Massachusetts, USA
Posts: 39
Darin is on a distinguished road
Quote:
Originally Posted by DaviddesJ View Post
Would you be willing to give more step-by-step details? I'm sure I could figure it out, but I have no idea how to run the binary under X11, for example.
  1. Download the source tarball and unpack the archive.
  2. Open int-map.c in a text editor and replace the line
    Code:
    #include <malloc.h>
    with
    Code:
    #include <malloc/malloc.h>
  3. Do the same with str-map.c
  4. Open the Terminal and cd to the src directory.
  5. Compile the source using the command
    Code:
    make -f makefile.linux
  6. cd up a level and move the poschengband binary and the lib directory to a convenient directory. Alternatively, you can just remove the src directory and leave the binary and lib directory in place.
  7. Examine the lib directory and make sure there is a save directory. If not, then make an empty save directory.
  8. Install XQuartz or X11 (an optional install in the OS X install disk). Personally I prefer XQuartz since it is usually a more recent version.
  9. Open the XQuartz/X11 application and open a new terminal window from within the application (command-N in XQuartz).
  10. cd to the directory with the poschengband binary.
  11. To run poschengband use the command
    Code:
    ./poschengband
    in the XQuartz/X11 terminal window.

Last edited by Darin; August 6, 2013 at 05:20.
Darin is offline   Reply With Quote