-
Notifications
You must be signed in to change notification settings - Fork 29
/
README-WIN64.txt
96 lines (74 loc) · 4.7 KB
/
README-WIN64.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
0) Dependencies
0.1) Recommended setup is to have the 32-bit dependencies in \...\dependencies and the 64-bit ones in \...\dependencies-64
0.2) Visual Studio 2012 Professional
1) Needed to download | build in x64:
1.0) Qt - http://download.qt-project.org/official_releases/qt/5.2/5.2.1/qt-opensource-windows-x86-msvc2012_64_opengl-5.2.1.exe
1.1) Xerces & XSD - http://www.codesynthesis.com/products/xsd/download.xhtml
1.2) UMFPACK - tricky, one has to get MinGW & compile it in 64-bits
- MinGW used for compiling AMD and UMFPACK: `Download 64 bit version of MinGW <http://sourceforge.net/projects/mingw/>`_.
- after installing MinGW, add 'your-minGW-installation-directory'/bin to system PATH.
- download latest `SuiteSparse_config <http://www.cise.ufl.edu/research/sparse/SuiteSparse_config/>`_, `AMD <http://www.cise.ufl.edu/research/sparse/amd/>`_, and `UMFPACK <http://www.cise.ufl.edu/research/sparse/umfpack/>`_ to A SINGLE PARENT DIRECTORY (this requirement is one of UMFPACK).
- Add the following lines at the end of file SuiteSparse_config\\SuiteSparse_config.mk:
- CC = gcc
- CXX = gcc
- UMFPACK_CONFIG = -DNBLAS
- RANLIB = echo
- LIB = -lm
- Open all files called 'Makefile' from all three directories and replace all ';' symbols in them with the Windows equivalent '&'
- Follow the instructions in UMFPACK to compile the code with MinGW
- Copy SuiteSparse_config\\SuiteSparse_config.h to 'include' directory
- Copy SuiteSparse_config\\libsuitesparseconfig.a to 'lib' directory and change its extension to Windows equivalent '.lib'.
- Copy AMD\\Include\\amd.h, AMD\\Include\\amd_internal.h, and AMD\\Lib\\libamd.a to 'include', and 'lib' dependecy directories respectively. Change the libamd.a's extension to '.lib'
- Copy UMFPACK\\Include\\* to 'include'
- Copy UMFPACK\\Lib\\libumfpack.a to 'lib' directory and change its extension to Windows equivalent '.lib'.
1.3) MUMPS
- download MUMPS from http://mumps.enseeiht.fr/MUMPS_4.10.0.tar.gz (if the link does not work, look for 4.10 version of MUMPS)
- download WinMUMPS utility from http://sourceforge.net/projects/winmumps/
- download a Fortran compiler (e.g. http://software.intel.com/en-us/intel-fortran-studio-xe-evaluation-options)
- download BLAS (Debug/Release, static/dynamic, 32-bit/64-bit as you like) from http://icl.cs.utk.edu/lapack-for-windows/lapack/index.html#libraries
- compile with VS 2012 for x64 platform (no other settings should be needed)
1.4) ZLIB - https://code.google.com/p/zlib-win64/downloads/list
1.5) Python - http://www.python.org/ftp/python/2.7.3/python-2.7.3.amd64.msi
- Note that python27.dll will be copied to C:\Windows\System32 by the installer
- This is highly important for the side-by-side installation of Python (32bit) and Python (64bit)
-- Here one has to have the .dll in each of the installation folders (read further), and HAVE THOSE IN PATH env. variable
- Recommended way to go about side-by-side installation of Python (32bit) and Python (64bit) is to have them installed in
C:\Python27-32\ and C:\Python27-64\, and rename the currently used version (32bit or 64bit) to C:\Python27\.
- Copy c:\Python27\Lib\site-packages\cython.py to C:\Python27\Scripts
1.6) OpenGL
- Copy
- c:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x64\opengl32.lib
- c:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x64\glu32.lib
- c:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x64\user32.lib
- c:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x64\gdi32.lib
-> to \...\dependencies-64/bin
1.7) Ifconsol.lib
- http://www.gams.com/~svigerske/intel/win64/11.1/
- Save the following to \...\dependencies-64\bin
- ifconsol.lib
- libifcoremd.lib + .dll
- libifcoremdd.lib + .dll
- libifportmd.lib + .dll
- libirc.lib
- libmmd.lib + .dll
- libmmdd.lib + .dll
- svml_disp.lib
- svml_dispmd.lib + .dll
2) Before build
2.1) PATH:
- C:\Python27;C:\Python27\Scripts
- c:\Qt\Qt5.2.1\5.2.1\msvc2012_64_opengl\bin\
- <PATH TO AGROS REPOSITORY>\libs\
- \...\dependencies-64\bin
2.2) Wipe all the x86 outputs from the repository
2.3) CMake.vars
- SET(WITH_QT5 YES)
- set(DEPENDENCIES_ROOT "/.../dependencies-64")
- SET(CMAKE_PREFIX_PATH "C:\\Qt\\Qt5.2.1\\5.2.1\\msvc2012_64_opengl\\")
- SET(ZLIB_ROOT "/.../dependencies-64"")
- SET(OPENGL_LIB_DIR "c:\\Program Files (x86)\\Windows Kits\\8.0\\Lib\\win8\\um\\x64")
3) Build
3.1) CMake: cmake -G "Visual Studio 11 Win64" .
3.2) Open in Visual Studio
3.3) [TEMPORARY WORKAROUND] Go to agros2d_library project properties -> VC++ Directories -> Library Directories and add the directory where you saved Ifconsol.lib (should be \...\dependencies-64\bin).
- build.