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

Patrick Stinson patrickkidd at gmail.com
Wed Jun 24 20:15:23 BST 2020


So I bypassed the pyqtdeploy-sysroot check for openssl < 1.1.1 and my Xcode project built just fine.

I did have to decompress the openssl-1.1.1g tarball and rename the compressed directory to openssl-1.1.g as pyqtdeploy expects it to be. Other than that it all worked just fine.

Maybe I’ll pay for my ignorance down the road, but I’m not sure why pyqtdeploy-sysroot was blocking openssl-1.1.1.

-Patrick

> On Jun 24, 2020, at 10:50 AM, Patrick Stinson <patrickkidd at gmail.com> wrote:
> 
> Here is the link to Qt’s 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 <patrickkidd at gmail.com <mailto:patrickkidd at gmail.com>> wrote:
>> 
>> 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 >= 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ófer Reykjalín Þorláksson <kristofer at thorlaksson.com <mailto:kristofer at thorlaksson.com>> wrote:
>>> 
>>> I'm trying to use pyqtdeploy to build my application and it's failing
>>> after the configure step with the following errors:
>>> 
>>>    ERROR: Feature 'openssl-linked' was enabled, but the pre-condition
>>>    '!features.securetransport && !features.schannel && libs.openssl'
>>>    failed.
>>> 
>>>    ERROR: Feature 'ssl' was enabled, but the pre-condition
>>>    'config.winrt || features.securetransport || features.openssl ||
>>>    features.schannel' failed.
>>> 
>>> You can find the full qt5 configure+build log here:
>>> https://paste.sr.ht/~reykjalin/dcb15d0e70eba07b254c02cff47a740512b1980c <https://paste.sr.ht/~reykjalin/dcb15d0e70eba07b254c02cff47a740512b1980c>
>>> 
>>> 
>>> I've added openssl to my sysroot.json like so:
>>> 
>>>    "macos|win#openssl": {
>>>        "macos|win#source": "openssl-1.1.0l.tar.gz",
>>>        "win#no_asm": true
>>>    },
>>> 
>>> And the link to qt5 like so:
>>> 
>>>    "macos|win#ssl": "openssl-linked",
>>> 
>>> 
>>> You can find the full sysroot.json here:
>>> https://paste.sr.ht/~reykjalin/7ec959ecebff8a66a6f6418bcb258a14b7c1c0a0 <https://paste.sr.ht/~reykjalin/7ec959ecebff8a66a6f6418bcb258a14b7c1c0a0>
>>> 
>>> 
>>> 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.
>>> 
>>> Any help you can provide would be very much appreciated!
>>> 
>>> 
>>> Kristófer R.
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20200624/618eac09/attachment-0001.htm>


More information about the PyQt mailing list