首页 > 解决方案 > 即使我安装了 CMake 也找不到 fortran

问题描述

我一直在尝试通过 ultimaker源代码编辑 cura并尝试使用 CMake 编译它,但即使我安装了 fortran,我似乎也无法做到这一点

(我使用 manjaro linux)

这是我的 CMake 控制台输出

The C compiler identification is GNU 10.1.0
The CXX compiler identification is GNU 10.1.0
Check for working C compiler: /usr/bin/cc
Check for working C compiler: /usr/bin/cc - works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Detecting C compile features
Detecting C compile features - done
Check for working CXX compiler: /usr/bin/c++
Check for working CXX compiler: /usr/bin/c++ - works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Building for Linux
Prepare lib and lib64 on Linux...
ln: failed to create symbolic link 'lib64': Permission denied

CMake Error at /usr/share/cmake-3.17/Modules/CMakeDetermineFortranCompiler.cmake:33 (message):
  Could not find compiler set in environment variable FC:

  CMAKE_Fortran_COMPILER-NOTFOUND.
Call Stack (most recent call first):
  projects/openblas.cmake:3 (enable_language)
  CMakeLists.txt:58 (include)


Configuring incomplete, errors occurred!
See also "/home/alsoussi/Projects/NewPrinter/cura/source/cura-build-environment/build/CMakeFiles/CMakeOutput.log".

这是我的 CMakeOutput.log 文件

(日志文件太大所以这里是一个github页面

标签: cmakefortran

解决方案


推荐阅读