[SOLVED] Installing both 64bit and 32bit Qt libraries on Ubuntu
-
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
-
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:
- 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.
- 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.
-
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 backThank you
-
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.)