September 5, 2011

soroush soroush
Robot Herder
781 posts

[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

3 replies

September 5, 2011

Fomand Fomand
Lab Rat
21 posts

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.

2. 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.

September 5, 2011

soroush soroush
Robot Herder
781 posts

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

September 5, 2011

soroush soroush
Robot Herder
781 posts

OK, the VB solution was better.
Thanks.

 
  ‹‹ Qt embedded compile error => undefined reference to `__sync_fetch_and_add_4’      Installer Error qmake.exe output is not parseable ››

You must log in to post a reply. Not a member yet? Register here!