diff options
author | Alberto Ruiz <aruiz@um.es> | 2017-06-01 10:11:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-01 10:11:24 +0200 |
commit | a08df91da6362d348635211a6d77d85501a72ab2 (patch) | |
tree | 75d9bfed7206d92426eeb8f0e1d4602b7ac181eb | |
parent | 020c0e092707101d69dbe4c73944a4352a7aa1bc (diff) | |
parent | 80d809f7e6df7196bb711420698f173c7a8e6e9c (diff) |
Merge pull request #229 from varosi/varosi/lts815
Support for LTS 8.15 (GHC 8.0.2) under Windows
-rw-r--r-- | INSTALL.md | 39 | ||||
-rw-r--r-- | packages/base/hmatrix.cabal | 4 | ||||
-rw-r--r-- | stack.yaml | 2 |
3 files changed, 28 insertions, 17 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..7015695 100644 --- a/packages/base/hmatrix.cabal +++ b/packages/base/hmatrix.cabal | |||
@@ -1,5 +1,5 @@ | |||
1 | Name: hmatrix | 1 | Name: hmatrix |
2 | Version: 0.18.0.0 | 2 | Version: 0.18.0.1 |
3 | License: BSD3 | 3 | License: BSD3 |
4 | License-file: LICENSE | 4 | License-file: LICENSE |
5 | Author: Alberto Ruiz | 5 | Author: Alberto Ruiz |
@@ -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 |