[PyQt] pyqtdeploy-sysroot error
David Beck
dbeck at ualberta.ca
Sat Sep 29 22:19:11 BST 2018
Right. Apparently the stdio.h file is missing:
iMac-2:demo David$ pyqtdeploy-sysroot sysroot.json --source-dir /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/src --component python --verbose
Looking for '/Users/David/OpenSource/Qt5.11.0/5.11.0/clang_64'
Found '/Users/David/OpenSource/Qt5.11.0/5.11.0/clang_64'
Looking for '/Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/src/Python-3.7.0.tar.xz'
Found '/Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/src/Python-3.7.0.tar.xz'
Deleting /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/sysroot-macos-64/build
Creating /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/sysroot-macos-64/build
Looking for '/Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/src/Python-3.7.0.tar.xz'
Found '/Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/src/Python-3.7.0.tar.xz'
Copying /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/src/Python-3.7.0.tar.xz to /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/sysroot-macos-64/src
Unpacking 'Python-3.7.0.tar.xz'
Installing an existing Python v3.7.0 as the host Python
Linking /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 to /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/sysroot-macos-64/host/bin/python
Linking /Library/Frameworks/Python.framework/Versions/3.7/bin/pip3.7 to /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/sysroot-macos-64/host/bin/pip
Building the target Python from source
Copying /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/src/Python-3.7.0.tar.xz to /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/sysroot-macos-64/build
Unpacking 'Python-3.7.0.tar.xz'
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
Running '/Users/David/OpenSource/Qt5.11.0/5.11.0/clang_64/bin/qmake SYSROOT=/Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/sysroot-macos-64'
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
In file included from Modules/getbuildinfo.c:1:
Include/Python.h:25:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
^~~~~~~~~
1 error generated.
make: *** [.obj/getbuildinfo.o] Error 1
pyqtdeploy-sysroot: Execution failed: returned exit code 2
That would be an issue with the untested Xcode, then?
David
> On Sep 29, 2018, at 12:17 PM, Phil Thompson <phil at riverbankcomputing.com> wrote:
>
> On 29 Sep 2018, at 7:07 pm, David Beck <dbeck at ualberta.ca <mailto: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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180929/91db7e81/attachment.html>
More information about the PyQt
mailing list