Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Impossible to create kit 32 bit on Linux 64 bit for architecture incompatibility
Forum Updated to NodeBB v4.3 + New Features

Impossible to create kit 32 bit on Linux 64 bit for architecture incompatibility

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
9 Posts 2 Posters 536 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.
  • CP71C Offline
    CP71C Offline
    CP71
    wrote on last edited by
    #1

    Hi all,
    I can’t create a kit Qt 4.8.7 32 bit for architecture incompatibility on Linux 64 bit, at least so the QtCreator says, but I don’t’ why.

    Here you can see the message

    6353b3b9-0c1a-48c7-972c-7a62298cd3a6-image.png

    Apparently the message contradicts itself, Qt and compiler seem both be x86-linux-generic-elf-32bit.

    Someone can say where I wrong

    Thank you in advance for your help
    CP71

    Christian EhrlicherC 1 Reply Last reply
    0
    • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
    • CP71C CP71

      @Christian-Ehrlicher
      Thank you very much for your fast answer.
      Exactly what parameters do I have to pass to qmake and compiler to do this check?

      For compiler I have set these parameters

      e9085941-7208-4127-ae4f-6dc1ce95c4ce-image.png

      for qmake the “file ./qmake” output is:

      ./qmake: ELF 32-bit LSB pie executable, Intel 80386, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux.so.2, BuildID[sha1]=ca87b38f393fa38f62d40601580b9c179bb45967, for GNU/Linux 3.2.0, stripped

      But I’m not sure it is exactly what you suggest me to do

      CP71C Offline
      CP71C Offline
      CP71
      wrote on last edited by
      #9

      @CP71
      Hello everyone, I have finally found the solution, and it turned out to be simpler than I had expected.

      The best way is to create 2 items in Compilers tab, one for C and one for C++, on both add:

      Platform codegen flag	: -m32
      Platform linker flag	: -m32
      
      1 Reply Last reply
      1
      • CP71C CP71

        Hi all,
        I can’t create a kit Qt 4.8.7 32 bit for architecture incompatibility on Linux 64 bit, at least so the QtCreator says, but I don’t’ why.

        Here you can see the message

        6353b3b9-0c1a-48c7-972c-7a62298cd3a6-image.png

        Apparently the message contradicts itself, Qt and compiler seem both be x86-linux-generic-elf-32bit.

        Someone can say where I wrong

        Thank you in advance for your help
        CP71

        Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #2

        I would call qmake and the compiler on the command line to see what's wrong.

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

        CP71C 1 Reply Last reply
        2
        • Christian EhrlicherC Christian Ehrlicher

          I would call qmake and the compiler on the command line to see what's wrong.

          CP71C Offline
          CP71C Offline
          CP71
          wrote on last edited by
          #3

          @Christian-Ehrlicher
          Thank you very much for your fast answer.
          Exactly what parameters do I have to pass to qmake and compiler to do this check?

          For compiler I have set these parameters

          e9085941-7208-4127-ae4f-6dc1ce95c4ce-image.png

          for qmake the “file ./qmake” output is:

          ./qmake: ELF 32-bit LSB pie executable, Intel 80386, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux.so.2, BuildID[sha1]=ca87b38f393fa38f62d40601580b9c179bb45967, for GNU/Linux 3.2.0, stripped

          But I’m not sure it is exactly what you suggest me to do

          Christian EhrlicherC CP71C 2 Replies Last reply
          0
          • CP71C CP71

            @Christian-Ehrlicher
            Thank you very much for your fast answer.
            Exactly what parameters do I have to pass to qmake and compiler to do this check?

            For compiler I have set these parameters

            e9085941-7208-4127-ae4f-6dc1ce95c4ce-image.png

            for qmake the “file ./qmake” output is:

            ./qmake: ELF 32-bit LSB pie executable, Intel 80386, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux.so.2, BuildID[sha1]=ca87b38f393fa38f62d40601580b9c179bb45967, for GNU/Linux 3.2.0, stripped

            But I’m not sure it is exactly what you suggest me to do

            Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #4

            You should call qmake from qt4.8 to create the Makefile out of the pro to see if you can build against Qt4.8 on the command line.

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

            CP71C 2 Replies Last reply
            2
            • Christian EhrlicherC Christian Ehrlicher

              You should call qmake from qt4.8 to create the Makefile out of the pro to see if you can build against Qt4.8 on the command line.

              CP71C Offline
              CP71C Offline
              CP71
              wrote on last edited by
              #5

              @Christian-Ehrlicher
              Ok,
              I have tried your tip, I have done:

              • Create a simple Qt project
              • I have run qmake 4.8 “qmake ./myprofile.pro”
              • qmake has created the makefile
              • I have called make
              • make has created an executable
              • I have run the my executable without problem
              1 Reply Last reply
              0
              • Christian EhrlicherC Christian Ehrlicher

                You should call qmake from qt4.8 to create the Makefile out of the pro to see if you can build against Qt4.8 on the command line.

                CP71C Offline
                CP71C Offline
                CP71
                wrote on last edited by CP71
                #6

                @Christian-Ehrlicher
                the "file ./mysamplefile" says it is a 32 bit program

                Christian EhrlicherC 1 Reply Last reply
                0
                • CP71C CP71

                  @Christian-Ehrlicher
                  the "file ./mysamplefile" says it is a 32 bit program

                  Christian EhrlicherC Offline
                  Christian EhrlicherC Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on last edited by
                  #7

                  Ok, looks all fine. Can't test it here since I've no 32bit anymore anywhere. Maybe selecting the ABI directly instead using <custom> helps?

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

                  CP71C 1 Reply Last reply
                  2
                  • Christian EhrlicherC Christian Ehrlicher

                    Ok, looks all fine. Can't test it here since I've no 32bit anymore anywhere. Maybe selecting the ABI directly instead using <custom> helps?

                    CP71C Offline
                    CP71C Offline
                    CP71
                    wrote on last edited by
                    #8

                    @Christian-Ehrlicher
                    Thank you so much for your help

                    1 Reply Last reply
                    0
                    • CP71C CP71

                      @Christian-Ehrlicher
                      Thank you very much for your fast answer.
                      Exactly what parameters do I have to pass to qmake and compiler to do this check?

                      For compiler I have set these parameters

                      e9085941-7208-4127-ae4f-6dc1ce95c4ce-image.png

                      for qmake the “file ./qmake” output is:

                      ./qmake: ELF 32-bit LSB pie executable, Intel 80386, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux.so.2, BuildID[sha1]=ca87b38f393fa38f62d40601580b9c179bb45967, for GNU/Linux 3.2.0, stripped

                      But I’m not sure it is exactly what you suggest me to do

                      CP71C Offline
                      CP71C Offline
                      CP71
                      wrote on last edited by
                      #9

                      @CP71
                      Hello everyone, I have finally found the solution, and it turned out to be simpler than I had expected.

                      The best way is to create 2 items in Compilers tab, one for C and one for C++, on both add:

                      Platform codegen flag	: -m32
                      Platform linker flag	: -m32
                      
                      1 Reply Last reply
                      1
                      • CP71C CP71 has marked this topic as solved on

                      • Login

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