Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Qt Creator cannot detect gcc compiler

    Installation and Deployment
    3
    5
    4252
    Loading More Posts
    • 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
      Thuum last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • T
          Thuum last edited by

          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 Reply Quote 0
          • JKSH
            JKSH Moderators last edited by

            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 Reply Quote 0
            • T
              Thuum last edited by

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

              1 Reply Last reply Reply Quote 0
              • First post
                Last post