本文介绍了如何在Windows上安装LAPACK for MSVS 2010?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我正在使用ITPP库(IT ++库)进行我的一个项目。为了使用这个库的eigen_sym()函数,它要求安装LAPACK。我试过Windows的直接预构建库,但仍然得到的错误。最后在以下网站上: http://icl.cs.utk.edu/lapack-for-windows/lapack/#libraries 我发现了一个解决方案在构建说明以创建LAPACK和LAPACKE 3.5.0 dll与Windows的MinGW可能工作。 我的cmake build目标是 E:/ LAPACK 输入以下命令时,在cmd提示符下输入错误: cd E:/ LAPACK 3.5.0>输入 C:/MinGW/bin/mingw32-make.exe>输入 我得到 mingw32-make.exe>未找到指定的目标和找不到make文件。停止。 有人可以详细解释步骤6以及告诉我在哪里出问题? 我终于想得到 .dll 和 .lib 文件。 $ b $我可以使用mingw和几乎是从LAPACK页面的构建指南构建LAPACK 3.5 for windows。使用以下步骤 从这里下载lapack.tgz http://netlib.org/lapack/lapack.tgz 解压缩到文件夹。我使用7zip文件管理器解压缩到x:/ Other / test 安装mingw32。我使用这个: http://www.mingw.org/download/installer ,我选择了已安装 mingw32-development-toolkit + mingw32-base + mingw32-gfortran + mingw32-gcc-g ++ strong> msys-base 打开命令提示符 将mingw附加到您的路径 path = C:/ Mingw / bin;%PATH% 将目录切换到您提取的位置lapack:对我来说这是X:\Other \ Test\lapack-3.5.0所以我键入的命令是以下(你的路径将是不同的): C:\Users\jdrescher> x: X:> cd Other\Test\lapack-3.5.0 X:\Other\Test\lapack-3.5.0> 为您的构建创建一个文件夹。我使用build X:\Other\Test\lapack-3.5.0> mkdir build ,然后将目录更改为构建文件夹 X:\Other\Test\lapack-3.5.0> cd build X:\Other\Test\ lapack-3.5.0 \build> 现在使用CMake配置 X:\Other\Test\lapack-3.5.0 \build> cmake -GMinGW Makefiles-D BUILD_SHARED_LIBS = ON -D CMAKE_GNUtoMS = ON .. 现在使用gnu make构建LAPACK X:\Other\Test\lapack-3.5.0\build> c:\MinGW\bin\mingw32-make.exe 注意:此步骤需要几分钟。 步骤完成100%没有错误,我有以下dll在build \bin文件夹: libblas.dll , liblapack.dll , libtmglib.dll 还有以下库和exp文件在build \lib文件夹中: libblas.exp , libblas。 lib , liblapack.exp , liblapack.lib , libtmglib.exp 和 libtmglib.lib 。 I am using the ITPP library (IT++ library) for one of my projects. For using the eigen_sym() function of this library, it asks for installing the LAPACK. I tried the direct prebuilt libraries for Windows but still get the error. Finally on the following site:http://icl.cs.utk.edu/lapack-for-windows/lapack/#librariesI found a solution under "Build Instructions to create LAPACK and LAPACKE 3.5.0 dlls for Windows with MinGW" that might work. I did steps 1 to 5 but got stuck 6 onwards.My destination of the cmake build is E:/LAPACKI got an error while in the cmd prompt while entering:cd E:/LAPACK 3.5.0 >EnterC:/MinGW/bin/mingw32-make.exe >Enteri'm getting mingw32-make.exe> No targets specified and no make file found. Stop.Can someone explain the step 6 onwards in detail and tell me where i'm going wrong?I finally want to get the .dll and .lib files. 解决方案 I was able to build LAPACK 3.5 for windows using mingw and pretty much the build guide from the LAPACK page. Using the following stepsDownload lapack.tgz from here http://netlib.org/lapack/lapack.tgzExtract to a folder. I used 7zip file manager to extract the tarball to x:/Other/testInstall mingw32. I used this: http://www.mingw.org/download/installer and I selected and installed mingw32-developer-toolkit + mingw32-base + mingw32-gfortran + mingw32-gcc-g++ + msys-baseOpen a command promptAppend mingw to your pathpath=C:/Mingw/bin;%PATH% change directory to the location you extracted lapack: For me this was X:\Other\Test\lapack-3.5.0 so the command I typed was the following (your path will be different):C:\Users\jdrescher>x:X:>cd Other\Test\lapack-3.5.0X:\Other\Test\lapack-3.5.0> make a folder for your build. I used buildX:\Other\Test\lapack-3.5.0>mkdir build then change directory to the build folderX:\Other\Test\lapack-3.5.0>cd buildX:\Other\Test\lapack-3.5.0\build>Now configure with CMakeX:\Other\Test\lapack-3.5.0\build>cmake -G "MinGW Makefiles" -D BUILD_SHARED_LIBS=ON -D CMAKE_GNUtoMS=ON ..Now use gnu make to build LAPACKX:\Other\Test\lapack-3.5.0\build>c:\MinGW\bin\mingw32-make.exeNote: This step will take several minutes.After the above steps completed 100% with no errors, I have the following dlls in the build\bin folder: libblas.dll, liblapack.dll, libtmglib.dllAlso the following libraries, and exp files in the build\lib folder: libblas.exp, libblas.lib, liblapack.exp, liblapack.lib, libtmglib.exp and libtmglib.lib. 这篇关于如何在Windows上安装LAPACK for MSVS 2010?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-13 13:17