The standard way to build revbayes is to use
cmake. Cross-compiling for Windows from Linux is also possible using
meson, see revbayes/projects/meson/README.md.
Download and install 64-bit cygwin (setup-x86_64.exe). Make sure you include the following packages:
(Cygwin package versions are from 9/2019. Newer versions may work, but see special version notes below)
For RevStudio you will also need:
Notes about the versions:
Boost and CMake:
It’s important that the version of Boost that you use be supported by the version of CMake that you use. You can check this by going to the package source for the CMake version you’re using e.g. 3.14.5. Search for
_Boost_KNOWN_VERSIONS and ensure your boost version appears in the list.
Retrieve the RevBayes sources.
git clone https://github.com/revbayes/revbayes.git revbayes-master
or the RevStudio version
bash build-win.sh -cmd true
When you try to run the executable you will likely get an error about missing libraries.
Make a new directory and put the executable in it.
Then find the library from the error message in
/usr/x86_64-w64-mingw32/sys-root/mingw/bin/ and copy it to the directory you put the exectuable in. Repeat this until you stop getting error messages.
At the time this was written (RevBayes v1.0.11), this consisted of: