How to install Qt for 32-bit compilation on an Ubuntu x86_64 machine
-
@jsulm
After many installations, I have:./qt-opensource-linux-x86-5.5.1.run -h Usage: ./qt-opensource-linux-x86-5.5.1.run [options] Key=Value Options: -h, --help Displays this help. --version Displays version information. --framework-version Displays the version of the Qt Installer Framework. -v, --verbose Verbose mode. Prints out more information. --proxy Use system proxy on Windows and Linux. This option has no effect on OS X. --script <file> Execute the script given as argument. --checkupdates Check for updates and return an XML description. --updater Start application in updater mode. --manage-packages Start application in package manager mode. --no-force-installations Allow deselecting components that are marked as forced. --show-virtual-components Show virtual components in installer and package manager. --logging-rules <rules> Enables logging according to passed rules. Comma separated logging rules have the following syntax: loggingCategory=true/false. Passing empty logging rules enables all logging categories. The following rules enable a single category: ifw.*=false,ifw.category=true The following logging categories are available: ifw.componentChecker ifw.resources ifw.translations --create-local-repository Create a local repository inside the installation directory. This option has no effect on online installers. --addRepository <URI,...> Add a local or remote repository to the list of user defined repositories. --addTempRepository <URI,...> Add a local or remote repository to the list of temporary available repositories. --setTempRepository <URI,...> Set a local or remote repository as temporary repository, it is the only one used during fetch. Note: URI must be prefixed with the protocol, i.e. file:///, https://, http:// or ftp://. --startserver <mode,socketname,key> Starts the application as headless process waiting for commands to execute. Mode can be DEBUG or PRODUCTION. In DEBUG mode, the option values can be omitted.Note: The server will not shutdown on his own, you need to quit the process by hand. --startclient <socketname,key> Starts the application to debug the client-server communication. If a value is omitted, the client will use a default instead. Note: The server process is not started by the client application in that case, you need to start it on your own. Arguments: Key=Value Key Value pair to be set.
How could I Install?
@JonexElectronic
I don't understand whether/how you say you have got it to run now.If you still need help identifying missing 32-bit libraries I would try following https://superuser.com/a/908417, copying
ldd
and changing it along the lines ofChanging this line to
RTLDLIST="/lib32/ld-linux.so.2 /lib64/..."
immediately fixed the problem. -
@JonexElectronic
I don't understand whether/how you say you have got it to run now.If you still need help identifying missing 32-bit libraries I would try following https://superuser.com/a/908417, copying
ldd
and changing it along the lines ofChanging this line to
RTLDLIST="/lib32/ld-linux.so.2 /lib64/..."
immediately fixed the problem.@JonB I do not understand what you said. where should I change it?
-
@JonB I do not understand what you said. where should I change it?
@JonexElectronic
I do not understand what you don't understand!? That post says to (copy and) make a change to theldd
script file, and then run that changed copy against your executable. -
@JonexElectronic
I do not understand what you don't understand!? That post says to (copy and) make a change to theldd
script file, and then run that changed copy against your executable.@JonB
Done, rebooted and the same problem -
@JonexElectronic
I do not understand what you don't understand!? That post says to (copy and) make a change to theldd
script file, and then run that changed copy against your executable.@JonB @jsulm
I had othe pc where this was installed originally. And when I execute:$ ldd qt-opensource-linux-x86-5.5.1.run linux-gate.so.1 => (0xf7edf000) libutil.so.1 => /lib/i386-linux-gnu/libutil.so.1 (0xf7eb0000) libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xf7d65000) libX11-xcb.so.1 => /usr/lib/i386-linux-gnu/libX11-xcb.so.1 (0xf7d62000) libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xf7d3c000) libfontconfig.so.1 => /usr/lib/i386-linux-gnu/libfontconfig.so.1 (0xf7cf2000) libfreetype.so.6 => /usr/lib/i386-linux-gnu/libfreetype.so.6 (0xf7c42000) libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7c3d000) librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf7c34000) libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf7c17000) libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf7a9f000) libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7a4a000) libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf7a2d000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7876000) /lib/ld-linux.so.2 (0xf7ee1000) libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xf7872000) libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xf786a000) libexpat.so.1 => /lib/i386-linux-gnu/libexpat.so.1 (0xf7840000) libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf7825000) libpng12.so.0 => /lib/i386-linux-gnu/libpng12.so.0 (0xf77fa000)
-
@JonB @jsulm
I had othe pc where this was installed originally. And when I execute:$ ldd qt-opensource-linux-x86-5.5.1.run linux-gate.so.1 => (0xf7edf000) libutil.so.1 => /lib/i386-linux-gnu/libutil.so.1 (0xf7eb0000) libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xf7d65000) libX11-xcb.so.1 => /usr/lib/i386-linux-gnu/libX11-xcb.so.1 (0xf7d62000) libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xf7d3c000) libfontconfig.so.1 => /usr/lib/i386-linux-gnu/libfontconfig.so.1 (0xf7cf2000) libfreetype.so.6 => /usr/lib/i386-linux-gnu/libfreetype.so.6 (0xf7c42000) libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7c3d000) librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf7c34000) libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf7c17000) libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf7a9f000) libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7a4a000) libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf7a2d000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7876000) /lib/ld-linux.so.2 (0xf7ee1000) libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xf7872000) libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xf786a000) libexpat.so.1 => /lib/i386-linux-gnu/libexpat.so.1 (0xf7840000) libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf7825000) libpng12.so.0 => /lib/i386-linux-gnu/libpng12.so.0 (0xf77fa000)
@JonexElectronic
Well at least that gives you an idea of what libraries you will want. I was hoping the (changed)ldd
might give you similar on the new system.Anyway, at this point maybe you have gotten all of those dependencies for the new system? If all you are left with now is SSL library errors I think those might only be dynamically loaded as needed at runtime, you might be close. You need an SSL expert (for Qt 5.5/Ubuntu 16) to tell you what you need to do for that, I don't know....
-
@JonexElectronic
Well at least that gives you an idea of what libraries you will want. I was hoping the (changed)ldd
might give you similar on the new system.Anyway, at this point maybe you have gotten all of those dependencies for the new system? If all you are left with now is SSL library errors I think those might only be dynamically loaded as needed at runtime, you might be close. You need an SSL expert (for Qt 5.5/Ubuntu 16) to tell you what you need to do for that, I don't know....
@JonB @jsulm
I finally got it. Simply run the following commands:sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install libc6:i386 libstdc++6:i386
I also installed the following packages from apt
sudo apt-get install qtbase5-dev:i386 qtmultimedia5-dev:i386
Now everything is working perfectly.
-