Differences

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

en:installation [2012/10/18 03:15]
deinega [Content of EMTL archive]
en:installation [2017/04/10 16:18] (current)
valuev [Compilation on Windows (Visual Studio 2010)]
Line 1: Line 1:
 ======Installation ====== ======Installation ======
  
-To use EMTL you need to download [[download|archive with EMTL]] and install FFTW (Fast Foirier Transformation) library [[http://www.fftw.org/download.html|FFTW]].+To use EMTL you need to  
 +  * download [[download|archive with EMTL]]
 +  * download [[ivutils|ivutils]] library and put it at the same directory with EMTL; 
 +  * install FFTW (Fast Foirier Transformation) library [[http://www.fftw.org/download.html|FFTW]].
  
 To use parallel EMTL version, you need MPI.   To use parallel EMTL version, you need MPI.  
 For Windows you can use [[http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=downloads |MPICH2]].  For Windows you can use [[http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=downloads |MPICH2]]. 
- 
 ====== Installation of necessary components ====== ====== Installation of necessary components ======
  
Line 32: Line 34:
 ====== Content of EMTL archive ====== ====== Content of EMTL archive ======
  
-  * photonic - EMTL classes and binaries +  * include - EMTL include files 
-    photonic/vs10/lib.lib – MS Visual Studio 10 library, release version +  * vs10/Release/libemtl.lib – MS Visual Studio 10 library, release version 
-    photonic/vs10/libd.lib – MS Visual Studio 10 library, debug version +  * vs10/Debug/libemtl.lib – MS Visual Studio 10 library, debug version 
-    photonic/unix/_gcc_seq/lib_emtl.a – g++ library +  * unix/_gcc/lib_emtl.a – g++ library 
-    photonic/unix/_gcc_seq/lib_emtl.a – g++ library, MPI version +  * unix/_gcc_mpi/lib_emtl.a – g++ library, MPI version
-  * ivutils - some useful general classes (geometry bodies, timers etc.)+
   * tests - folders with some examples (scattering on sphere, etc.)   * tests - folders with some examples (scattering on sphere, etc.)
   * test/test_mie - example with scattering on a sphere   * test/test_mie - example with scattering on a sphere
   * tests/_example_folder_/vs10 - project file for compilation on Windows with MS Visual Studio 10   * tests/_example_folder_/vs10 - project file for compilation on Windows with MS Visual Studio 10
   * tests/_example_folder_/unix - makefile for compilation on UNIX   * tests/_example_folder_/unix - makefile for compilation on UNIX
-  * +
 To make your own example you should start your *.cpp file with  To make your own example you should start your *.cpp file with 
 <code cpp> <code cpp>
Line 60: Line 61:
 We composed it using [[http://make.paulandlesley.org/multi-arch.html|Paul D. Smith rules]]. We composed it using [[http://make.paulandlesley.org/multi-arch.html|Paul D. Smith rules]].
  
-This Makefile compiles tests/test_mie/test_mie.cpp by default, but you can specify other file using SRC_MAIN line there+This Makefile compiles tests/test_mie/test_mie.cpp by default, but you can specify other file in variable SRC_MAIN. 
 Makefile uses Makefile.arch and Makefile.target files in ivutils directory of the EMTL archive. Makefile uses Makefile.arch and Makefile.target files in ivutils directory of the EMTL archive.
  
Line 71: Line 72:
 cd tests/test_mie/unix cd tests/test_mie/unix
 </code> </code>
-type+type for serial version
 <code> <code>
-make _ARCH=<your_archname> _MPI=false+make _ARCH=<your_archname>
 </code> </code>
-for serial version or+and for parallel version
 <code> <code>
-make _ARCH=<your_archname>+make _ARCH=<your_archname> _MPI=true
 </code> </code>
-for parallel version. 
    
-The corresponding binary data, including executable, will be placed in the configuration-specific directory, namely Obj_<your_archname> or Obj_<your_archname>_mpi. +The corresponding binary data, including executable, will be placed in the configuration-specific directory, namely _<your_archname> or _<your_archname>_mpi. 
-The executable name is tests/test_mie/unix/Obj_<your_archname>/fdtdii.x.+The executable name is tests/test_mie/unix/_<your_archname>/test_mie.x.
  
 ===== Making makefile by yourselves ===== ===== Making makefile by yourselves =====
Line 91: Line 91:
   * use macrodefinition USE_MPI if you compile parallel version   * use macrodefinition USE_MPI if you compile parallel version
  
-====== Compilation on Windows (Visual Studio 2005) ======+====== Compilation on Windows (Visual Studio 2010) ======
  
 How to compile С++ code on Windows using Visual Studio is described [[http://msdn.microsoft.com/en-us/library/60k1461a%28v=vs.80%29.aspx|here]].  How to compile С++ code on Windows using Visual Studio is described [[http://msdn.microsoft.com/en-us/library/60k1461a%28v=vs.80%29.aspx|here]]. 
Line 102: Line 102:
  
 Folder that you type in Location will contain VS project files. Folder that you type in Location will contain VS project files.
-To launch the project you should open file with extension *.vcproj+To launch the project you should open the file with extension *.vcxproj
-At the left side of the Visual Studio redactor you can find Solution Explorer window+At the left side of the Visual Studio editor you can find Solution Explorer window
  
 {{:install:install_windows_2.png|}} {{:install:install_windows_2.png|}}
Line 149: Line 149:
 If this path includes more the one folders, they should be separated by commas.\\ If this path includes more the one folders, they should be separated by commas.\\
 If there are some library files *.lib to link with your code, they should be specified (separated by space) in Project > Project Properties > Configuration Properties > Linker > Input > Additional Dependencies.  If there are some library files *.lib to link with your code, they should be specified (separated by space) in Project > Project Properties > Configuration Properties > Linker > Input > Additional Dependencies. 
-Default folders for header or library files should be specified in Tools Options Project and Solutions > VC++ Directories (Include Files or Library Files).+Default folders for header or library files should be specified in Project Project Properties Configuration Properties > VC++ Directories (Include Files or Library Files).
  
-{{:install:install_windows_4.png|}} +<html> <!--{{:install:install_windows_4.png|}} 
-\\+
 \\ \\
 +\\--></html>
  
 ===== How to compile EMTL in Windows ===== ===== How to compile EMTL in Windows =====
  
-You can use ready project file tests/test_mie/vs10/test_mie.vcproj.+You can use ready project (MS VS2010 or later) file tests/test_mie/vs10/test_mie.vcxproj.
  
 ===== Making project by yourselves ===== ===== Making project by yourselves =====
 
/home/kintechlab/fdtd.kintechlab.com/docs/data/attic/en/installation.1350515711.txt.gz · Last modified: 2012/10/18 03:15 by deinega     Back to top