[Interest] Fail to compile qt4 on Ubuntu 20.04.

Hongyi Zhao hongyi.zhao at gmail.com
Tue May 26 05:58:59 CEST 2020


Lisandro Damián Nicanor Pérez Meyer <perezmeyer at gmail.com>
于2020年5月25日周一 下午11:50写道:
>
> Or grab the packaging from Ubuntu and compile it from there, it has
> all the quirks resolved.

The files exist in Ubuntu repo have been divided into many parts, see here:

https://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/universe/q/

Which one is corresponding to the following one discussed in this thread:

https://download.qt.io/archive/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz

Regards

>
> On Mon, 18 May 2020 at 03:21, Vlad Stelmahovsky
> <vladstelmahovsky at gmail.com> wrote:
> >
> > 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
> > _______________________________________________
> > Interest mailing list
> > Interest at qt-project.org
> > https://lists.qt-project.org/listinfo/interest
>
>
>
> --
> Lisandro Damián Nicanor Pérez Meyer
> http://perezmeyer.com.ar/
> http://perezmeyer.blogspot.com/



-- 
Hongyi Zhao <hongyi.zhao at gmail.com>


More information about the Interest mailing list