Source code taken from:

https://gitlab.com/Molcas/OpenMolcas

Minor changes (=files bytecopy.c, cgetmem.c, cgetshmem.c, 
filesystem_wrapper.c, zip.c - absolute paths to ftw.h, ipc.h, shm.h and shm2.h,
which were taken from the Cygwin distribution; 
the header files ftw.h, ipc.h, shm.h, shm2.h themselves were modified in terms 
of absolute paths - as C:\cygwin_wm\home\... - if needed, it is necessary to change;
src/system_util/printheader.f - tagged file; CMakelists.txt - commented some lines
and changed OS Linux to Android: ...if (${CMAKE_SYSTEM_NAME} STREQUAL "Android")...) 
in this particular version were done by Alan Liska & Veronika Ruzickova 
(JHI Prague, Czech Republic). 

Homepage of the OPENMOLCAS project:

https://gitlab.com/Molcas/OpenMolcas

License: LGPL (v.2.1)

Compilation:

(0) make sure that you had installed Android-NDK toolchain with Fortran support 
    (if not, you can download one from Internet: https://github.com/buffer51/android-gfortran/releases)
    and that you added the corresponding /bin folder to your %PATH% in Windows settings
    as well as the official Android-NDK (in this case, version r10 was used) 
    and you have android.toolchain.cmake downloaded and saved in known
    location (if you do not have, you can download it from
    https://github.com/taka-no-me/android-cmake)
(1) decompress the source distribution inside of Cygwin (e.g. /home in this case);
    add and decompress the official LAPACK release (available from http://www.netlib.org/lapack/)
    to the External/lapack directory
(2) run CMake GUI, select folder with source code, (make and) select the folder in
    which the build will be created
(3) in CMake GUI add entry PATH > ANDROID_NDK and select the path to the official Android-NDK
(4) in CMake GUI add entry STRING > ANDROID_ABI and input "x86_64"
(5) in CMake GUI confirm "configure", select "MinGW makefiles", "specify toolchain",
    select previously downloaded android.toolchain.cmake; the process ends up with errors
(6) in CMake GUI set the option checkboxes to following values
    HDF			no
    all entries ending with "_FLAGS"	-pie (add to already existing switches)
    and add following entry
    CMAKE_Fortran_compiler (and select the compiler, e.g. C:/Android-NDK-r13b-x86_64/x86_64-4.9/bin/x86_64-linux-android-gfortran.exe (from the non-official toolchainu with Fortran support)
(7) configure
(8) generate
... sometimes errors with Fortran compiler tests occur - in such case it is possible to
skip the tests manually (cf. CMake manual) or to delete the cache, set everything from beginning - 
- because there is no Fortran compiler in the official NDK, the previously set Fortran compiler 
remains and may not be tested again
(9) delete "-pie" in following files: 
CMakeFiles/blas.dir/link.txt
CMakeFiles/lapack.dir/link.txt
CMakeFiles/molcas.dir/link.txt
(10)open CMakeFiles/parnell.exe.dir/link.txt and change the linker to C:/Android-NDK-r13b-x86_64/x86_64-4.9/bin/x86_64-linux-android-gfortran.exe (or the same binary in correct location)
(11)save all files, open cmd and run the compilation by
    mingw32-make
(12)resulting libraries and binaries will appear inside of the corresponding
    subfolders inside of the release folder
The resulting binaries are designed to be run in terminal environment under Android 4.1 or newer.
The execution script pymolcas is compiled by Python with preinstalled packages setuptools,
pyparsing and six separately. (Or alternatively, as it is not dependent on the OS,
it can be compiled e.g. under Linux.)
For more detailed information on execution of OpenMolcas by pymolcas, please refer to the manual.