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. [SOLVED] Installing both 64bit and 32bit Qt libraries on Ubuntu
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Installing both 64bit and 32bit Qt libraries on Ubuntu

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 3 Posters 12.4k Views 1 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.
  • S Offline
    S Offline
    soroush
    wrote on last edited by
    #1

    Hello

    I have Ubuntu 11.04 64bit with qt-sdk package installed. Also g++-multilib is installed. Now I can compile 32bit c++ applications via -m32 switch.
    Is it possible to install 32 bit version of Qt from packages? I know I can compile Qt from source but it takes time... Let me know if there is a faster way.

    Thanks

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Fomand
      wrote on last edited by
      #2

      I would not recommend you to mix 32 and 64. Even if you do that and develop some application then where you will install it? On 32 or on 64 bit OS?

      I think you should develop and test it in the environment for which you do the development.

      You can:

      1. Install VB (virtual box from ORACLE/SUN, for example) and install on it GUEST OS. It is allowed to have HOST OS 64 bit and GUEST OS 32 bit.

      You will have 2 independent environments - one for 64-bit development and one for 32-bit development.

      1. You can reboot between 32 / 64 OS.

      I prefer VB.

      Indeed you develop on 64 and when it works - transfer source code to 32 and recompile.

      With VB you can have simultaneously any combination of 32/64 UNIX1/UNIX2/Win XP/Win 7/ Mac OS /...
      Just instal there the right version of Qt.

      Qt Updater / Installer will work without issues on every of them.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        soroush
        wrote on last edited by
        #3

        Oh! I just want to have a 32bit Qt. Installing a new Ubuntu is a little heavy. (Did I told I'm laziest programmer ever?)
        I just found this: http://jblevins.org/notes/ubuntu-chroot
        will try it and come back

        Thank you

        1 Reply Last reply
        0
        • S Offline
          S Offline
          soroush
          wrote on last edited by
          #4

          OK, the VB solution was better.
          Thanks.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            seyed
            wrote on last edited by
            #5

            Hi @soroush and others,
            Installing a new OS is very terrible solution!
            You need just installing 32bit version of Qt into another location.
            Then add a new Qt module on QtCreator and add related Kit into your project.
            (Open yor project > Ctrl + 5 for viewing project settings > press "Add Kit" > You can config Kit and Qt version from here.)

            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