Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Build 32-bit Qt on 64-bit Ubuntu 10.04 LTS
QtWS25 Last Chance

Build 32-bit Qt on 64-bit Ubuntu 10.04 LTS

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 5.8k 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.
  • O Offline
    O Offline
    oleg_stepanenko
    wrote on last edited by
    #1

    Hi everybody!
    How do I build 32-bit Qt under 64-bit Linux? I have trouble with libraries, notably with x11 ("X11 functionality failed" message during configure). What packages do I have to install and what mkspec I have to use? I tried linux-g++-32, is it correct?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      The mkspec does work for what you want to do.

      You will need 32bit versions of all the libraries Qt depends on as well as their header files and then make sure the gcc is run with the flag "-m32" and the correct libraries are picked up, etc.

      I find that too annoying to deal with and set up a directory containing a 32bit installation of my linux of choice (debian/ubuntu can do that using the debootstrap tool). I am then using chroot to switch into that directory (you will need to bind-mount /dev, /sys and /proc into that directory using "mount -o bind /dev /path/dev"). Afterwards I can install all the 32bit apps and libraries I need there and build Qt using the linux-g++ mkspec. Debian has a utility called schroot that makes using such a setup really practical.

      1 Reply Last reply
      0
      • O Offline
        O Offline
        oleg_stepanenko
        wrote on last edited by
        #3

        Thank you, I've followed your instructions and managed to build it.

        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