howto:compile_on_windows_with_cygwin
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| howto:compile_on_windows_with_cygwin [2022/11/10 12:49] – oschuett | howto:compile_on_windows_with_cygwin [2025/09/07 07:07] (current) – [3b LIBINT (optional)] iwao | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | < | + | < |
| + | Check [[howto: | ||
| + | </ | ||
| Line 21: | Line 23: | ||
| libhdf5-devel | libhdf5-devel | ||
| Devel | Devel | ||
| + | autoconf | ||
| + | automake | ||
| bison | bison | ||
| byacc | byacc | ||
| Line 26: | Line 30: | ||
| gcc-fortran | gcc-fortran | ||
| gcc-g++ | gcc-g++ | ||
| + | libtool | ||
| make | make | ||
| GNOME | GNOME | ||
| Line 81: | Line 86: | ||
| Source codes of most prerequisities are available not only on individual supplyers but also on [[https:// | Source codes of most prerequisities are available not only on individual supplyers but also on [[https:// | ||
| - | ====3a LIBINT (optional)==== | + | |
| + | ====3a | ||
| + | |||
| + | Download and extract [[https:// | ||
| + | |||
| + | Rename " | ||
| + | |||
| + | Edit the " | ||
| + | < | ||
| + | # | ||
| + | FCFLAGS | ||
| + | </ | ||
| + | |||
| + | Edit " | ||
| + | < | ||
| + | # | ||
| + | # $(FC) $(NOOPT) -c $*.f | ||
| + | blacstest.o : blacstest.f | ||
| + | $(FC) -c $(FCFLAGS) $*.f | ||
| + | </ | ||
| + | |||
| + | Change the current directory to " | ||
| + | |||
| + | After the " | ||
| + | |||
| + | ====3b | ||
| Download a CP2K-configured LIBINT library from [[https:// | Download a CP2K-configured LIBINT library from [[https:// | ||
| and extract the archive (e.g." | and extract the archive (e.g." | ||
| Line 108: | Line 138: | ||
| and so on, the " | and so on, the " | ||
| - | Copy a generated file " | + | Copy a generated file " |
| ("Make install" | ("Make install" | ||
| In the arch file of CP2K: add < | In the arch file of CP2K: add < | ||
| - | ====3b LIBXC (optional)==== | + | ====3c LIBXC (optional)==== |
| - | The version | + | The version |
| - | Download and extract " | + | Download and extract " |
| + | |||
| + | Autoconf, automake and libtool, which are not installed by default but are required to build LIBXC.\\ | ||
| - | Change the current directory to the " | + | Change the current directory to the " |
| < | < | ||
| - | $ cd libxc-5.1.0 | + | $ cd libxc-7.0.0 |
| $ export F77=gfortran | $ export F77=gfortran | ||
| + | $ aclocal | ||
| + | $ autoheader | ||
| + | $ automake -c -a | ||
| + | $ libtoolize -c | ||
| + | $ touch Makefile.in | ||
| + | $ touch src/ | ||
| + | $ touch src/ | ||
| + | $ touch src/ | ||
| + | $ touch src/ | ||
| + | $ touch src/ | ||
| + | $ touch src/ | ||
| + | $ touch src/ | ||
| + | $ touch src/ | ||
| + | $ touch testsuite/ | ||
| + | $ touch testsuite/ | ||
| + | $ touch pkgconfig/ | ||
| + | $ touch pylibxc/ | ||
| + | $ touch scripts/ | ||
| + | $ touch maple/ | ||
| + | $ touch maple/ | ||
| + | $ touch maple/ | ||
| + | $ touch maple/ | ||
| + | $ touch maple/ | ||
| + | $ touch maple/ | ||
| + | $ touch maple/ | ||
| + | $ touch cmake/ | ||
| + | $ autoconf | ||
| + | $ autoreconf --install | ||
| $ ./configure --prefix=/ | $ ./configure --prefix=/ | ||
| $ make | $ make | ||
| Line 131: | Line 191: | ||
| In the arch file of CP2K: add < | In the arch file of CP2K: add < | ||
| - | ====3c libxsmm(optional)===== | + | ====3d libxsmm(optional)===== |
| A library for matrix operations and deep learning primitives: [[https:// | A library for matrix operations and deep learning primitives: [[https:// | ||
| Line 146: | Line 206: | ||
| In the arch file of CP2K: add < | In the arch file of CP2K: add < | ||
| - | ====3d PEXSI (optional)==== | + | ====3e PEXSI (optional)==== |
| PEXSI requires parmetis, scotch, CombBLAS_bata, | PEXSI requires parmetis, scotch, CombBLAS_bata, | ||
| - | ===3d1 parmetis=== | + | ===3e1 parmetis=== |
| Download and extract [[http:// | Download and extract [[http:// | ||
| Line 199: | Line 259: | ||
| If you have an error during the " | If you have an error during the " | ||
| - | ===3d2 scotch=== | + | ===3e2 scotch=== |
| Download and extract [[https:// | Download and extract [[https:// | ||
| Line 220: | Line 280: | ||
| </ | </ | ||
| - | ===3d3 | + | ===3e3 |
| Download and extract [[https:// | Download and extract [[https:// | ||
| Line 258: | Line 318: | ||
| </ | </ | ||
| - | ===3d4 upcxx=== | + | ===3e4 upcxx=== |
| Download and extract [[https:// | Download and extract [[https:// | ||
| Line 270: | Line 330: | ||
| The successful installation will display "UPC++ successfully installed" | The successful installation will display "UPC++ successfully installed" | ||
| - | ===3d5 symPACK=== | + | ===3e5 symPACK=== |
| Download and extract [[https:// | Download and extract [[https:// | ||
| Line 283: | Line 343: | ||
| </ | </ | ||
| - | ===3d6 superLU_dist=== | + | ===3e6 superLU_dist=== |
| Download and extract [[https:// | Download and extract [[https:// | ||
| Line 294: | Line 354: | ||
| $ export PARMETIS_BUILD_DIR=${HOME}/ | $ export PARMETIS_BUILD_DIR=${HOME}/ | ||
| $ export COMBBLAS_ROOT=/ | $ export COMBBLAS_ROOT=/ | ||
| - | $ export COMBBLAS_BUILD_DIR=${HOME}/ | + | $ export COMBBLAS_BUILD_DIR=${HOME}/ |
| $ mkdir build | $ mkdir build | ||
| $ cd build | $ cd build | ||
| Line 303: | Line 363: | ||
| </ | </ | ||
| - | Edit the following generated files after cmake and add the "-mpi" flag at the end of the line.\\ | + | Edit the following generated files after cmake and add the "-lmpi" flag at the end of the line.\\ |
| *build/ | *build/ | ||
| Line 331: | Line 391: | ||
| - | ===3d7 PEXSI=== | + | ===3e7 PEXSI=== |
| Download and extract [[https:// | Download and extract [[https:// | ||
| Line 393: | Line 453: | ||
| Add < | Add < | ||
| - | ====3e QUIP (optional)=== | + | ====3f QUIP (optional)=== |
| Download " | Download " | ||
| Line 550: | Line 610: | ||
| In the arch file of CP2K: Add < | In the arch file of CP2K: Add < | ||
| - | ====3f spfft(optional)==== | + | ====3g spfft(optional)==== |
| Download and extract [[https:// | Download and extract [[https:// | ||
| Line 565: | Line 625: | ||
| </ | </ | ||
| - | ====3g spla(optional)==== | + | ====3h spla(optional)==== |
| Download and extract [[https:// | Download and extract [[https:// | ||
| Line 580: | Line 640: | ||
| </ | </ | ||
| - | ====3h SIRIUS (optional)==== | + | ====3i SIRIUS (optional)==== |
| SIRIUS-7.3.0 requires spglib-1.0.2 or later and gsl 2.7 or later.\\ | SIRIUS-7.3.0 requires spglib-1.0.2 or later and gsl 2.7 or later.\\ | ||
| - | ===3h1 spglib=== | + | ===3i1 spglib=== |
| Download and extract [[https:// | Download and extract [[https:// | ||
| Line 603: | Line 663: | ||
| In the arch file of CP2K: Add < | In the arch file of CP2K: Add < | ||
| - | ===3h2 gsl 2.7=== | + | ===3i2 gsl 2.7=== |
| If you have the following gsl-related error during building sirius (i.e. " | If you have the following gsl-related error during building sirius (i.e. " | ||
| Line 629: | Line 689: | ||
| The "make install" | The "make install" | ||
| - | ===3h3 SIRIUS=== | + | ===3i3 SIRIUS=== |
| Download and extract [[https:// | Download and extract [[https:// | ||
| Line 669: | Line 729: | ||
| In the arch file of CP2K: Add < | In the arch file of CP2K: Add < | ||
| - | ====3i Libvori (optional)==== | + | ====3j Libvori (optional)==== |
| Download and extract [[https:// | Download and extract [[https:// | ||
| Line 688: | Line 748: | ||
| In the arch file of CP2K: Add < | In the arch file of CP2K: Add < | ||
| - | ====3j libvdwxc (optional)==== | + | ====3k libvdwxc (optional)==== |
| Download and extract [[https:// | Download and extract [[https:// | ||
| Line 761: | Line 821: | ||
| *libxc-5.1.0/ | *libxc-5.1.0/ | ||
| *sirius-7.3.0/ | *sirius-7.3.0/ | ||
| + | *pexsi_v1.2.0/ | ||
| *QUIP-b4336484fb65b0e73211a8f920ae4361c7c353fd/ | *QUIP-b4336484fb65b0e73211a8f920ae4361c7c353fd/ | ||
howto/compile_on_windows_with_cygwin.1668084558.txt.gz · Last modified: by oschuett
