iSALE - install iSALE to cygwin on windows Diff

  • Added parts are displayed like this.
  • Deleted parts are displayed like this.

==  Before installation
* required packages (category)
  * subversion (Devel)
  * python (Python)
  * gnuplot (Graphics)
  * gfortran (Devel)
  * libpng-devel (Libs)
  * c and c++ may also be required
* pgplot is required to use iSALEPlot
  * get source code of pgplot, and install it manually before installing iSALE
    * pgplot is not distributed as a package.
  * ((<"'How to install pgplot' (in Japanese)"|"Cygwin on Windows への pgplot のインストール">))
* qt3 and OpenGL are also required to use ViMoD
  * libqt3-devel (Libs)
  * libglut-devel (Libs)
  * opengl (I could not find this in my system)
* prepare directories
    mkdir ~/iSALE
    mkdir ~/iSALE/src
    mkdir ~/iSALE/work

== Checking out Get source code
* example:
    svn co --username senshu svn://earth.naturkundemuseum-berlin.de/iSALE/tags/chicxulub /home/senshu/iSALE/src

== Compilation
* edit configure file
    vi ./configure
  * add "-lcygwin" to "Ignore these flags." list
    * This is required to avoid double definition error, since the contents of libcygwin.a and libm.a are the same.
* run configure
    cd ~/iSALE/src
    ./configure --prefix=/home/senshu/iSALE/work --with-isaleplot --with-pgplot-libpath=/usr/local/pgplot/bin
  * the order of options should follow the above example
  * prefix should be given by absolute path
  * pgplot-libpath is the directory where you have installed pgplot
  * in case of 64-bit version of cygwin, adding the following options seems to work:
      --with-libX11="-lX11" --with-libpng="-L/lib -lpng -lz"
* edit Makefile
    vi libs/libjc/Makefile
  * add "-I/usr/include/tirpc" to CC
    * This is required because rpc/rpc.h (which is called in inout.h) does not exist in /usr/include/rpc/rpc.h but it is in the directory /usr/include/tirpc/rpc/rpc.h (included in "sunrpc" package)
* make
    make
    make install

== If you've got trouble
* your installation may have not been completed yet due to, for example, lack of libraries
* check "config.log" file