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
Next revisionBoth sides next revision
howto:compile_on_windows_with_cygwin [2015/12/23 01:31] – [4.Installation CP2K on Windows PC which not installed Cygwin] 202.212.20.216howto:compile_on_windows_with_cygwin [2019/04/23 18:02] – [3.Compilation with Cygwin] 89.132.74.35
Line 17: Line 17:
       *“liblapack-devel”       *“liblapack-devel”
       *“liblapack0”       *“liblapack0”
-  *Python\\+  *Python 
 +  *Vim\\
 Please operate according to the wizard to finish the Cygwin installation.\\ Please operate according to the wizard to finish the Cygwin installation.\\
  
Line 27: Line 28:
 </code> </code>
  
-===== 3.Compilation with Cygwin ===== +
-An example CP2K ARCH file for a serial build of CP2K on Cygwin is as follows:\\ +
-<file>+
 CC       = cc CC       = cc
 CPP      =  CPP      = 
Line 45: Line 44:
  
 OBJECTS_ARCHITECTURE = machine_gfortran.o OBJECTS_ARCHITECTURE = machine_gfortran.o
-</file> 
-Remove the -D__GFORTRAN flag if you compile CP2K 2.6.0. Save it as ''Cygwin-i686-gfortran.sopt'' in the ''cp2k-2.x.x/arch'' directory alongside the other ARCH files.\\ 
-Launch the Cygwin Terminal (Cygwin bash) and change the working directory to ''cp2k-2.x.x/makefiles''. Type make command as follows:\\ 
-<code> 
-make ARCH=Cygwin-i686-gfortran VERSION=sopt 
-</code> 
-It may take 1 or 2 hours until a compilation is completed.  If you have a multi-core machine you may use e.g. ''make -j 4'' to compile in parallel with 4 tasks.\\  
-If you find ''cp2k.sopt'' in ''cp2k-2.x.x/exe'' directory, then compilation is successfully done. 
  
 ===== 4.Installation CP2K on Windows PC which not installed Cygwin ===== ===== 4.Installation CP2K on Windows PC which not installed Cygwin =====
howto/compile_on_windows_with_cygwin.txt · Last modified: 2023/12/01 00:25 by krack