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

Patrick Stinson <[email protected]> Wed, 24 Jun 2020 10:47:48 -0400
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <[email protected]>
--Apple-Mail=_D5413958-BD9D-47A7-BED1-0492A600E470
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

I also ran into this the other day. I think it is an important issue.

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.

pyqtdeploy (as of 2.5.1) does not currently support openssl-1.1.1:

sysroot/plugins/openssl.py:        if version_nr >=3D 0x010101:
sysroot/plugins/openssl.py:            sysroot.error("building OpenSSL =
v1.1.1 is not supported")

So there is a version mismatch until pyqtdeploy can support 1.1.1.

Phil can comment further if necessary.

-Patrick


> On Jun 23, 2020, at 3:02 PM, Krist=C3=B3fer Reykjal=C3=ADn =
=C3=9Eorl=C3=A1ksson <[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
>=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.


--Apple-Mail=_D5413958-BD9D-47A7-BED1-0492A600E470
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"">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><br class=3D""></div><div>So there is a =
version mismatch until pyqtdeploy can support 1.1.1.</div><div><br =
class=3D""></div><div>Phil can comment further if =
necessary.</div><div><br class=3D""></div><div>-Patrick</div><div><br =
class=3D""></div><div><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"">https://paste.sr.ht/~reykjalin/7ec959ecebff8a66a6f6418bcb258a14=
b7c1c0a0<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></body></html>=

--Apple-Mail=_D5413958-BD9D-47A7-BED1-0492A600E470--