If you DO NOT have INTEL compilers installed on your machine, you will need to install MinGW 32 bits or MinGW-w64 and then download the Prebuilt dynamic libraries using Mingw .
1. Prebuilt dynamic libraries using Mingw
原文
1.1抓BLAS跟LAPACK的lib與dll檔.
有Release與Debug兩種與x64與win32總共四種可以抓。我自己抓 win32 debug 與
release。
1.2 把剛下載的lib 路徑加到Visuall C++ (MSVC) 的路徑中
VC2010 把Link lib的設定移到專案的設定中。有兩個地方要加 第一個是在專案的
"Property -> Linker > General > Additional Library Directory" 加入剛下載 *.lib 檔的資料
夾。
第二個是在"Linker > Input > Additional Dependencies" 加入 "liblapack.lib;libblas.lib"。
1.3 加入 liblapack.dll 與 libblas.dll
有兩種方法可以讓這兩個檔案在執行連結成功。第一個與最後編譯出來的執行檔放
在一起。第二個是江浙兩個檔案丟到"WINDOWS\system32"下。
1.4 GNU runtime DLLs
Information: Those libraries were built with CMAKE for Visual Studio 2010 and Mingw compilers and correspond to LAPACK 3.4.0.
- Download the BLAS and LAPACK dll and lib that correspond to your need. See table below
- Link your C application built with MSVC with the BLAS and LAPACK libraries (the lib files) you just downloaded. In your project properties, change the properties "Linker > General > Additional Library Directory" to tell Visual Studio where the libraries are, and also add the name of your BLAS and LAPACK libraries in "Linker > Input > Additional Dependencies", just put "liblapack.lib;libblas.lib"
- Once your application compiled correctly, do not forget to copy the liblapack.dll and libblas.dll where your executable is or the make sure that the dll are on your system path or put them in the WINDOWS\system32 folder, else binary won't run
- Your application will also require the GNU runtime DLLs ( both libgfortran-3.dll and libgcc_s_dw2-1.dll are needed.) from MinGW to be available. Just put the GNU runtime directory (for example, for 32 bits C:\MinGW\bin) in your PATH, you should be good to go
1.1抓BLAS跟LAPACK的lib與dll檔.
有Release與Debug兩種與x64與win32總共四種可以抓。我自己抓 win32 debug 與
release。
1.2 把剛下載的lib 路徑加到Visuall C++ (MSVC) 的路徑中
VC2010 把Link lib的設定移到專案的設定中。有兩個地方要加 第一個是在專案的
"Property -> Linker > General > Additional Library Directory" 加入剛下載 *.lib 檔的資料
夾。
第二個是在"Linker > Input > Additional Dependencies" 加入 "liblapack.lib;libblas.lib"。
1.3 加入 liblapack.dll 與 libblas.dll
有兩種方法可以讓這兩個檔案在執行連結成功。第一個與最後編譯出來的執行檔放
在一起。第二個是江浙兩個檔案丟到"WINDOWS\system32"下。
1.4 GNU runtime DLLs
執行時仍需要連結到Mingw 的dll檔,libgfortran-3.dll 與 libgcc_s_dw2-1.dll。所以在裝完
MinGW後,要將路徑(C:\MinGW\bin)加到Windows的環境變數Path中。
No comments:
Post a Comment