FormLink is a Mathematica package to link Mathematica with FORM.
FormLink was developed by Feng Feng and Rolf Mertig. The code is maintained by Feng Feng, Rolf Mertig and Vladyslav Shtabovenko
Import["https://raw.githubusercontent.com/FormLink/formlink/master/install.m"]
InstallFormLink[]
If you use the automatic installer via InstallFormLink[]
there should be no necessity to recompile anything. However, if for some reasons you need to recompile FormLink binaries, following instructions should be useful.
Apart from Mathematica, you need to have libdl, libuuid, libm, libpthread , librt, libstdc++ installed on your system.
make clean && make ARCH=i686 MLINKDIR=/usr/local/Wolfram/Mathematica/8.0/SystemFiles/Links/MathLink/DeveloperKit MLLIB=ML32i3 && make OUTPUT=FormLinkLegacy ARCH=i686 install
make clean && make MLINKDIR=/usr/local/Wolfram/Mathematica/8.0/SystemFiles/Links/MathLink/DeveloperKit MLLIB=ML64i3 && make OUTPUT=FormLinkLegacy install
make clean && make ARCH=i686 MLINKDIR=/usr/local/Wolfram/Mathematica/9.0/SystemFiles/Links/MathLink/DeveloperKit MLLIB=ML32i3 && make OUTPUT=FormLinkLegacy ARCH=i686 install
make clean && make MLINKDIR=/usr/local/Wolfram/Mathematica/9.0/SystemFiles/Links/MathLink/DeveloperKit MLLIB=ML64i3 && make OUTPUT=FormLinkLegacy install
make clean && make ARCH=i686 && make ARCH=i686 install
make clean && make && make install
Apart from Mathematica, you need to have gcc5 (from homebrew etc.) intalled on your system.
make clean && make MLINKDIR=/Applications/Mathematica8.app/SystemFiles/Links/MathLink/DeveloperKit CADDSDIR=/Applications/Mathematica8.app/SystemFiles/Links/MathLink/DeveloperKit/CompilerAdditions CLIB=stdc++ MLLIB=MLi3 && make OUTPUT=FormLinkLegacy install
make clean && make OUTPUT=FormLinkLegacy MLINKDIR=/Applications/Mathematica9.app/SystemFiles/Links/MathLink/DeveloperKit CLIB=stdc++ MLLIB=MLi3 && make OUTPUT=FormLinkLegacy install
make clean && make MLINKDIR=/Applications/Mathematica10.3.app/Contents/SystemFiles/Links/MathLink/DeveloperKit CLIB=stdc++ && make install OUTPUT=FormLink103
make clean && make && make install
Apart from Mathematica, you need to have cygwin (32-bit version!) intalled on your system. The compilation is done in the cygwin terminal.
make clean && make OUTPUT=FormLinkLegacy.exe MLINKDIR="/cygdrive/c/Program\ Files/Wolfram\ Research/Mathematica/8.0/SystemFiles/Links/MathLink/DeveloperKit" MLLIB=ml32i3m && make OUTPUT=FormLinkLegacy.exe install
make clean && make OUTPUT=FormLinkLegacy.exe MLINKDIR="/cygdrive/c/Program\ Files/Wolfram\ Research/Mathematica/9.0/SystemFiles/Links/MathLink/DeveloperKit" MLLIB=ml32i3m && make OUTPUT=FormLinkLegacy.exe install
make clean && make && make install
FormLink is covered by the GNU Lesser General Public License 3.
Copyright (C) 2012-2016 Feng Feng Copyright (C) 2012-2016 Rolf Mertig Copyright (C) 2015-2016 Vladyslav Shtabovenko
FormLink is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
FormLink is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with FeynCalc. If not, see http://www.gnu.org/licenses/.
The conditions for the use of FORM are laid out here: http://www.nikhef.nl/~form/license/license.html and should be followed of course also when using FormLink.
The license for using Mathematica is given here: http://www.wolfram.com/legal/agreements/wolfram-mathematica.html