[PyQt] pyqtdeploy-sysroot error

David Beck dbeck at ualberta.ca
Mon Oct 1 14:24:08 BST 2018


Further to this issue, the problem seems to originate in this line: 

Running 'make'
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c -pipe -fwrapv -std=c99 -O3 -fPIC  -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -mmacosx-version-min=10.11 -w -DNDEBUG -DPy_BUILD_CORE -DVERSION=\"3.7\" -DVPATH=\".\” -DPREFIX=\"/\" -DEXEC_PREFIX=\"/\" -DPYTHONPATH=\"/lib/python3.7\" -DPLATFORM=\"darwin\" -DMULTIARCH=\"darwin\" -DABIFLAGS=\"m\" -I. -I. -IInclude -I/Users/David/OpenSource/Qt5.11.0/5.11.0/clang_64/mkspecs/macx-clang -o .obj/getbuildinfo.o Modules/getbuildinfo.c

This contains “-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk”. However, in Xcode 10 the directory is called “MacOSX.sdk” not “MacOSX10.13.sdk”.

Cheers,

David

> 
> Message: 5
> Date: Sat, 29 Sep 2018 12:07:38 -0600
> From: David Beck <dbeck at ualberta.ca>
> To: pyqt at riverbankcomputing.com
> Subject: [PyQt] pyqtdeploy-sysroot error
> Message-ID: <09673AAC-8F83-42F4-BCBE-305291900C31 at ualberta.ca>
> Content-Type: text/plain; charset="utf-8"
> 
> Hello,
> 
> I’m trying to work through the pyqt-demo from the User guide online and I’m having trouble with pyqt-sysroot, which doesn’t seem to want to build Python 3.7.0. When I try running pyqt-sysroot, I get “execution failed: returned exit code 2” in the context below:
> 
> iMac-2:demo David$ pyqtdeploy-sysroot sysroot.json --source-dir /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/src --component python
> Installing an existing Python v3.7.0 as the host Python
> Building the target Python from source
> Configuring Python v3.7.0 for macos-64
> Installing /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/sysroot-macos-64/build/Python-3.7.0/Modules/config.c
> Generating /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/sysroot-macos-64/build/Python-3.7.0/pyconfig.h
> Installing /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/sysroot-macos-64/build/Python-3.7.0/python.pro
> pyqtdeploy-sysroot: Execution failed: returned exit code 2
> 
> pyqtdeploy-sysroot has no problem building OpenSSL, ZLib, or Qt (though I do have to point it to a static build using qt_dir in the .json file), but it bugs out when it gets to Python.
> 
> I’m working on MacOS 10.13.6 and have Qt 5.11.0 and PyQt 5.11.2 installed. The Python in the source directory is Python-3.7.0.tar.xz, downloaded a couple of days ago. XCode and the commandline tools are all up to date. Any suggestions about what might be going on would be appreciated.
> 
> Cheers,
> 
> David
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180929/f71c3aa8/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 6
> Date: Sat, 29 Sep 2018 19:17:30 +0100
> From: Phil Thompson <phil at riverbankcomputing.com>
> To: David Beck <dbeck at ualberta.ca>
> Cc: pyqt at riverbankcomputing.com
> Subject: Re: [PyQt] pyqtdeploy-sysroot error
> Message-ID:
> 	<996F03DB-66C1-463B-8F05-80899A58105C at riverbankcomputing.com>
> Content-Type: text/plain;	charset=utf-8
> 
> On 29 Sep 2018, at 7:07 pm, David Beck <dbeck at ualberta.ca> wrote:
>> 
>> Hello,
>> 
>> I’m trying to work through the pyqt-demo from the User guide online and I’m having trouble with pyqt-sysroot, which doesn’t seem to want to build Python 3.7.0. When I try running pyqt-sysroot, I get “execution failed: returned exit code 2” in the context below:
>> 
>> iMac-2:demo David$ pyqtdeploy-sysroot sysroot.json --source-dir /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/src --component python
>> Installing an existing Python v3.7.0 as the host Python
>> Building the target Python from source
>> Configuring Python v3.7.0 for macos-64
>> Installing /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/sysroot-macos-64/build/Python-3.7.0/Modules/config.c
>> Generating /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/sysroot-macos-64/build/Python-3.7.0/pyconfig.h
>> Installing /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/sysroot-macos-64/build/Python-3.7.0/python.pro
>> pyqtdeploy-sysroot: Execution failed: returned exit code 2
>> 
>> pyqtdeploy-sysroot has no problem building OpenSSL, ZLib, or Qt (though I do have to point it to a static build using qt_dir in the .json file), but it bugs out when it gets to Python.
>> 
>> I’m working on MacOS 10.13.6 and have Qt 5.11.0 and PyQt 5.11.2 installed. The Python in the source directory is Python-3.7.0.tar.xz, downloaded a couple of days ago. XCode and the commandline tools are all up to date. Any suggestions about what might be going on would be appreciated.
> 
> Run with the --verbose flag to see what's going on.
> 
> Use of XCode 10 is completely untested.
> 
> Phil
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> PyQt mailing list
> PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
> 
> ------------------------------
> 
> End of PyQt Digest, Vol 170, Issue 48
> *************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20181001/693b3120/attachment.html>


More information about the PyQt mailing list