Re: [Interest] Fail to compile qt4 on Ubuntu 20.04.

2020-05-26 Thread Frederik Christiani via Interest

On 26-05-2020 05:58, Hongyi Zhao wrote:

Lisandro Damián Nicanor Pérez Meyer 
于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


I think he is referring to the source package:

https://packages.ubuntu.com/source/eoan/libs/qt4-x11

--
Frederik Christiani
Viking Software
https://www.vikingsoftware.com/
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Fail to compile qt4 on Ubuntu 20.04.

2020-05-25 Thread Hongyi Zhao
Lisandro Damián Nicanor Pérez Meyer 
于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
>  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  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’ has user-provided ‘QPair& QPair >> T2>::operator=(const QPair&) [with T1 = int; T2 = int]’
> >>62 | QPair =(const QPair )
> >>   |^~~~
> >> 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 
> >> ___
> >> Interest mailing list
> >> Interest@qt-project.org
> >> https://lists.qt-project.org/listinfo/interest
> >
> >
> >
> > --
> > Best regards,
> > Vlad
> > ___
> > Interest mailing list
> > Interest@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 
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Fail to compile qt4 on Ubuntu 20.04.

2020-05-25 Thread Lisandro Damián Nicanor Pérez Meyer
Or grab the packaging from Ubuntu and compile it from there, it has
all the quirks resolved.

On Mon, 18 May 2020 at 03:21, Vlad Stelmahovsky
 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  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’ has user-provided ‘QPair& QPair> T2>::operator=(const QPair&) [with T1 = int; T2 = int]’
>>62 | QPair =(const QPair )
>>   |^~~~
>> 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 
>> ___
>> Interest mailing list
>> Interest@qt-project.org
>> https://lists.qt-project.org/listinfo/interest
>
>
>
> --
> Best regards,
> Vlad
> ___
> Interest mailing list
> Interest@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/
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Fail to compile qt4 on Ubuntu 20.04.

2020-05-18 Thread Vlad Stelmahovsky
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  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’ has user-provided ‘QPair& QPair T2>::operator=(const QPair&) [with T1 = int; T2 = int]’
>62 | QPair =(const QPair )
>   |^~~~
> 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 
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>


-- 
Best regards,
Vlad
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Fail to compile qt4 on Ubuntu 20.04.

2020-05-17 Thread Thiago Macieira
On domingo, 17 de maio de 2020 16:32:19 PDT Hongyi Zhao wrote:
> ../../include/QtCore/../../src/corelib/tools/qpair.h:62:20: note:
> because ‘QPair’ has user-provided ‘QPair& QPair T2>::operator=(const QPair&) [with T1 = int; T2 = int]’
>62 | QPair =(const QPair )

You didn't paste the error message. The error message says "error:".

Please paste the first error line.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel System Software Products



___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Fail to compile qt4 on Ubuntu 20.04.

2020-05-17 Thread Giuseppe D'Angelo via Interest

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’ has user-provided ‘QPair& QPair::operator=(const QPair&) [with T1 = int; T2 = int]’
62 | QPair =(const QPair )
   |^~~~
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.dang...@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



smime.p7s
Description: Firma crittografica S/MIME
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Fail to compile qt4 on Ubuntu 20.04.

2020-05-17 Thread Hongyi Zhao
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’ has user-provided ‘QPair& QPair::operator=(const QPair&) [with T1 = int; T2 = int]’
   62 | QPair =(const QPair )
  |^~~~
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 
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest