diff options
author | Vassil Keremidchiev <varosi@gmail.com> | 2017-05-29 15:34:30 +0300 |
---|---|---|
committer | Vassil Keremidchiev <varosi@gmail.com> | 2017-05-29 15:34:30 +0300 |
commit | f2eadcbadb07aaf93c8e727488c1198ff22e17f2 (patch) | |
tree | acbe71d64997116123106cc32c7e36191f4707c7 | |
parent | 020c0e092707101d69dbe4c73944a4352a7aa1bc (diff) |
Support for LTS 8.15 (GHC 8.0.2) under Windows
Updated documentation with working solution under Windows.
-rw-r--r-- | INSTALL.md | 39 | ||||
-rw-r--r-- | packages/base/hmatrix.cabal | 2 | ||||
-rw-r--r-- | stack.yaml | 2 |
3 files changed, 27 insertions, 16 deletions
@@ -33,6 +33,31 @@ Via MacPorts: | |||
33 | 33 | ||
34 | ## Windows ############################################### | 34 | ## Windows ############################################### |
35 | 35 | ||
36 | ### Stack-based build (prefered) | ||
37 | |||
38 | Similar should be build under other OSes, like Linux and OSX. This recipe is for stack 1.4.0 - tested and working. | ||
39 | |||
40 | 1) | ||
41 | |||
42 | > stack setup | ||
43 | |||
44 | 2) Download and unzip somewhere OpenBLAS http://www.openblas.net/ | ||
45 | |||
46 | 3) 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 | |||
55 | 3) 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 |
37 | the dlls contributed by Gilberto Camara available in [gsl-lapack-windows.zip][winpack]. | 62 | the 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 | |||
72 | Similar should be build under other OSes, like Linux and OSX. | ||
73 | |||
74 | 1) | ||
75 | |||
76 | > stack setup | ||
77 | |||
78 | 2) Download and unzip somewhere OpenBLAS http://www.openblas.net/ | ||
79 | |||
80 | 3) 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 | ||
86 | After installation we can verify that the library works as expected: | 97 | After 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 | ||
@@ -14,4 +14,4 @@ packages: | |||
14 | - packages/glpk/ | 14 | - packages/glpk/ |
15 | - packages/base/ | 15 | - packages/base/ |
16 | extra-deps: [] | 16 | extra-deps: [] |
17 | resolver: lts-3.3 | 17 | resolver: lts-8.15 |