summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--INSTALL32
-rw-r--r--hmatrix.cabal9
2 files changed, 17 insertions, 24 deletions
diff --git a/INSTALL b/INSTALL
index 8711ed5..91397d3 100644
--- a/INSTALL
+++ b/INSTALL
@@ -15,39 +15,27 @@ INSTALLATION ON WINDOWS ----------------------------------------
15 15
161) Install the Haskell Platform (tested with 2009.2.0.2). 161) Install the Haskell Platform (tested with 2009.2.0.2).
17 17
182) Download and uncompress in a temporary location the following file: 182) 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
243) Move the gsl folder to
25
26 C:\Program Files\Haskell Platform\2009.2.0.2\include
27
284) Move the four DLL's to any folder without spaces in the path, e.g.:
29 21
30 C:\path\to\dll 223) Download and uncompress the following file into the hmatrix
23 directory, into a subdirectory named gsl-lapack-windows:
31 24
325) 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
366) Edit hmatrix.cabal: 294) 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: 345) 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
467) Open a terminal, cd to the hmatrix folder, and run
47 35
48 > cabal install 36 > cabal install
49 37
508) If everything is ok we can run the tests: 386) 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
66library 66library
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