简体   繁体   English

无法安装BLAS,以及CMakeList的用途?

[英]Trouble installing BLAS, and the purpose of CMakeLists?

I am trying to install openBLAS for C++, to use in Visual Studio (2017) on windows 64bit. 我正在尝试安装openBLAS for C ++,以便在Windows 64位上的Visual Studio(2017)中使用。 There is a step by step installation here https://github.com/xianyi/OpenBLAS/wiki/How-to-use-OpenBLAS-in-Microsoft-Visual-Studio . 这里有一个分步安装的https://github.com/xianyi/OpenBLAS/wiki/How-to-use-OpenBLAS-in-Microsoft-Visual-Studio

When I get to step 6 and enter the command it comes back with the message: "CMake Error: The source directory "directory name" does not appear to contain CMakeLists.txt." 当我转到第6步并输入命令时,它会返回消息:“ CMake错误:源目录“目录名称”似乎不包含CMakeLists.txt。

I am not familiar with CMake files and have checked that all the correct packages are installed. 我不熟悉CMake文件,并检查了所有正确的软件包是否已安装。 I can create a CMakeLists.txt in the folder above but am not sure what to put in it/why it wouldn't add that as a step in the installation. 我可以在上面的文件夹中创建CMakeLists.txt,但不确定要放入哪个内容/为什么在安装过程中不会添加该内容。 Any advice? 有什么建议吗?

Also when I type link into bash as instructed it says that are missing operands for that command. 另外,当我按照指示在bash中键入link时,它说该命令缺少操作数。 So I'm not sure if the environment is indeed active. 因此,我不确定环境是否确实处于活动状态。

As you can see, there is a CMakeLists.txt already: https://github.com/xianyi/OpenBLAS/blob/develop/CMakeLists.txt 如您所见,已经有一个CMakeLists.txt: https : //github.com/xianyi/OpenBLAS/blob/develop/CMakeLists.txt

So where you got all the files, create a build folder, go in, and run the command. 因此,在获取所有文件的位置,创建了一个构建文件夹,然后进入并运行命令。 You can see that there is a .. that will tell CMake to get the CMakeLists.txt from OpenBLAS. 您会看到有一个..告诉CMake从OpenBLAS获取CMakeLists.txt。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM