Re: [pyqtdeploy] openssl pre-conditions fail while building qt5 on macOS

Patrick Stinson <[email protected]> Wed, 24 Jun 2020 10:50:59 -0400
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <[email protected]>
--Apple-Mail=_1E6C3F4E-1313-42D3-839D-093A19748C5D
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Here is the link to Qt=E2=80=99s statement on openssl in 5.15.0:

https://wiki.qt.io/Qt_5.15.0_Known_Issues#OpenSSL =
<https://wiki.qt.io/Qt_5.15.0_Known_Issues#OpenSSL>



> On Jun 24, 2020, at 10:47 AM, Patrick Stinson <[email protected]> =
wrote:
>=20
> I also ran into this the other day. I think it is an important issue.
>=20
> Qt-5.15.0 is stated to require openssl on linux and windows, though I =
also found after examining my config.log that it requires 1.1.1 on macOS =
as well. I imagine you are using 5.15.0 and that if you grep out your =
config.log for openssl you will find the same thing.
>=20
> pyqtdeploy (as of 2.5.1) does not currently support openssl-1.1.1:
>=20
> sysroot/plugins/openssl.py:        if version_nr >=3D 0x010101:
> sysroot/plugins/openssl.py:            sysroot.error("building OpenSSL =
v1.1.1 is not supported")
>=20
> So there is a version mismatch until pyqtdeploy can support 1.1.1.
>=20
> Phil can comment further if necessary.
>=20
> -Patrick
>=20
>=20
>> On Jun 23, 2020, at 3:02 PM, Krist=C3=B3fer Reykjal=C3=ADn =
=C3=9Eorl=C3=A1ksson <[email protected] =
<mailto:[email protected]>> wrote:
>>=20
>> I'm trying to use pyqtdeploy to build my application and it's failing
>> after the configure step with the following errors:
>>=20
>>    ERROR: Feature 'openssl-linked' was enabled, but the pre-condition
>>    '!features.securetransport && !features.schannel && libs.openssl'
>>    failed.
>>=20
>>    ERROR: Feature 'ssl' was enabled, but the pre-condition
>>    'config.winrt || features.securetransport || features.openssl ||
>>    features.schannel' failed.
>>=20
>> You can find the full qt5 configure+build log here:
>> =
https://paste.sr.ht/~reykjalin/dcb15d0e70eba07b254c02cff47a740512b1980c =
<https://paste.sr.ht/~reykjalin/dcb15d0e70eba07b254c02cff47a740512b1980c>
>>=20
>>=20
>> I've added openssl to my sysroot.json like so:
>>=20
>>    "macos|win#openssl": {
>>        "macos|win#source": "openssl-1.1.0l.tar.gz",
>>        "win#no_asm": true
>>    },
>>=20
>> And the link to qt5 like so:
>>=20
>>    "macos|win#ssl": "openssl-linked",
>>=20
>>=20
>> You can find the full sysroot.json here:
>> =
https://paste.sr.ht/~reykjalin/7ec959ecebff8a66a6f6418bcb258a14b7c1c0a0
>>=20
>>=20
>> I'm trying to build this on macOS 10.15.5, using openssl-1.1.0l and
>> qt-everywhere-src-5.15.0. The only packages currently in use by the
>> application are PyQt5 and QScintilla. I'm using Python 3.7.5, and
>> running pyqtdeploy from the virtual environment I'm using for =
development.
>>=20
>> Any help you can provide would be very much appreciated!
>>=20
>>=20
>> Krist=C3=B3fer R.
>=20


--Apple-Mail=_1E6C3F4E-1313-42D3-839D-093A19748C5D
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">Here =
is the link to Qt=E2=80=99s statement on openssl in 5.15.0:<div =
class=3D""><br class=3D""></div><div class=3D""><a =
href=3D"https://wiki.qt.io/Qt_5.15.0_Known_Issues#OpenSSL" =
class=3D"">https://wiki.qt.io/Qt_5.15.0_Known_Issues#OpenSSL</a></div><div=
 class=3D""><br class=3D""></div><div class=3D""><br class=3D""><div><br =
class=3D""><blockquote type=3D"cite" class=3D""><div class=3D"">On Jun =
24, 2020, at 10:47 AM, Patrick Stinson &lt;<a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><meta =
http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8" =
class=3D""><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; line-break: after-white-space;" class=3D"">I also ran into this =
the other day. I think it is an important issue.<div class=3D""><br =
class=3D""></div><div class=3D"">Qt-5.15.0 is stated to require openssl =
on linux and windows, though I also found after examining my config.log =
that it requires 1.1.1 on macOS as well. I imagine you are using 5.15.0 =
and that if you grep out your config.log for openssl you will find the =
same thing.<br class=3D""><div class=3D""><br class=3D""></div><div =
class=3D"">pyqtdeploy (as of 2.5.1) does not currently support =
openssl-1.1.1:</div><div class=3D""><br class=3D""></div></div><blockquote=
 style=3D"margin: 0 0 0 40px; border: none; padding: 0px;" class=3D""><div=
 class=3D""><div class=3D"">sysroot/plugins/openssl.py:&nbsp; &nbsp; =
&nbsp; &nbsp;&nbsp;if version_nr &gt;=3D 0x010101:</div></div><div =
class=3D""><div class=3D"">sysroot/plugins/openssl.py:&nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;sysroot.error("building OpenSSL =
v1.1.1&nbsp;is not supported")</div></div></blockquote><div =
class=3D""><div class=3D""><div class=3D""><br class=3D""></div><div =
class=3D"">So there is a version mismatch until pyqtdeploy can support =
1.1.1.</div><div class=3D""><br class=3D""></div><div class=3D"">Phil =
can comment further if necessary.</div><div class=3D""><br =
class=3D""></div><div class=3D"">-Patrick</div><div class=3D""><br =
class=3D""></div><div class=3D""><br class=3D""><blockquote type=3D"cite" =
class=3D""><div class=3D"">On Jun 23, 2020, at 3:02 PM, Krist=C3=B3fer =
Reykjal=C3=ADn =C3=9Eorl=C3=A1ksson &lt;<a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div class=3D"">I'm =
trying to use pyqtdeploy to build my application and it's failing<br =
class=3D"">after the configure step with the following errors:<br =
class=3D""><br class=3D""> &nbsp;&nbsp;&nbsp;ERROR: Feature =
'openssl-linked' was enabled, but the pre-condition<br class=3D""> =
&nbsp;&nbsp;&nbsp;'!features.securetransport &amp;&amp; =
!features.schannel &amp;&amp; libs.openssl'<br class=3D""> =
&nbsp;&nbsp;&nbsp;failed.<br class=3D""><br class=3D""> =
&nbsp;&nbsp;&nbsp;ERROR: Feature 'ssl' was enabled, but the =
pre-condition<br class=3D""> &nbsp;&nbsp;&nbsp;'config.winrt || =
features.securetransport || features.openssl ||<br class=3D""> =
&nbsp;&nbsp;&nbsp;features.schannel' failed.<br class=3D""><br =
class=3D"">You can find the full qt5 configure+build log here:<br =
class=3D""><a =
href=3D"https://paste.sr.ht/~reykjalin/dcb15d0e70eba07b254c02cff47a740512b=
1980c" =
class=3D"">https://paste.sr.ht/~reykjalin/dcb15d0e70eba07b254c02cff47a7405=
12b1980c</a><br class=3D""><br class=3D""><br class=3D"">I've added =
openssl to my sysroot.json like so:<br class=3D""><br class=3D""> =
&nbsp;&nbsp;&nbsp;"macos|win#openssl": {<br class=3D""> =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"macos|win#source": =
"openssl-1.1.0l.tar.gz",<br class=3D""> =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"win#no_asm": true<br =
class=3D""> &nbsp;&nbsp;&nbsp;},<br class=3D""><br class=3D"">And the =
link to qt5 like so:<br class=3D""><br class=3D""> =
&nbsp;&nbsp;&nbsp;"macos|win#ssl": "openssl-linked",<br class=3D""><br =
class=3D""><br class=3D"">You can find the full sysroot.json here:<br =
class=3D""><a =
href=3D"https://paste.sr.ht/~reykjalin/7ec959ecebff8a66a6f6418bcb258a14b7c=
1c0a0" =
class=3D"">https://paste.sr.ht/~reykjalin/7ec959ecebff8a66a6f6418bcb258a14=
b7c1c0a0</a><br class=3D""><br class=3D""><br class=3D"">I'm trying to =
build this on macOS 10.15.5, using openssl-1.1.0l and<br =
class=3D"">qt-everywhere-src-5.15.0. The only packages currently in use =
by the<br class=3D"">application are PyQt5 and QScintilla. I'm using =
Python 3.7.5, and<br class=3D"">running pyqtdeploy from the virtual =
environment I'm using for development.<br class=3D""><br class=3D"">Any =
help you can provide would be very much appreciated!<br class=3D""><br =
class=3D""><br class=3D"">Krist=C3=B3fer R.<br =
class=3D""></div></div></blockquote></div><br =
class=3D""></div></div></div></div></blockquote></div><br =
class=3D""></div></body></html>=

--Apple-Mail=_1E6C3F4E-1313-42D3-839D-093A19748C5D--