Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. CMAKE_FORTRAN
Forum Updated to NodeBB v4.3 + New Features

CMAKE_FORTRAN

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 301 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SergioQC
    wrote on last edited by
    #1

    HI!
    I am new to Qt, and I do not do much online programming.
    I am trying to set up an environment to compile in Fortran using QT. I followed all instructions and managed to install everything. But when I just try to compile the most basic Fortran lines, I get this message:

    /Users/Sergio/Test_QT/CMakeLists.txt:7: error: The CMAKE_Fortran_COMPILER: /usr/local/bin/gfortran is not a full path to an existing compiler tool. Tell CMake where to find the compiler by setting either the environment variable "FC" or the CMake cache entry CMAKE_Fortran_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.

    Something similar I got with eclipse and I corrected the path to:
    /usr/bin/gcc. or /usr/bin/gfortran

    But I cannot find how to do that in Qt.

    I am afraid this is very basic, but I just do not know how to do it.

    I appreciate is somebody can point me in the right direction.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Can you share your CMakeLists.txt file ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved