3

I am trying to build 32 bit Qt 4.8.6 libraries on Ubuntu 14.04. I have installed additional libraries

sudo apt-get install libx32gcc-4.8-dev
sudo apt-get install libc6-dev-i386
sudo apt-get install lib32z1
sudo apt-get install lib32ncurses5
sudo apt-get install lib32bz2-1.0
sudo apt-get install g++-multilib

and after I have made a configuration I run the build:

./configure -platform linux-g++-32
make

The build crashes with the following error:

In file included from /usr/include/openssl/asn1.h:63:0,
             from ssl/qsslsocket_openssl_p.h:66,
             from ssl/qsslsocket_openssl_symbols_p.h:57,
             from ssl/qsslcertificate.cpp:110:
/usr/include/openssl/e_os2.h:56:33: fatal error: openssl/opensslconf.h: `No such file or directory`
 #include <openssl/opensslconf.h>
                                 ^
compilation terminated.

I have the newest version of libssl-dev libraries. Please help me to fix this compilation issue.

Yury Rudakou
  • 131
  • 2
  • You must install 32-bit versions of libraries and their -dev packages, to be able to compile against them. – dobey Aug 18 '15 at 13:32
  • Also, you didn't say what version of Ubuntu you are on, but qt4 4.8.6 is already included in Ubuntu 15.04. The current development version also has 4.8.6 for qt4. – dobey Aug 18 '15 at 13:36
  • @dobey When I try to install libssl-dev:i386 apt-get gives me the warning: The following packages will be REMOVED: build-essential dkms g++ g++-multilib gcc gcc-multilib. I installed g++multilib just before qt 4.8.6 compilation. I dont need to remove it. – Yury Rudakou Aug 18 '15 at 13:49
  • Then, I'd suggest creating a 32-bit chroot and compiling it within there, if you really must build 4.8.6 from source for some reason, and installing libssl-dev:i386 is not satisfactory in terms of dependencies. – dobey Aug 18 '15 at 14:24
  • @YuriRudakov: what version of Ubuntu are you on? – Fabby Aug 18 '15 at 19:03
  • @Fabby Ubuntu 14.04. I mentioned it in the very first line. – Yury Rudakou Aug 19 '15 at 11:09
  • Sorry, missed that... +1 for my mistake and a good question. ;-) – Fabby Aug 19 '15 at 11:11
  • which libraries do you mean =) – A.B. Aug 19 '15 at 11:23
  • http://askubuntu.com/a/657814/367165 – A.B. Aug 19 '15 at 11:33

0 Answers0