[PyQt] pyqtdeploy-sysroot 2.2 not copying host dir from installed qt dir?

Patrick Stinson patrickkidd at gmail.com
Fri Oct 19 23:34:42 BST 2018


The command doesn’t fail when I manually create the host/bin dirs, but it also only copies qmake.exe and no libs or other files.

Then the openssl build also fails with an unhelpful error (*sigh*):

=======================================================================

C:\Users\patrick\Desktop\dev\vendor>pyqtdeploy-sysroot --source src --component openssl --verbose ..\pkdiagram\sysroot.json
Looking for 'C:\Qt\5.11.2\mingw53_32'
Found 'C:\Qt\5.11.2\mingw53_32'
Looking for 'C:\Users\patrick\Desktop\dev\vendor\src\Python-3.6.4-patched.tgz'
Found 'C:\Users\patrick\Desktop\dev\vendor\src\Python-3.6.4-patched.tgz'
Deleting C:\Users\patrick\Desktop\dev\vendor\sysroot-win-32\build
Creating C:\Users\patrick\Desktop\dev\vendor\sysroot-win-32\build
Building OpenSSL
Looking for 'C:\Users\patrick\Desktop\dev\vendor\src\openssl-1.1.1.tar.gz'
Found 'C:\Users\patrick\Desktop\dev\vendor\src\openssl-1.1.1.tar.gz'
Copying C:\Users\patrick\Desktop\dev\vendor\src\openssl-1.1.1.tar.gz to C:\Users\patrick\Desktop\dev\vendor\sysroot-win-32\build
Unpacking 'openssl-1.1.1.tar.gz'
Running 'perl Configure VC-WIN32 no-shared --openssldir=C:\Users\patrick\Desktop\dev\vendor\sysroot-win-32\ssl --prefix=C:\Users\patrick\Desktop\dev\vendor\sysroot-win-32 no-engine'
Configuring OpenSSL version 1.1.1 (0x1010100fL) for VC-WIN32
Using os-specific seed configuration
Access is denied.
Access is denied.

Failure!  build file wasn't produced.
Please read INSTALL and associated NOTES files.  You may also have to look over
your available compiler tool chain or change your configuration.

NASM not found - make sure it's installed and available on %PATH%
pyqtdeploy-sysroot: Execution failed: returned exit code 1

C:\Users\patrick\Desktop\dev\vendor>

> On Oct 19, 2018, at 3:02 PM, Patrick Stinson <patrickkidd at gmail.com> wrote:
> 
> This seems like bug to me.
> 
>> On Oct 17, 2018, at 3:58 PM, Patrick Stinson <patrickkidd at gmail.com> wrote:
>> 
>> It appears as though pyqtdeploy-sysroot is not copying over the existing qt installation to $SYSROOT/host (sysroot.json follows at bottom):
>> 
>> Am I missing a config option?
>> 
>> 
>> =====================================================================
>> 
>> 
>> C:\Users\patrick\Desktop\dev\vendor>pyqtdeploy-sysroot --source src --component qt5 --verbose ..\pkdiagram\sysroot.json
>> Looking for 'C:\Qt\Qt5.11.2\5.11.2\msvc2015'
>> Found 'C:\Qt\Qt5.11.2\5.11.2\msvc2015'
>> Looking for 'C:\Users\patrick\Desktop\dev\vendor\src\Python-3.6.4-patched.tgz'
>> Found 'C:\Users\patrick\Desktop\dev\vendor\src\Python-3.6.4-patched.tgz'
>> Deleting C:\Users\patrick\Desktop\dev\vendor\sysroot-win-32\build
>> Creating C:\Users\patrick\Desktop\dev\vendor\sysroot-win-32\build
>> Installing an existing Qt5
>> Copying C:\Qt\Qt5.11.2\5.11.2\msvc2015\bin\qmake.exe to C:\Users\patrick\Desktop\dev\vendor\sysroot-win-32\host\bin\qmake.exe
>> Traceback (most recent call last):
>> File "c:\users\patrick\appdata\local\programs\python\python36-32\lib\runpy.py", line 193, in _run_module_as_main
>>   "__main__", mod_spec)
>> File "c:\users\patrick\appdata\local\programs\python\python36-32\lib\runpy.py", line 85, in _run_code
>>   exec(code, run_globals)
>> File "C:\Users\patrick\AppData\Local\Programs\Python\Python36-32\Scripts\pyqtdeploy-sysroot.exe\__main__.py", line 9, in <module>
>> File "c:\users\patrick\appdata\local\programs\python\python36-32\lib\site-packages\pyqtdeploy\pyqtdeploysysroot_main.py", line 83, in main
>>   sysroot.build_components(args.component, args.no_clean)
>> File "c:\users\patrick\appdata\local\programs\python\python36-32\lib\site-packages\pyqtdeploy\sysroot\sysroot.py", line 106, in build_components
>>   component.build(self)
>> File "c:\users\patrick\appdata\local\programs\python\python36-32\lib\site-packages\pyqtdeploy\sysroot\plugins\qt5.py", line 74, in build
>>   os.path.join(sysroot.host_bin_dir, sysroot.host_exe('qmake')))
>> File "c:\users\patrick\appdata\local\programs\python\python36-32\lib\site-packages\pyqtdeploy\sysroot\sysroot.py", line 570, in make_symlink
>>   shutil.copyfile(src, dst)
>> File "c:\users\patrick\appdata\local\programs\python\python36-32\lib\shutil.py", line 121, in copyfile
>>   with open(dst, 'wb') as fdst:
>> FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\patrick\\Desktop\\dev\\vendor\\sysroot-win-32\\host\\bin\\qmake.exe'
>> 
>> C:\Users\patrick\Desktop\dev\vendor>
>> 
>> =======================================================================
>> 
>> 
>>   "qt5": {
>>       "ios#qt_dir": "../lib/Qt/5.11.1/ios",
>>       "ios#ssl": "securetransport",
>>       "win#qt_dir": "C:\\Qt\\Qt5.11.2\\5.11.2\\msvc2015",
>>       "macos|win#ssl": "openssl-linked",
>>       "macos#source": "qt-everywhere-src-5.11.2.tar.xz",
>>       "macos#configure_options": [
>>           "-opensource",
>>           "-debug-and-release",
>>           "-nomake", "examples",
>>           "-nomake", "tests",
>>           "-no-sql-mysql",
>>           "-no-sql-psql"
>>       ],
>>       "skip": [
>>           "qtactiveqt",
>>           "qtcanvas3d",
>>           "qtgamepad",
>>           "qtremoteobjects",
>>           "qtscript",
>>           "qtserialbus",
>>           "qtserialport",
>>           "qtspeech",
>>           "qtvirtualkeyboard",
>>           "qtwayland",
>>           "qtwebglplugin",
>>           "qtwebsockets",
>>           "qtwebengine",
>>           "qtwebchannel",
>>           "qtwebview"
>>        ]
>>   },
> 



More information about the PyQt mailing list