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 revisionBoth sides next revision
howto:compile_on_windows_with_cygwin [2018/04/05 15:26] – [1.Cygwin installation:] gtoccihowto:compile_on_windows_with_cygwin [2019/04/23 18:02] – [3.Compilation with Cygwin] 89.132.74.35
Line 28: 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 46: 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