Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    Building target 32bit linux applications on 64bit host (Ubuntu 14.04)

    Tools
    2
    7
    3049
    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
      t3685 last edited by

      Hi,

      I need some help on how to build 32bit Qt5 linux applications on a 64bit linux host machine. Right I am compiling using a virtual machine, but I was wondering if there was way to directly build from my 64bit machine.

      Anyone know a step by step guide?

      Thanks,

      t3685

      1 Reply Last reply Reply Quote 0
      • p3c0
        p3c0 Moderators last edited by

        Hi,

        I think just passing -m32 flag to gcc or g++ while compiling the Qt App. should create it.

        157

        1 Reply Last reply Reply Quote 0
        • T
          t3685 last edited by

          I tried this but I am getting the following error:

          "bits/c++config.h: No such file or directory"

          The problem is I have no experience with cross-compiling so I need all the help I can get :).

          1 Reply Last reply Reply Quote 0
          • p3c0
            p3c0 Moderators last edited by

            http://stackoverflow.com/questions/9201521/g-4-6-issue-no-bits-cconfig-h-file-as-required-by-the-header-cstring

            157

            1 Reply Last reply Reply Quote 0
            • T
              t3685 last edited by

              I solved the problem by making a new Qt kit using the proper makespec file. But now Qt Creator is complaining that it cannot find the right libraries. Is there are a way to get 32bit libraries on a 64bit linux.

              1 Reply Last reply Reply Quote 0
              • p3c0
                p3c0 Moderators last edited by

                On Ubuntu you can install ia32-libs as
                @
                sudo apt-get install ia32-libs
                @

                157

                1 Reply Last reply Reply Quote 0
                • T
                  t3685 last edited by

                  This has been deprecated in 14.04. And this doesn't really help if I want to play around with Qt versions.

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