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. No compiler can produce code for this Qt version on 64 bit linux machine
Forum Update on Monday, May 27th 2025

No compiler can produce code for this Qt version on 64 bit linux machine

Scheduled Pinned Locked Moved Solved Installation and Deployment
8 Posts 4 Posters 5.0k 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.
  • P Offline
    P Offline
    Praveen.Illa
    wrote on last edited by
    #1

    Hello all,
    I am new to Qt Framework.
    I have built Qt 5.15.1 sources successfully for 32 bit on 64 bit Ubuntu (18.04) machine and the libraries and qmake files are installed in /usr/local/Qt_5.15.1 directory. (I have installed gcc-multilib & g++-multilib for compiling Qt 5.15.1 sources).
    For Qt creator, I have installed Qt 4.11 by executing qt-opensource-linux-x64-5.14.0.run file -> Developer and Designer Tools (Qt Creator 4.11.0).
    After adding Qt 5.15.1 qmake in Kits -> Qt Versions, am getting an error like "No compiler can produce code for this Qt version. Please define one or more compiler....". Attaching the screenshot for the same.
    Can anyone suggest me, how to resolve his error?

    85d2db49-40ba-4893-8968-b0fb674d8769-image.png

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

      Hi,

      Can you show what you have listed in the Compilers tab ?

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

      P 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Can you show what you have listed in the Compilers tab ?

        P Offline
        P Offline
        Praveen.Illa
        wrote on last edited by
        #3

        @SGaist

        fa084651-2ccb-4dd5-9a51-b5452df7a888-image.png

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          So since you installed Qt for 32bit (why do you want to compile something for 32bit?) you also have to install a compiler which ca produce 32bit binaries. As you see in your compiler tab QtCreator can't find one.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          P 1 Reply Last reply
          3
          • Christian EhrlicherC Christian Ehrlicher

            So since you installed Qt for 32bit (why do you want to compile something for 32bit?) you also have to install a compiler which ca produce 32bit binaries. As you see in your compiler tab QtCreator can't find one.

            P Offline
            P Offline
            Praveen.Illa
            wrote on last edited by
            #5

            @Christian-Ehrlicher
            I have installed gcc-multilib and g++-multilib files on 64 bit Ubuntu machine for supporting 32 bit compilation. The GCC x86, 64 bit compiler can be used for producing 32 bit binaries by adding QMAKE_CXXFLAGS += -m32 in .pro file. If I have to install a 32 bit gcc or g++ compiler, can you please mention the steps for installing

            JonBJ 1 Reply Last reply
            0
            • Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Than add a custom c/c++ compiler and provide the needed information.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              1 Reply Last reply
              2
              • P Praveen.Illa

                @Christian-Ehrlicher
                I have installed gcc-multilib and g++-multilib files on 64 bit Ubuntu machine for supporting 32 bit compilation. The GCC x86, 64 bit compiler can be used for producing 32 bit binaries by adding QMAKE_CXXFLAGS += -m32 in .pro file. If I have to install a 32 bit gcc or g++ compiler, can you please mention the steps for installing

                JonBJ Offline
                JonBJ Offline
                JonB
                wrote on last edited by
                #7

                @Praveen-Illa
                As @Christian-Ehrlicher says. But in case it's not clear: for whatever reason, Creator does not recognise that you say you do have an acceptable 32-bit compiler. So on your screenshot click the Add button at the right, and fill in all the information necessary for your desired compilation. You now have a kit you can use.

                P 1 Reply Last reply
                0
                • JonBJ JonB

                  @Praveen-Illa
                  As @Christian-Ehrlicher says. But in case it's not clear: for whatever reason, Creator does not recognise that you say you do have an acceptable 32-bit compiler. So on your screenshot click the Add button at the right, and fill in all the information necessary for your desired compilation. You now have a kit you can use.

                  P Offline
                  P Offline
                  Praveen.Illa
                  wrote on last edited by
                  #8

                  @JonB said in No compiler can produce code for this Qt version on 64 bit linux machine:

                  on at the right, and fill in all the information necessary for your desired compilation. You now have a kit you can use.

                  Thanks all for your support.
                  Finally, I could achieve what I want. Now, I am able to compile it for 32 bit.
                  Below are the steps for adding 32 bit compilers. Capturing here for others who are facing same problem
                  • Select Compilers tab -> Add ->Custom -> C  This will create an entry in compilers page.
                  o Assign, Name – My GCC - Desktop
                  o Assign, compiler path - “/usr/bin/gcc”
                  o Assign, Make Path – “/usrbin/make”
                  o Assign, ABI – x86 – linux – generic – elf – 32 bit
                  • Do the same for g++ compiler as well.
                  • Select Qt versions -> Add -> Browse for compiled qmake file located in “/usr/local/Qt_5.15.1/bin/qmake”

                  1 Reply Last reply
                  1

                  • Login

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