How to Build ARPACK in Windows10 with Microsoft Visual Studio 2015

There are some websites that I had used:http://www.cnblogs.com/hellraider/archive/2012/09/29/2707231.html

http://www.recheliu.org/memo/buildarpackonwindowsforvisualstudio


step 1: Download mingw-w64-install and install.I installed MinGW-64 to C:\Program Files (x86)\mingw-w64.

step 2: To use MinGW shell, I installed mingw-get-inst-20120426.exe and choosed c,c++,fortran,msys.

step 3: Download ARPACK and unzip,change ARmake.inc as following:

home = /d/ARPACK
PLAT = x64
FC = /c/Program\ Files\ \(x86\)/mingw-w64/i686-4.9.3-posix-dwarf-rt_v4-rev1/mingw32/bin/gfortran.exe
FFLAGS    = -O
RANLIB = /c/Program\ Files\ \(x86\)/mingw-w64/i686-4.9.3-posix-dwarf-rt_v4-rev1/mingw32/bin/ranlib.exe



step 4:open MinGW shell,and
cd /d/ARPACK

step 5:
export PATH=$PATH:/c/Program\ Files\ \(x86\)/mingw-w64/i686-4.9.3-posix-dwarf-rt_v4-rev1/mingw32/opt/bin


step 6:Change d/ARPACK/UTIL/second.f, Remove the sentence: EXTERNAL           ETIME.


step 7:compile the .f to .o

make lib

step 8:wrap the *.o to .dll

/c/Program\ Files\ \(x86\)/mingw-w64/i686-4.9.3-posix-dwarf-rt_v4-rev1/mingw32/bin/dllwrap.exe --export-all-symbols BLAS/*.o LAPACK/*.o SRC/*.o UTIL/*.o -lgfortran --output-def arpack_x64.def -o arpack_x64.dll

step 9: Open a Visual Studio (64-bit) Command Prompt and:

cd d:\ARPACK

step 10: Generate the library: 

lib.exe /machine:X86 /def:arpack_x64.def

then,you can use the .dll and .lib ~

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值