Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android: Qt 6 intermittently gets error: No platform plugin (libplugins_platforms_qtforandroid.so) included in the deployment #181

Open
1 of 4 tasks
mappu opened this issue Mar 1, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@mappu
Copy link
Owner

mappu commented Mar 1, 2025

The android Qt 6 support was added to CI in #177 to solve issue #146. At that time, the CI pipeline passed.

However, with no code changes, it started failing in #178 and was deactivated from Github Actions.

The error is:

docker run --rm -v $(pwd):/src -w /src/examples/android6 miqt/android:qt6 androiddeployqt --input ./deployment-settings.json --output ./android-build/
Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
Generating Android Package
  Input file: ./deployment-settings.json
  Output directory: /src/examples/android6/android-build/
  Application binary: RealAppName
  Android build platform: android-33
  Install to device: No
Error: qmlimportscanner not found at /qmlimportscanner
No platform plugin (libplugins_platforms_qtforandroid.so) included in the deployment. Make sure the app links to Qt Gui library.
Skipping createRCC

Some ideas:

  • Find any sources of nondeterminism in the build (linking order?)
  • Is the locale issue really a problem? Try with LC_ALL=en_US.UTF-8
  • Check if the .so is mentioned in the ELF imports
    • Yes, it does seem to be present
  • Instead of using a stub .so, use patchelf or similar to rename imports on the Go binary
@mappu mappu added the bug Something isn't working label Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant