summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--INSTALL.md39
-rw-r--r--packages/base/hmatrix.cabal2
-rw-r--r--stack.yaml2
3 files changed, 27 insertions, 16 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:
diff --git a/packages/base/hmatrix.cabal b/packages/base/hmatrix.cabal
index f1bc8e6..51df463 100644
--- a/packages/base/hmatrix.cabal
+++ b/packages/base/hmatrix.cabal
@@ -121,7 +121,7 @@ library
121 121
122 if os(windows) 122 if os(windows)
123 if flag(openblas) 123 if flag(openblas)
124 extra-libraries: libopenblas, libgcc_s_seh-1, libgfortran-3, libquadmath-0 124 extra-libraries: libopenblas, libgcc_s_seh-1, libgfortran, libquadmath-0
125 else 125 else
126 extra-libraries: blas lapack 126 extra-libraries: blas lapack
127 127
diff --git a/stack.yaml b/stack.yaml
index ee89f64..1198e57 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -14,4 +14,4 @@ packages:
14- packages/glpk/ 14- packages/glpk/
15- packages/base/ 15- packages/base/
16extra-deps: [] 16extra-deps: []
17resolver: lts-3.3 17resolver: lts-8.15