diff options
-rw-r--r-- | INSTALL.md | 16 | ||||
-rw-r--r-- | stack.yaml | 18 |
2 files changed, 28 insertions, 6 deletions
@@ -57,25 +57,29 @@ using this method. | |||
57 | 57 | ||
58 | ### Alternative Windows build | 58 | ### Alternative Windows build |
59 | 59 | ||
60 | 1) > cabal update | 60 | 1) |
61 | |||
62 | > cabal update | ||
61 | 63 | ||
62 | 2) Download and unzip somewhere OpenBLAS http://www.openblas.net/ | 64 | 2) Download and unzip somewhere OpenBLAS http://www.openblas.net/ |
63 | 65 | ||
64 | 3) In a normal Windows cmd: | 66 | 3) In a normal Windows cmd: |
65 | 67 | ||
66 | > cabal install --flags=openblas --extra-lib-dirs=C:\...\OpenBLAS\lib --extra-include-dir=C:\...\OpenBLAS\include | 68 | > cabal install --flags=openblas --extra-lib-dirs=C:\...\OpenBLAS\lib --extra-include-dir=C:\...\OpenBLAS\include |
67 | 69 | ||
68 | ### Stack-based Windows build | 70 | ### Stack-based Windows build |
69 | 71 | ||
70 | 1) > cd packages\base | 72 | Similar should be build under other OSes, like Linux and OSX. |
71 | 73 | ||
72 | 1) > stack setup | 74 | 1) |
75 | |||
76 | > stack setup | ||
73 | 77 | ||
74 | 2) Download and unzip somewhere OpenBLAS http://www.openblas.net/ | 78 | 2) Download and unzip somewhere OpenBLAS http://www.openblas.net/ |
75 | 79 | ||
76 | 3) In a normal Windows cmd: | 80 | 3) Example in a normal Windows cmd for building hmatrix base lib: |
77 | 81 | ||
78 | > stack install --flag hmatrix:openblas --extra-lib-dirs=C:\...\OpenBLAS\lib --extra-include-dir=C:\...\OpenBLAS\include | 82 | > stack install hmatrix --flag hmatrix:openblas --extra-lib-dirs=C:\...\OpenBLAS\lib --extra-include-dir=C:\...\OpenBLAS\include |
79 | 83 | ||
80 | ## Tests ############################################### | 84 | ## Tests ############################################### |
81 | 85 | ||
diff --git a/stack.yaml b/stack.yaml new file mode 100644 index 0000000..88394c7 --- /dev/null +++ b/stack.yaml | |||
@@ -0,0 +1,18 @@ | |||
1 | flags: | ||
2 | hmatrix-special: | ||
3 | safe-cheap: false | ||
4 | hmatrix-tests: | ||
5 | gsl: true | ||
6 | hmatrix: | ||
7 | openblas: false | ||
8 | hmatrix-gsl: | ||
9 | onlygsl: false | ||
10 | packages: | ||
11 | - packages\tests\ | ||
12 | - packages\special\ | ||
13 | - packages\sparse\ | ||
14 | - packages\gsl\ | ||
15 | - packages\glpk\ | ||
16 | - packages\base\ | ||
17 | extra-deps: [] | ||
18 | resolver: lts-3.3 | ||