Get Chunkie

Installation Instructions

Clone the repository with the submodules

git clone --recurse-submodules https://github.com/fastalgorithms/chunkie.git

and run startup.m in the install directory. This will download the FLAM and fmm2d submodules, include FLAM in the matlab path, and generate the fmm2d mex file if a fortran compiler exists.

Troubleshooting

  • The fmm2d mex installation is currently not supported on Windows, to complete the mex installation, follow instructions on the fmm2d documentation

  • fmm2d mex installation depends on gfortran. In case a compiler is not found, the installation will be skipped. To install dependencies follow the procedure below based on your OS

    • MacOS

      Get xcode, command line tools by running

      xcode-select --install
      

      Then install Homebrew from https://brew.sh, and finally install gfortran using

      brew install gcc
      
    • Ubuntu linux

      sudo apt-get install make build-essential gfortran
      
    • Fedora/centOS linux

      sudo yum install make gcc gcc-c++ gcc-gfortran libgomp
      
  • If installing without submodules, chunkie depends on FLAM, and optionally on the fmm2d repository. Parts of the library will not function without FLAM and its subdirectories included in the matlab path.