Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-17530

Issue opening cmake file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 4.3.0
    • Qt Creator 4.2.0
    • Linux Mint 18.1 x86
      cmake version 3.5.1
      g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
      gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

    Description

      Just did set up fresh Linux Mint 18.1 x64 with latest Qt 5.8 RC dated Dec 1 2016 from your website. I also pulled my cmake project from repo and did try to load it. Please mind that this all is fresh install. I got cmake error that I will list below. The strange thing is that I am also able to load same project with same Qt version on my Linux Mint 18.1 x64 VM running in Parallels 12 on my Mac. Except in my VM I did run previous version of Qt versus my desktop is fresh clean install.

      When I load my cmake project first time I get this error

      Running "/usr/bin/cmake /home/robert/projects/bus '-GCodeBlocks - Unix Makefiles' -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_CXX_COMPILER:STRING=/usr/bin/g++ -DCMAKE_C_COMPILER:STRING= -DCMAKE_PREFIX_PATH:STRING=/opt/Qt/5.8/gcc_64 -DQT_QMAKE_EXECUTABLE:STRING=/opt/Qt/5.8/gcc_64/bin/qmake" in /tmp/qtc-cmake-JyKWCV.
      – The CXX compiler identification is GNU 5.4.0
      – The C compiler identification is unknown
      – Check for working CXX compiler: /usr/bin/g++
      – Check for working CXX compiler: /usr/bin/g++ – works
      – Detecting CXX compiler ABI info
      – Detecting CXX compiler ABI info - done
      – Detecting CXX compile features
      – Detecting CXX compile features - done
      CMake Error at CMakeLists.txt:15 (project):
      No CMAKE_C_COMPILER could be found.

      Tell CMake where to find the compiler by setting either the environment
      variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
      the compiler, or to the compiler name if it is in the PATH.

      – Configuring incomplete, errors occurred!
      See also "/tmp/qtc-cmake-JyKWCV/CMakeFiles/CMakeOutput.log".
      See also "/tmp/qtc-cmake-JyKWCV/CMakeFiles/CMakeError.log".

          • cmake process exited with exit code 1.

      If you look at attached screen-shot You see that
      Compiler C: is <No compiler> // Should this be GCC?
      Compiler C++ is GCC // And this G++?

      Also please auto detected Compilers section in attached screen shot

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hunger Tobias Hunger
            oxoocoffee Robert J. Gebis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes