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. Qt Creator cannot detect gcc compiler
QtWS25 Last Chance

Qt Creator cannot detect gcc compiler

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 3 Posters 4.8k Views
  • 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.
  • T Offline
    T Offline
    Thuum
    wrote on last edited by
    #1

    Hello,
    I recently installed the new Ubuntu version 14.04 and tried to get the Qt version 5.3.2 to work. But after installing Qt (i tried online and offline installer) i got the error message that qt creator needs a compiler to create the project. Then i saw in the kit settings that qt didn't set a gcc compiler automatically. I knew that ubuntu brings a gcc compiler with it so i added the compiler by myself. After this, a red icon in the kit settings, between my qt version, had the following error message: The compiler "GCC"(x86-linux-generic-elf-64bit) cannot create code for Qt-version "Qt 5.3 GCC 32bit"(x86-linux-generic-elf-32bit). My compiler path is "/usr/bin/gcc". I tried to find any solution in the internet, but couldn't find one.
    I am very thankful for every answer that helps and sorry for grammar mistakes, english is not my native language.
    Thuum

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

      Hi and welcome to devnet,

      Did you do that by hand or by installing the buildessential (or build-essential) package ?

      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
      • T Offline
        T Offline
        Thuum
        wrote on last edited by
        #3

        Hi and thanks,
        What do you exactly mean? I downloaded the .run file from http://qt-project.org/downloads and executed it, so the installation guide poped up. First i tried the Qt Online Installer for Linux(32 bit) and then the offline installer. Both didnt't work. I'm also running ubuntu 32 bit. If you mean adding the gcc compiler then yes i did that by hand in the compiler settings of qt creator,

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          Hi,

          Ubuntu includes the C compiler by default, but not the C++ compiler. You need to install g++.

          You also probably need to install OpenGL libraries: libglu1-mesa-dev

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • T Offline
            T Offline
            Thuum
            wrote on last edited by
            #5

            Hey,
            Thank you very much. I needed both to get it to work. Everything works fine now :)

            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