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. Building target 32bit linux applications on 64bit host (Ubuntu 14.04)

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

Scheduled Pinned Locked Moved Qt Creator and other tools
7 Posts 2 Posters 3.3k 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.
  • T Offline
    T Offline
    t3685
    wrote on last edited by
    #1

    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
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

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

      157

      1 Reply Last reply
      0
      • T Offline
        T Offline
        t3685
        wrote on last edited by
        #3

        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
        0
        • p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          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
          0
          • T Offline
            T Offline
            t3685
            wrote on last edited by
            #5

            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
            0
            • p3c0P Offline
              p3c0P Offline
              p3c0
              Moderators
              wrote on last edited by
              #6

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

              157

              1 Reply Last reply
              0
              • T Offline
                T Offline
                t3685
                wrote on last edited by
                #7

                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
                0

                • Login

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