[Interest] Fail to compile qt4 on Ubuntu 20.04.

Vlad Stelmahovsky vladstelmahovsky at gmail.com
Mon May 18 08:20:45 CEST 2020


Hello

check your gcc version
you cannot build Qt 4.xx with gcc > 5.0, afaik

br,
vlad

On Mon, May 18, 2020 at 1:35 AM Hongyi Zhao <hongyi.zhao at gmail.com> wrote:

> Hi,
>
> Ubuntu 20.04 dropped the qt4 from its official repo, but sometimes I
> still want to use it.  So I try to compile it from the source but
> failed.  See the info below:
>
> $ wget
> https://download.qt.io/archive/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz
> $ tar -zxvf qt-everywhere-opensource-src-4.8.7.tar.gz
> $ cd qt-everywhere-opensource-src-4.8.7
> $ ./configure
>
> # 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
>
> Any hints for this problem?
>
> Regards,
> --
> Hongyi Zhao <hongyi.zhao at gmail.com>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
>


-- 
Best regards,
Vlad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20200518/b186b9c5/attachment.html>


More information about the Interest mailing list