diff options
author | max.suica <max.suica@gmail.com> | 2010-04-21 02:12:08 +0000 |
---|---|---|
committer | max.suica <max.suica@gmail.com> | 2010-04-21 02:12:08 +0000 |
commit | c93a3f89c41a867f5b9bb0dda409e9dc44e76206 (patch) | |
tree | 991726a764cb024fd8a1e39c7488e79b6a54819d | |
parent | c562a040612f89f9866f3173f91a954513befcb8 (diff) |
Windows Install modification.
-rw-r--r-- | INSTALL | 32 | ||||
-rw-r--r-- | hmatrix.cabal | 9 |
2 files changed, 17 insertions, 24 deletions
@@ -15,39 +15,27 @@ INSTALLATION ON WINDOWS ---------------------------------------- | |||
15 | 15 | ||
16 | 1) Install the Haskell Platform (tested with 2009.2.0.2). | 16 | 1) Install the Haskell Platform (tested with 2009.2.0.2). |
17 | 17 | ||
18 | 2) Download and uncompress in a temporary location the following file: | 18 | 2) Download and uncompress hmatrix-x.y.z.tar.gz from Hackage: |
19 | 19 | ||
20 | http://code.haskell.org/hmatrix/gsl-lapack-windows.zip | 20 | http://hackage.haskell.org/package/hmatrix |
21 | |||
22 | It contains a gsl folder, and four DLL's. | ||
23 | |||
24 | 3) Move the gsl folder to | ||
25 | |||
26 | C:\Program Files\Haskell Platform\2009.2.0.2\include | ||
27 | |||
28 | 4) Move the four DLL's to any folder without spaces in the path, e.g.: | ||
29 | 21 | ||
30 | C:\path\to\dll | 22 | 3) Download and uncompress the following file into the hmatrix |
23 | directory, into a subdirectory named gsl-lapack-windows: | ||
31 | 24 | ||
32 | 5) Download and uncompress hmatrix-x.y.z.tar.gz from Hackage: | 25 | http://code.haskell.org/hmatrix/gsl-lapack-windows.zip |
33 | 26 | ||
34 | http://hackage.haskell.org/package/hmatrix | 27 | It contains a gsl folder, and four DLL's. |
35 | 28 | ||
36 | 6) Edit hmatrix.cabal: | 29 | 4) Edit hmatrix.cabal: |
37 | 30 | ||
38 | line 17: build-type: Custom | 31 | line 17: build-type: Custom |
39 | change to: build-type: Simple | 32 | change to: build-type: Simple |
40 | 33 | ||
41 | and at the end of the file add: | 34 | 5) Open a terminal, cd to the hmatrix folder, and run |
42 | |||
43 | extra-libraries: libgsl-0 blas lapack | ||
44 | extra-lib-dirs: C:\path\to\dll | ||
45 | |||
46 | 7) Open a terminal, cd to the hmatrix folder, and run | ||
47 | 35 | ||
48 | > cabal install | 36 | > cabal install |
49 | 37 | ||
50 | 8) If everything is ok we can run the tests: | 38 | 6) If everything is ok we can run the tests: |
51 | 39 | ||
52 | > runhaskell examples\tests.hs | 40 | > runhaskell examples\tests.hs |
53 | 41 | ||
diff --git a/hmatrix.cabal b/hmatrix.cabal index 894bff0..dfb3c6a 100644 --- a/hmatrix.cabal +++ b/hmatrix.cabal | |||
@@ -65,7 +65,7 @@ flag unsafe | |||
65 | 65 | ||
66 | library | 66 | library |
67 | 67 | ||
68 | Build-Depends: base >= 3 && < 5, | 68 | Build-Depends: base >= 4 && < 5, |
69 | array, | 69 | array, |
70 | storable-complex, | 70 | storable-complex, |
71 | process | 71 | process |
@@ -140,14 +140,19 @@ library | |||
140 | include-dirs: /opt/local/include | 140 | include-dirs: /opt/local/include |
141 | extra-libraries: gsl | 141 | extra-libraries: gsl |
142 | frameworks: Accelerate | 142 | frameworks: Accelerate |
143 | |||
144 | if os(windows) | ||
145 | extra-libraries: libgsl-0 blas lapack | ||
146 | extra-lib-dirs: ./gsl-lapack-windows | ||
147 | include-dirs: ./gsl-lapack-windows | ||
143 | 148 | ||
144 | -- The extra-libraries required for GSL and LAPACK | 149 | -- The extra-libraries required for GSL and LAPACK |
145 | -- should now be automatically detected by configure(.hs) | 150 | -- should now be automatically detected by configure(.hs) |
146 | 151 | ||
152 | |||
147 | extra-libraries: | 153 | extra-libraries: |
148 | extra-lib-dirs: | 154 | extra-lib-dirs: |
149 | 155 | ||
150 | source-repository head | 156 | source-repository head |
151 | type: darcs | 157 | type: darcs |
152 | location: http://code.haskell.org/hmatrix | 158 | location: http://code.haskell.org/hmatrix |
153 | |||