Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Creating kit for building 32 bit application



  • 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.


  • 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 !


  • Qt Champions 2019

    @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.



  • @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...


  • Qt Champions 2019

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


  • Lifetime Qt Champion

    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 :)


Log in to reply