Skip to content
master
Switch branches/tags
Go to file
Code

README.md

DECX

This is the git version of the http://code.google.com/p/lagrange c++ version

Usage

To be written...

Build instructions

Linux

To build lagrange_cpp binary you need to install :

  • gfortran
  • lib gcc dev
  • lib gsl dev

Under Debian-like systems :

sudo apt-get install gfortran gcc g++ libgsl0-dev

Go to src/ directory and type

make -f makefile.champak clean
make -f makefile.champak

It should produce lagrange_cpp dynamic binary.

You may also want a static binary :

make -f makefile.champak clean
make -f makefile.champak static

Windows

What i did to be able to compile on windows :

  • Install git with git-bash from https://git-scm.com/
  • Install minGW32 from http://www.mingw.org/download/installer
  • Install all dev packages inside minGW
  • Edit ~/.bashrc in git-bash to change PATH : export PATH=$PATH:/c/MinGW/bin/
  • make symbolic link for make : cd /c/MinGW/bin ; ln -s mingw32-make.exe make
  • Download lib GSL sources from ftp://ftp.gnu.org/gnu/gsl/
  • Compile them
  • Adjust the src/makefile.win to fit with my files paths
  • Run make -f makefile.win static to get a static bin
  • Be satisfied

MacOS

To get things right under MacOS, you'll need fink or another pseudo-package manager. The goal is to install correct gcc/g++ and the needed libs :

git clone https://github.com/fink/fink.git
cd fink
# the next command is quite long
sudo ./bootstrap
echo ". /sw/bin/init.sh" > ~/.bash_profile
. ~/.bash_profile
# this might also be very long
sudo fink selfupdate-cvs
# and the longest is...this one
sudo fink install gcc49 gsl

cd
cd DECX/src
make -f makefile.mac clean
make -f makefile.mac

I'm working on a way to produce a quasi-static binary for MacOSX.

About

This is the DECX (DEC eXtended) model for historical biogeographic inference

Resources

Packages

No packages published

Languages