Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Creating kit for building 32 bit application
Forum Updated to NodeBB v4.3 + New Features

Creating kit for building 32 bit application

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 3.6k Views 2 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.
  • C Offline
    C Offline
    column
    wrote on 4 Apr 2018, 09:49 last edited by
    #1

    I need to build 32 bit application with QT that will run in Linux. I suppose for this reason I should manage kit for building 32 bit binary. Current only one kit I have builds 64 bit ones.

    enter image description here

    What should be changed in this kit in order to compile 32 bit application?

    Attempt 1

    I was trying to run QT install once again in order to install QT Maintainency
    Tool. I expect I will add kit with help of it. I found that installer is planning to install QT indirectory I don't have /home/g/Qt. I afraid to get mess of two QT installs in my PC

    Attempt 2

    Install 32 bit libs also gived nothing:

    sudo aptitude install glibc-devel.i386 libstdc++-devel.i386 qt5-qtbase-devel.i386

    Output:

    Couldn't find any package whose name or description matched "glibc-devel.i386"
    Couldn't find any package whose name or description matched "libstdc++-devel.i386"
    Couldn't find any package whose name or description matched "qt5-qtbase-devel.i386"
    Couldn't find any package whose name or description matched "glibc-devel.i386"
    Couldn't find any package whose name or description matched "libstdc++-devel.i386"
    Couldn't find any package whose name or description matched "qt5-qtbase-devel.i386"
    No packages will be installed, upgraded, or removed.
    0 packages upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
    Need to get 0 B of archives. After unpacking 0 B will be used.
    
    J 1 Reply Last reply 4 Apr 2018, 10:29
    0
    • M Offline
      M Offline
      mostefa
      wrote on 4 Apr 2018, 10:00 last edited by mostefa 4 Apr 2018, 10:11
      #2

      Hi @column

      I think that you need to :

      1. Download Compiler for 32bits (GCC 32 bits for example)

      2. Then download the sources of qt

      3. Then build Qt sources with GCC 32 bits

      4. Then add the generated qmake 32 bits as a new qt version,

      I hope this can help you !

      1 Reply Last reply
      3
      • C column
        4 Apr 2018, 09:49

        I need to build 32 bit application with QT that will run in Linux. I suppose for this reason I should manage kit for building 32 bit binary. Current only one kit I have builds 64 bit ones.

        enter image description here

        What should be changed in this kit in order to compile 32 bit application?

        Attempt 1

        I was trying to run QT install once again in order to install QT Maintainency
        Tool. I expect I will add kit with help of it. I found that installer is planning to install QT indirectory I don't have /home/g/Qt. I afraid to get mess of two QT installs in my PC

        Attempt 2

        Install 32 bit libs also gived nothing:

        sudo aptitude install glibc-devel.i386 libstdc++-devel.i386 qt5-qtbase-devel.i386

        Output:

        Couldn't find any package whose name or description matched "glibc-devel.i386"
        Couldn't find any package whose name or description matched "libstdc++-devel.i386"
        Couldn't find any package whose name or description matched "qt5-qtbase-devel.i386"
        Couldn't find any package whose name or description matched "glibc-devel.i386"
        Couldn't find any package whose name or description matched "libstdc++-devel.i386"
        Couldn't find any package whose name or description matched "qt5-qtbase-devel.i386"
        No packages will be installed, upgraded, or removed.
        0 packages upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
        Need to get 0 B of archives. After unpacking 0 B will be used.
        
        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 4 Apr 2018, 10:29 last edited by
        #3

        @column In addition to what @mostefa said: you can use a virtual machine with a 32bit Linux set-up, this would be way easier than doing cross compilation.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        M 1 Reply Last reply 4 Apr 2018, 10:34
        3
        • J jsulm
          4 Apr 2018, 10:29

          @column In addition to what @mostefa said: you can use a virtual machine with a 32bit Linux set-up, this would be way easier than doing cross compilation.

          M Offline
          M Offline
          mostefa
          wrote on 4 Apr 2018, 10:34 last edited by
          #4

          @jsulm said in Creating kit for building 32 bit application:

          @column In addition to what @mostefa said: you can use a virtual machine with a 32bit Linux set-up, this would be way easier than doing cross compilation.

          The problem is that with some qt versions no 32 bits releases are already availables...

          J 1 Reply Last reply 4 Apr 2018, 10:35
          0
          • M mostefa
            4 Apr 2018, 10:34

            @jsulm said in Creating kit for building 32 bit application:

            @column In addition to what @mostefa said: you can use a virtual machine with a 32bit Linux set-up, this would be way easier than doing cross compilation.

            The problem is that with some qt versions no 32 bits releases are already availables...

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 4 Apr 2018, 10:35 last edited by
            #5

            @mostefa Yes, but if latest Qt version isn't a requirement you can use what the Linux distribution provides :-)

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 4 Apr 2018, 22:23 last edited by
              #6

              Hi
              Just as a note:
              If you plan of building a 32 bit version of Qt, its far more fun to do in a 32 bit linux as
              most of the dependencies are already there or easy to install.
              Using a 64 bit distro, its far easier for it to be confused and look at the 64 bit versions.
              All such issues are avoided using a 32 bit linux vm for creating the qt version.
              Or at least that was my experience. You might sail smoother :)

              1 Reply Last reply
              3

              1/6

              4 Apr 2018, 09:49

              • Login

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