haskell-numerics / hmatrix

Linear algebra and numerical computation
381 stars 104 forks source link

Windows + OpenBLAS: unknown symbol `_dgesvd_' #186

Closed mvoidex closed 8 years ago

mvoidex commented 8 years ago

I've built OpenBLAS-0.2.18 with make command using msys from http://sourceforge.net/projects/mingwbuilds/files/external-binary-packages/ and ghc's mingw. Then I've cabal install hmatrix --flags=openblas --extra-lib-dirs=d:\users\voidex\Documents\Projects\OpenBLAS-0.2.18 --extra-include-dirs=d:\users\voidex\Documents\Projects\OpenBLAS-0.2.18 hmatrix was installed, but i've got this error in ghci:

PS D:\users\voidex\Documents\Projects\OpenBLAS-0.2.18> ghci
GHCi, version 7.10.3: http://www.haskell.org/ghc/  :? for help
λ> import Numeric.LinearAlgebra
λ> vector [1,2,3]
<interactive>: C:\Users\voide\AppData\Roaming\cabal\i386-windows-ghc-7.10.3\hmatrix-0.17.0.1-3LR3NBOdXmxJHfXSTohL8b\HShmatrix-0.17.0.1-3LR3NBOdXmxJHfXSTohL8b.o: unknown symbol `_dgesvd_'
ghc.exe: unable to load package `hmatrix-0.17.0.1'

Is there something wrong with my installation?

mvoidex commented 8 years ago

Able to install it https://github.com/albertoruiz/hmatrix/issues/154#issuecomment-218420973 with @maxc01 fix: https://github.com/maxc01/hmatrix/commit/697e6c7dc06c2607a7c5815009744c1746bd81a0