User Tools

Site Tools


howto:compile_on_windows_with_cygwin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howto:compile_on_windows_with_cygwin [2023/11/29 17:16] krackhowto:compile_on_windows_with_cygwin [2025/09/07 07:07] (current) – [3b LIBINT (optional)] iwao
Line 1: Line 1:
-<note tip>Before reaching for Cygwin we suggest you first try the new [[https://ubuntu.com/tutorials/install-ubuntu-on-wsl2-on-windows-11-with-gui-support#1-overview|Windows Subsystem for Linux]]. +<note tip>We recommend to try first the [[https://ubuntu.com/tutorials/install-ubuntu-on-wsl2-on-windows-11-with-gui-support#1-overview|Windows Subsystem for Linux]] (WSL) before reaching for Cygwin.
 Check [[howto:compile_on_windows|this howto]] for further details. Check [[howto:compile_on_windows|this howto]] for further details.
 </note> </note>
Line 24: Line 23:
   libhdf5-devel   libhdf5-devel
 Devel Devel
 +  autoconf
 +  automake
   bison   bison
   byacc   byacc
Line 29: Line 30:
   gcc-fortran   gcc-fortran
   gcc-g++   gcc-g++
 +  libtool
   make   make
 GNOME GNOME
Line 136: Line 138:
 and so on, the "make" is successful if "libint_f.mod" is found in the "fortran" directory.\\ and so on, the "make" is successful if "libint_f.mod" is found in the "fortran" directory.\\
  
-Copy a generated file "libint-v2.6.0-cp2k-lmax-7/lib/.libs/linint2.a" and a "libint-v2.6.0-cp2k-lmax-7/include/libint2" directory manually into "(cygwin-root)/usr/local/lib" and "(cygwin-root)/usr/local/include" directories respectively.\\+Copy a generated file "libint-v2.6.0-cp2k-lmax-7/lib/.libs/linint2.a" and a "libint-v2.6.0-cp2k-lmax-7/include/libint2" directory manually into "(cygwin-root)/usr/local/lib" and "(cygwin-root)/usr/local/include" directories respectively. Copy "libint-v2.6.0-cp2k-lmax-7/include/libint2_params.h" into the "(cygwin-root)/usr/local/include/libint2".\\
 ("Make install" does not seem to work.)\\ ("Make install" does not seem to work.)\\
  
Line 142: Line 144:
  
 ====3c LIBXC (optional)==== ====3c LIBXC (optional)====
-The version 5.1.0 (or later) of LIBXC can be downloaded from [[https://www.tddft.org/programs/libxc]].\\ +The version 7.0.0 of LIBXC can be downloaded from [[https://www.cp2k.org/static/downloads/libxc-7.0.0.tar.bz2|CP2K Static Download Page]].\\ 
-Download and extract "libxc-5.1.0.tar.gz" by using the similar way as cp2k tarball case or something like [[https://www.7-zip.org|7-zip]].\\+Download and extract "libxc-7.0.0.tar.gz2" by using the similar way as cp2k tarball case or a tool something like [[https://www.7-zip.org|7-zip]].\\ 
 + 
 +Autoconf, automake and libtool, which are not installed by default but are required to build LIBXC.\\
  
-Change the current directory to the "libxc-5.1.0" directory and execute the following commands on the Cygwin 64 bash terminal:\\+Change the current directory to the "libxc-7.0.0" directory and execute the following commands on the Cygwin 64 bash terminal:\\
  
 <code> <code>
-$ 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/Makefile.in
 +$ touch src/maple2c/Makefile.in
 +$ touch src/maple2c/lda_exc/Makefile.in
 +$ touch src/maple2c/lda_vxc/Makefile.in
 +$ touch src/maple2c/gga_exc/Makefile.in
 +$ touch src/maple2c/gga_vxc/Makefile.in
 +$ touch src/maple2c/mgga_exc/Makefile.in
 +$ touch src/maple2c/mgga_vxc/Makefile.in
 +$ touch testsuite/Makefile.in
 +$ touch testsuite/pytest/Makefile.in
 +$ touch pkgconfig/Makefile.in
 +$ touch pylibxc/Makefile.in
 +$ touch scripts/Makefile.in
 +$ touch maple/Makefile.in
 +$ touch maple/gga_exc/Makefile.in
 +$ touch maple/gga_vxc/Makefile.in
 +$ touch maple/lda_exc/Makefile.in
 +$ touch maple/lda_vxc/Makefile.in
 +$ touch maple/mgga_exc/Makefile.in
 +$ touch maple/mgga_vxc/Makefile.in
 +$ touch cmake/Makefile.in
 +$ autoconf
 +$ autoreconf --install
 $ ./configure --prefix=/usr/local $ ./configure --prefix=/usr/local
 $ make $ make
howto/compile_on_windows_with_cygwin.1701278169.txt.gz · Last modified: by krack