Unable to install qt 32 bit version on Ubuntu 17.10 64 bit



  • Hi everybody :)
    I am using Ubuntu 17.10 64 bit, but the application i'm trying to compile requires compilation for a 32 bit system (it assumes the long data type is 32 bits).

    I tried running the qt-opensource-linux-x86-5.5.0.run installer which i downloaded from the qt archive, but i get the following error:

    Could not register file downloader for https protocol: QSslSocket::supportsSsl() returns false
    [0] Warning: QSslSocket: cannot call unresolved function d2i_X509
    [0] Warning: QSslSocket: cannot call unresolved function d2i_X509
    [0] Warning: QSslSocket: cannot call unresolved function d2i_X509
    Segmentation fault (core dumped)

    I already had openssl installed on my system, and also installed libssl-dev, but the error persists.

    Is there something else I need to install?
    Should I try with a different way to install it (if there's any, I didn't find one...)?
    Or maybe I should install a 32 bit version of Ubuntu?

    Thanks in advance :-)



  • @fraben
    I know nothing about Qt in this situation, I'm afraid.

    But I did try to build a (non-Qt) C program for 32-bit under Ubuntu 64-bit machine. And I can tell you it was a nightmare, and didn't work, with all the 32-bit stuff you have to install (you have to set up a "32-bit subsystem") and do to convince gcc (64-bit, of course) to produce a 32-bit executable, and then be able to run it.... I gave up.

    So, unless you have done this successfully in the past, think carefully. Unless, that is, any experts here say otherwise....


  • Qt Champions 2017

    @JNBarchan You said it all!


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What about using your distribution provided Qt in 32bit ?


  • Qt Champions 2017

    @SGaist said in Unable to install qt 32 bit version on Ubuntu 17.10 64 bit:

    Hi and welcome to devnet,

    What about using your distribution provided Qt in 32bit ?

    He has Ubuntu 64 bit installed...


  • Lifetime Qt Champion

    That's when MultiArch comes to play.


  • Qt Champions 2017

    Hi
    I tried the qt-opensource-linux-x86-5.5.0.run on Mint 17 64 bit
    and it just ran.

    Maybe something else is wrong?
    Should it not say something about not being elf file it was totally unable to start it ?


  • Lifetime Qt Champion

    That's likely an OpenSSL 1.1 VS OpenSSL 1.0 issue.



  • Thanks for the answers and for the welcome :-)

    In the meantime I downloaded the latest 32 bit Ubuntu version, but I'll make some more attempts before giving up and installing it.

    Actually I had other issues with the QT 5.5.0 installer, related to libX11, which I was able to fix by installing the i386 version of the libs that were missing.
    As for the OpenSSL problem, the version I was using was 1.0.2. I uninstalled it and installed the 1.1, but i still have the same error.


  • Lifetime Qt Champion

    That was the wrong move, OpenSSL 1.1 broke the ABI and API compared to the 1.0 series however Qt 5.10 will support OpenSSL 1.1.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.