[Interest] Fail to compile qt4 on Ubuntu 20.04.

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Mon May 18 02:45:24 CEST 2020


Il 18/05/20 01:32, Hongyi Zhao ha scritto:
> # The following step failed for Ubuntu 20.04:
> $ make -j4
> ../../include/QtCore/../../src/corelib/tools/qpair.h:62:20: note:
> because ‘QPair<int, int>’ has user-provided ‘QPair<T1, T2>& QPair<T1,
> T2>::operator=(const QPair<T1, T2>&) [with T1 = int; T2 = int]’
>     62 |     QPair<T1, T2> &operator=(const QPair<T1, T2> &other)
>        |                    ^~~~~~~~
> make[1]: *** [Makefile:18175: .obj/release-shared/qsslsocket_openssl.o] Error 1
> make[1]: Leaving directory
> '/home/werner/Downloads/qt-everywhere-opensource-src-4.8.7/src/network'
> make: *** [Makefile:278: sub-network-make_default-ordered] Error 2
> 

This is missing the actual error messages, please run make -j1 and paste 
everything. From the text, it looks like a deprecation warning for a 
custom declared operator=, but that should be just a warning and not an 
error. If some -Werror is in place, find the way to remove it.

The actual error seems to be related to OpenSSL, which you should just 
disable via the respective configure switch (Qt 4 does not support 
OpenSSL 1.1).

HTH,
-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20200518/4712643d/attachment.bin>


More information about the Interest mailing list