Лично я бы попробовал её установить: найти, где лежит make
В общем то про это я и спрашивал, думал знающий человек подскажет что и куда правильно писать...
И на стековерфлоу я смотрел, в том числе и по указанной ссылке.
Ну как бы то ни было попытки установить пути к make через команду SET не дали никакого результата.
Потом я таки допер прописать это прямо в CMake до себя самого
и о чудо, оно пошло дальше и распознало похоже все остальные переменные скрипта. Переустановил компиляторы, попробовал оставить только х64, и теперь даже пишет, что компиляторы опознаны!
Но все равно выдал следующий бред:
(Оффтоп)
Код:
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
The C compiler identification is GNU 11.3.0
CMake Warning (dev) at bin/CMakeFiles/3.25.0/CMakeCCompiler.cmake:1 (set):
Syntax error in cmake code at
C:/Users/Sergey/Downloads/lapack-3.11.0/LAPACKE/bin/CMakeFiles/3.25.0/CMakeCCompiler.cmake:1
when parsing string
D:\Program Files\cygwin\bin\x86_64-w64-mingw32-gcc.exe
Invalid escape sequence \P
Policy CMP0010 is not set: Bad variable reference syntax is an error. Run
"cmake --help-policy CMP0010" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at bin/CMakeFiles/3.25.0/CMakeCCompiler.cmake:24 (set):
Syntax error in cmake code at
C:/Users/Sergey/Downloads/lapack-3.11.0/LAPACKE/bin/CMakeFiles/3.25.0/CMakeCCompiler.cmake:24
when parsing string
D:\Program Files\cygwin\bin\x86_64-w64-mingw32-ar.exe
Invalid escape sequence \P
Policy CMP0010 is not set: Bad variable reference syntax is an error. Run
"cmake --help-policy CMP0010" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at bin/CMakeFiles/3.25.0/CMakeCCompiler.cmake:25 (set):
Syntax error in cmake code at
C:/Users/Sergey/Downloads/lapack-3.11.0/LAPACKE/bin/CMakeFiles/3.25.0/CMakeCCompiler.cmake:25
when parsing string
D:\Program Files\cygwin\bin\x86_64-w64-mingw32-gcc-ar.exe
Invalid escape sequence \P
Policy CMP0010 is not set: Bad variable reference syntax is an error. Run
"cmake --help-policy CMP0010" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at bin/CMakeFiles/3.25.0/CMakeCCompiler.cmake:26 (set):
Syntax error in cmake code at
C:/Users/Sergey/Downloads/lapack-3.11.0/LAPACKE/bin/CMakeFiles/3.25.0/CMakeCCompiler.cmake:26
when parsing string
D:\Program Files\cygwin\bin\x86_64-w64-mingw32-ranlib.exe
Invalid escape sequence \P
Policy CMP0010 is not set: Bad variable reference syntax is an error. Run
"cmake --help-policy CMP0010" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at bin/CMakeFiles/3.25.0/CMakeCCompiler.cmake:27 (set):
Syntax error in cmake code at
C:/Users/Sergey/Downloads/lapack-3.11.0/LAPACKE/bin/CMakeFiles/3.25.0/CMakeCCompiler.cmake:27
when parsing string
D:\Program Files\cygwin\bin\x86_64-w64-mingw32-gcc-ranlib.exe
Invalid escape sequence \P
Policy CMP0010 is not set: Bad variable reference syntax is an error. Run
"cmake --help-policy CMP0010" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at bin/CMakeFiles/3.25.0/CMakeCCompiler.cmake:28 (set):
Syntax error in cmake code at
C:/Users/Sergey/Downloads/lapack-3.11.0/LAPACKE/bin/CMakeFiles/3.25.0/CMakeCCompiler.cmake:28
when parsing string
D:\Program Files\cygwin\bin\x86_64-w64-mingw32-ld.exe
Invalid escape sequence \P
Policy CMP0010 is not set: Bad variable reference syntax is an error. Run
"cmake --help-policy CMP0010" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt
This warning is for project developers. Use -Wno-dev to suppress it.
The CXX compiler identification is GNU 11.3.0
CMake Warning (dev) at bin/CMakeFiles/3.25.0/CMakeCXXCompiler.cmake:1 (set):
Syntax error in cmake code at
C:/Users/Sergey/Downloads/lapack-3.11.0/LAPACKE/bin/CMakeFiles/3.25.0/CMakeCXXCompiler.cmake:1
when parsing string
D:\Program Files\cygwin\bin\x86_64-w64-mingw32-g++.exe
Invalid escape sequence \P
Policy CMP0010 is not set: Bad variable reference syntax is an error. Run
"cmake --help-policy CMP0010" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at bin/CMakeFiles/3.25.0/CMakeCXXCompiler.cmake:25 (set):
Syntax error in cmake code at
C:/Users/Sergey/Downloads/lapack-3.11.0/LAPACKE/bin/CMakeFiles/3.25.0/CMakeCXXCompiler.cmake:25
when parsing string
D:\Program Files\cygwin\bin\x86_64-w64-mingw32-ar.exe
Invalid escape sequence \P
Policy CMP0010 is not set: Bad variable reference syntax is an error. Run
"cmake --help-policy CMP0010" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at bin/CMakeFiles/3.25.0/CMakeCXXCompiler.cmake:26 (set):
Syntax error in cmake code at
C:/Users/Sergey/Downloads/lapack-3.11.0/LAPACKE/bin/CMakeFiles/3.25.0/CMakeCXXCompiler.cmake:26
when parsing string
D:\Program Files\cygwin\bin\x86_64-w64-mingw32-gcc-ar.exe
Invalid escape sequence \P
Policy CMP0010 is not set: Bad variable reference syntax is an error. Run
"cmake --help-policy CMP0010" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at bin/CMakeFiles/3.25.0/CMakeCXXCompiler.cmake:27 (set):
Syntax error in cmake code at
C:/Users/Sergey/Downloads/lapack-3.11.0/LAPACKE/bin/CMakeFiles/3.25.0/CMakeCXXCompiler.cmake:27
when parsing string
D:\Program Files\cygwin\bin\x86_64-w64-mingw32-ranlib.exe
Invalid escape sequence \P
Policy CMP0010 is not set: Bad variable reference syntax is an error. Run
"cmake --help-policy CMP0010" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at bin/CMakeFiles/3.25.0/CMakeCXXCompiler.cmake:28 (set):
Syntax error in cmake code at
C:/Users/Sergey/Downloads/lapack-3.11.0/LAPACKE/bin/CMakeFiles/3.25.0/CMakeCXXCompiler.cmake:28
when parsing string
D:\Program Files\cygwin\bin\x86_64-w64-mingw32-gcc-ranlib.exe
Invalid escape sequence \P
Policy CMP0010 is not set: Bad variable reference syntax is an error. Run
"cmake --help-policy CMP0010" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at bin/CMakeFiles/3.25.0/CMakeCXXCompiler.cmake:29 (set):
Syntax error in cmake code at
C:/Users/Sergey/Downloads/lapack-3.11.0/LAPACKE/bin/CMakeFiles/3.25.0/CMakeCXXCompiler.cmake:29
when parsing string
D:\Program Files\cygwin\bin\x86_64-w64-mingw32-ld.exe
Invalid escape sequence \P
Policy CMP0010 is not set: Bad variable reference syntax is an error. Run
"cmake --help-policy CMP0010" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt
This warning is for project developers. Use -Wno-dev to suppress it.
Check for working C compiler: D:\Program Files\cygwin\bin\x86_64-w64-mingw32-gcc.exe
CMake Error at C:/Users/Sergey/Downloads/lapack-3.11.0/LAPACKE/bin/CMakeFiles/3.25.0/CMakeCCompiler.cmake:1 (set):
Syntax error in cmake code at
C:/Users/Sergey/Downloads/lapack-3.11.0/LAPACKE/bin/CMakeFiles/3.25.0/CMakeCCompiler.cmake:1
when parsing string
D:\Program Files\cygwin\bin\x86_64-w64-mingw32-gcc.exe
Invalid character escape '\P'.
Call Stack (most recent call first):
C:/Users/Sergey/Downloads/lapack-3.11.0/LAPACKE/bin/CMakeFiles/CMakeScratch/TryCompile-k1wn7f/CMakeLists.txt:4 (project)
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error at D:/Program Files/CMake/share/cmake-3.25/Modules/CMakeTestCCompiler.cmake:56 (try_compile):
Failed to configure test project build system.
Call Stack (most recent call first):
CMakeLists.txt
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.25)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
Configuring incomplete, errors occurred!
See also "C:/Users/Sergey/Downloads/lapack-3.11.0/LAPACKE/bin/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Sergey/Downloads/lapack-3.11.0/LAPACKE/bin/CMakeFiles/CMakeError.log".
В общем я наелся и готов послать этот CMake далеко и надолго
zykov Это конечно вариант, оставим это в качестве запасного, спасибо за наводку.
traffic_lightsПро Интел МКЛ не совсем понял, Вы советуете взять его из open api интела?
Про то, что существует такая прекрасная либа я знаю. Использую в основном на C# в MathNET в виде провайдера. Ускоряет очень хорошо.
Но нет, хочется нативный lapack.
Спасибо за наводку.
Оно, конечно, можно, но одно дело советовать сделать в Linux что-то, а другое дело — советовать вообще взять и перейти туда, забыв Винду как страшный сон. Не стоит так торопить ТС.
Как то давно пробовал перейти на линукс. Но проблемы с драйверами тогда заставили отказать от этой идеи. Да и сейчас это слишком радикально.
traffic_lightsПочитал, посмотрел про wsl2, штука заманчивая, занятная.
И в целом мне эта идея нравится. Если ставить то что? Ubuntu последнюю? Я так понял там можно выбирать.
Aritaborian и другие Гуру, Вы согласны с этой идеей? Или Вы имели в виду отдельно ставить, полноценную ОС?
Когда поставлю как проще всего там собрать?