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

No target architecture defined in json file. #35

Closed
santiagocezar opened this issue Mar 4, 2020 · 3 comments
Closed

No target architecture defined in json file. #35

santiagocezar opened this issue Mar 4, 2020 · 3 comments

Comments

@santiagocezar
Copy link

santiagocezar commented Mar 4, 2020

Using Qt 5.14.1.

Before reaching the custom generated target, androiddeployqt fails with No target architecture defined in json file.

Generated qtdeploy.json

{
 "description": "This file is to be read by androiddeployqt",
 "qt": "/usr/local/Qt-5.14.1",
 "sdk": "/opt/android/sdk/",
 "ndk": "/opt/android/sdk/ndk/",
 "sdkBuildToolsRevision": "29.0.3",
 "toolchain-prefix": "llvm",
 "tool-prefix": "llvm",
 "toolchain-version": "",
 "ndk-host": "linux-x86_64",
 "target-architecture": "armeabi-v7a",
 "application-binary": "/home/santi/Programacion/Qt/HoraProA/android-build/android-build/libs/armeabi-v7a/libHoraProA_armeabi-v7a.so",
 "android-package": "org.qtproject.HoraProA",
 "android-app-name": "HoraProA",
 "qml-root-path": "/home/santi/Programacion/Qt/HoraProA",
 "stdcpp-path": "/opt/android/sdk/ndk//sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/libc++_shared.so",
 "useLLVM": true,
 
 "android-package-source-directory": "/home/santi/Programacion/Qt/HoraProA/android"
}

Generated android_deployment_settings.json

{
  "_description": "This file is created by CMake to be read by androiddeployqt and should not be modified by hand.",
  "application-binary": "HoraProA",
  "architectures": {

  },
  "ndk": "/opt/android/sdk/ndk",
  "ndk-host": "linux-x86_64",
  "qml-root-path": "/home/santi/Programacion/Qt/HoraProA",
  "qt": "/usr/local/Qt-5.14.1",
  "sdk": "/opt/android/sdk",
  "stdcpp-path": "/opt/android/sdk/ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/",
  "tool-prefix": "llvm",
  "toolchain-prefix": "llvm",
  "useLLVM": true
}
@Gianni-MA
Copy link

any fix yet?

@LaurentGomila
Copy link
Owner

I haven't installed Qt 5.14 yet, so I can't test nor provide a fix. Last time I used qt-android-cmake was a few months ago with 5.13 and it worked fine.

5.14 added support for multi-architecture Android packages (the new AAB format), this is certainly related.

@OlivierLDff
Copy link
Contributor

I created a fix : #39

OlivierLDff added a commit to OlivierLDff/QtAndroidCMake that referenced this issue Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants