summaryrefslogtreecommitdiff
path: root/INSTALL.md
diff options
context:
space:
mode:
Diffstat (limited to 'INSTALL.md')
-rw-r--r--INSTALL.md39
1 files changed, 25 insertions, 14 deletions
diff --git a/INSTALL.md b/INSTALL.md
index e48064d..9f5761f 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -33,6 +33,31 @@ Via MacPorts:
33 33
34## Windows ############################################### 34## Windows ###############################################
35 35
36### Stack-based build (prefered)
37
38Similar should be build under other OSes, like Linux and OSX. This recipe is for stack 1.4.0 - tested and working.
39
401)
41
42 > stack setup
43
442) Download and unzip somewhere OpenBLAS http://www.openblas.net/
45
463) In MSYS2 console of Stack, i.e.: C:\Users\{User}\AppData\Local\Programs\stack\x86_64-windows\msys2-{version}\msys2_shell.bat
47
48 > cd /.../OpenBLAS
49 > pacman -Sy
50 > pacman -S make perl gcc-fortran
51 > make clean
52 > make
53 > make install
54
553) Then in normal Windows console for building hmatrix base lib (fill in user name, versions and check if paths are different on your machine):
56
57 > stack install --flag hmatrix:openblas --extra-include-dirs=C:\Users\{User}\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\opt\OpenBLAS\include --extra-lib-dirs=C:\Users\{User}\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\opt\OpenBLAS\bin --extra-lib-dirs=C:\Users\{User}\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\usr\lib\gcc\x86_64-pc-msys\6.3.0\
58
59### Cabal-based build
60
36(Not tested). It should be possible to install the new package hmatrix >= 0.16 using 61(Not tested). It should be possible to install the new package hmatrix >= 0.16 using
37the dlls contributed by Gilberto Camara available in [gsl-lapack-windows.zip][winpack]. 62the dlls contributed by Gilberto Camara available in [gsl-lapack-windows.zip][winpack].
38 63
@@ -67,20 +92,6 @@ using this method.
67 92
68 > cabal install --flags=openblas --extra-lib-dirs=C:\...\OpenBLAS\lib --extra-include-dirs=C:\...\OpenBLAS\include 93 > cabal install --flags=openblas --extra-lib-dirs=C:\...\OpenBLAS\lib --extra-include-dirs=C:\...\OpenBLAS\include
69 94
70### Stack-based Windows build
71
72Similar should be build under other OSes, like Linux and OSX.
73
741)
75
76 > stack setup
77
782) Download and unzip somewhere OpenBLAS http://www.openblas.net/
79
803) Example in a normal Windows cmd for building hmatrix base lib:
81
82 > stack install hmatrix --flag hmatrix:openblas --extra-lib-dirs=C:\...\OpenBLAS\lib --extra-include-dirs=C:\...\OpenBLAS\include
83
84## Tests ############################################### 95## Tests ###############################################
85 96
86After installation we can verify that the library works as expected: 97After installation we can verify that the library works as expected: