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/11/05 22:05] – [3.Compilation with Cygwin] 194.225.172.155howto: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 =====
-By using either cygcheck command or an executable parser such as  [[http://www.dependencywalker.com|Dependency Walker (depends.exe)]], you can find DLLs that the built cp2k.sopt depends on.\\+By using either cygcheck command (cygcheck /home/user/(cp2k directory)/exe/(ARCH directory)/cp2k.sopt) or an executable parser such as  [[http://www.dependencywalker.com|Dependency Walker (depends.exe)]], you can find DLLs that the built cp2k.sopt depends on.\\
 The following six DLLs may be required to run the cp2k.sopt without Cygwin installation, but it may differ on your system.(Windows system modules are unnecessary here)\\ The following six DLLs may be required to run the cp2k.sopt without Cygwin installation, but it may differ on your system.(Windows system modules are unnecessary here)\\
   *cygwin\lib\lapack\cygblas-0.dll   *cygwin\lib\lapack\cygblas-0.dll
howto/compile_on_windows_with_cygwin.txt · Last modified: 2023/12/01 00:25 by krack