[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    pyqtdeploy failed compile Python 3.7.8 for android-64 on macOS Big Sur
From:       "=?gb18030?B?zOzJvdGp?=" <mozilla88 () foxmail ! com>
Date:       2021-03-15 4:44:40
Message-ID: tencent_43B5F8E5512F678CDBA02FE5CC74D13E240A () qq ! com
[Download RAW message or body]

[Attachment #2 (text/plain)]

I want to build pyqt-demo for Android, but unfortunately I failed.


I use an old Macbook Pro laptop, the OS version is macOS Big Sur 11.2.1.




pyqtdeploy version is 3.1.1

clang version is:
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
 Android NDK version is android-ndk-r21d


Here is my process to compile pyqt-demo for android-64 platform:


cd pyqtdeploy-3.1.1/demo
python3 build-demo.py --target android-64 --qmake ~/Qt/5.15.0/clang_64/bin/qmake \
--verbose


When compile Modules/posixmodule.c from Python 3.7.8, it failed.


/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang \
-c -pipe -fwrapv -std=c99 -O3 -fPIC&nbsp; -arch x86_64 -isysroot \
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk \
-mmacosx-version-min=10.13 -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/dlee/programs/Qt/5.15.0/clang_64/mkspecs/macx-clang -o .obj/posixmodule.o \
Modules/posixmodule.c Modules/posixmodule.c:61:10: fatal error: 'sys/sysmacros.h' \
file not found #include <sys/sysmacros.h&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~~~~~
1 error generated.


I don't know how to solve this problem. I'd appreciate it if someone can help me.


[Attachment #3 (text/html)]

<meta http-equiv="Content-Type" content="text/html; charset=GB18030"><div>I want to \
build pyqt-demo for Android, but unfortunately I failed.</div><div><br></div><div>I \
use an old Macbook Pro laptop, the OS version is macOS Big Sur 11.2.1.</div><div><p \
class="p1" style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: \
normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: \
Menlo;"><span class="s1" style="font-variant-ligatures: \
no-common-ligatures;"><br></span></p><p class="p1" style="margin: 0px; \
font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; \
font-size: 13px; line-height: normal; font-family: Menlo;"><span class="s1" \
style="font-variant-ligatures: no-common-ligatures;">pyqtdeploy version is \
3.1.1</span></p></div><div>clang version is:</div><div>Apple clang version 12.0.0 \
(clang-1200.0.32.29)</div><div>Target: x86_64-apple-darwin20.3.0</div><div>Thread \
model: posix</div><div>InstalledDir: \
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin</div><div>Android \
NDK version is android-ndk-r21d</div><div><br></div><div>Here is my process to \
compile pyqt-demo for android-64 platform:</div><div><br></div><div>cd \
pyqtdeploy-3.1.1/demo</div><div>python3 build-demo.py --target android-64 --qmake \
~/Qt/5.15.0/clang_64/bin/qmake --verbose</div><div><br></div><div>When compile \
Modules/posixmodule.c from Python 3.7.8, it \
failed.</div><div><br></div><div>/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang \
-c -pipe -fwrapv -std=c99 -O3 -fPIC&nbsp; -arch x86_64 -isysroot \
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk \
-mmacosx-version-min=10.13 -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/dlee/programs/Qt/5.15.0/clang_64/mkspecs/macx-clang -o .obj/posixmodule.o \
Modules/posixmodule.c</div><div>Modules/posixmodule.c:61:10: fatal error: \
'sys/sysmacros.h' file not found</div><div>#include \
&lt;sys/sysmacros.h&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp;^~~~~~~~~~~~~~~~~</div><div>1 error generated.</div><div><br></div><div>I don't \
know how to solve this problem. I'd appreciate it if someone can help \
me.</div><div><br></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic