pyqtdeploy-demo: build-demo does not run qmake correctly

Phil Thompson phil at riverbankcomputing.com
Tue Jan 5 17:22:03 GMT 2021


On 05/01/2021 16:55, Frans Fürst wrote:
> I'm afraid I stumbled upon another difficutly building the demo for 
> Android:
> 
> Environment: Debian 10 or Fedora 33, pyqtdeploy 3.1.0, Qt5.15.2 and
> 
> Qt5.15.0, Qt built from source for Android, Modifications: decativated
> openssl for Android in sysroot.toml
> 
> command:
> PATH="$HOME/demo/qt5-android/build/bin:$PATH" \
> ANDROID_SDK_ROOT=~/android-sdk/ \
> ANDROID_NDK_PLATFORM=android-29 \
> ANDROID_NDK_ROOT=~/android-sdk/ndk/21.3.6528147/ \
> python3 ./build-demo.py --target android --verbose
> 
> ... lots of compiling
> make[1]: Leaving directory '/tmp/tmp5v9781zl/Qsci'
> The project has been installed.
> Deleting /home/frans/pyqtdeploy/demo/sysroot-android-32/build.
> Verifying host architecture 'linux-64'...
> Verifying target architecture 'android-32'...
> Verifying Python v3.7.8...
> Verifying PyQt v5.15.2...
> Verifying PyQt3D v5.15.2...
> Verifying PyQtChart v5.15.2...
> Verifying PyQtDataVisualization v5.15.2...
> Verifying PyQtPurchasing v5.15.2...
> Verifying QScintilla v2.11.5...
> Verifying Qt v5.15.2...
> Running '/home/frans/demo/qt5-android/build/bin/qmake -query'.
> Verifying SIP v12.8.1...
> Verifying zlib v1.2.7...
> zlib: determining installed version from
> '/home/frans/android-sdk/ndk/21.3.6528147/sysroot/usr/include/zlib.h'.
> Cleaning /home/frans/pyqtdeploy/demo/build-android.
> Creating /home/frans/pyqtdeploy/demo/build-android.
> Running
> '/home/frans/pyqtdeploy/demo/sysroot-android-32/host/bin/python3.7 -OO
> /usr/local/lib/python3.7/dist-packages/pyqtdeploy/builder/lib/freeze.py
> /tmp/tmppevn_afr/jobs.csv'.
> Freezing bootstrap-3.7.0.py...
> ... lots of freezing
> Freezing opcode...
> Traceback (most recent call last):
> File "./build-demo.py", line 153, in <module>
> run([qmake_path])
> File "./build-demo.py", line 38, in run
> ec = subprocess.call(' '.join(args), shell=True)
> TypeError: sequence item 0: expected str instance, NoneType found
> 
> Looking into the code it's obvious that qmake binary has not been
> identified correctly and thus it should be an easy to solve problem.
> But since I'm not aware of any changes to the "standard" environment
> and this demo should have been working for at least someone, I'd like
> to know what's going wrong here.
> 
> Any clues?

As it says in...

https://www.riverbankcomputing.com/static/Docs/pyqtdeploy/demo.html#building-the-demo

...the "standard" environment uses the Android binaries provided by the 
online installer. Building Qt from source on Android is untested.

Phil


More information about the PyQt mailing list