You are not logged in.
Hi all,
I'm trying to develop a Qt program to run on my Nvidia Shield tablet. Therefore I've installed android-sdk-25.2.5, android-ndk and jre8-openjdk 8.u242-1 and their dependencies and optional dependencies, as instructed by this manual:
https://wiki.archlinux.org/index.php/qt#Android
Next I've started QtCreator, and clicked on Tools->options->Device->Android. There I saw this:
Java Settings are OK
Android Settings are OK
OpenSSL Settings are OK
Next I click on the tab "SDK Manager" at the bottom, and slick "Update Installed", and answer Yes to the question about licenses, and OK to the message "Android SDK operations finished". Now the Android settings are no longer OK:
JDK Location: /usr/lib/jvm/default
Java Settings are OK
Android SDK location: /home/cedric/Android/Sdk
Android Settings have errors:
[OK] Android SDK path exists.
[OK] Android SDK path writable.
[X] SDK tools installed
[X] Platform tools installed
[X] Build tools installed
[OK] SDK manager runs (requires exactly Java 1.8)
[X] Platfor SDK installed
[X] All essential packages installed for all installed Qt versions
[X] Default Android NDK path exists.
[X] Default Android NDK directory structure is correct.
[X] Default Android NDK installed into a path without spaces.
OpenSSL .pri location: /home/cedric/Android/Sdk/android_openssl
OpenSSL Settingsare OK
OpenSSL Settings are OK
My system information:
{noformat}
Qt 5.14.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 9.3.0) on "xcb"
OS: Arch Linux [linux version 5.6.11-arch1-1]
Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1
Environment:
Features: QT_NO_EXCEPTIONS
Library info:
PrefixPath: /usr
DocumentationPath: /usr/share/doc/qt
HeadersPath: /usr/include/qt
LibrariesPath: /usr/lib
LibraryExecutablesPath: /usr/lib/qt/libexec
BinariesPath: /usr/bin
PluginsPath: /usr/lib/qt/plugins
ImportsPath: /usr/lib/qt/imports
Qml2ImportsPath: /usr/lib/qt/qml
ArchDataPath: /usr/lib/qt
DataPath: /usr/share/qt
TranslationsPath: /usr/share/qt/translations
ExamplesPath: /usr/share/doc/qt/examples
TestsPath: /usr/tests
SettingsPath: /etc/xdg
Standard paths [*...* denote writable entry]:
DesktopLocation: "Desktop" */home/cedric/Desktop*
DocumentsLocation: "Documents" */home/cedric/Documents*
FontsLocation: "Fonts" */home/cedric/.local/share/fonts* /home/cedric/.fonts /usr/local/share/fonts /usr/share/fonts /usr/share/gdm/fonts /var/lib/menu-xdg/fonts
ApplicationsLocation: "Applications" */home/cedric/.local/share/applications* /usr/local/share/applications /usr/share/applications /usr/share/gdm/applications /var/lib/menu-xdg/applications
MusicLocation: "Music" */home/cedric/Music*
MoviesLocation: "Movies" */home/cedric/Videos*
PicturesLocation: "Pictures" */home/cedric/Pictures*
TempLocation: "Temporary Directory" */tmp*
HomeLocation: "Home" */home/cedric*
AppLocalDataLocation: "Application Data" */home/cedric/.local/share/QtProject/qtdiag* /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /usr/share/gdm/QtProject/qtdiag /var/lib/menu-xdg/QtProject/qtdiag
CacheLocation: "Cache" */home/cedric/.cache/QtProject/qtdiag*
GenericDataLocation: "Shared Data" */home/cedric/.local/share* /usr/local/share /usr/share /usr/share/gdm /var/lib/menu-xdg
RuntimeLocation: "Runtime" */run/user/1000*
ConfigLocation: "Configuration" */home/cedric/.config* /etc/xdg
DownloadLocation: "Download" */home/cedric/Downloads*
GenericCacheLocation: "Shared Cache" */home/cedric/.cache*
GenericConfigLocation: "Shared Configuration" */home/cedric/.config* /etc/xdg
AppDataLocation: "Application Data" */home/cedric/.local/share/QtProject/qtdiag* /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /usr/share/gdm/QtProject/qtdiag /var/lib/menu-xdg/QtProject/qtdiag
AppConfigLocation: "Application Configuration" */home/cedric/.config/QtProject/qtdiag* /etc/xdg/QtProject/qtdiag
File selectors (increasing order of precedence):
en_US unix linux arch
Network:
Using "OpenSSL 1.1.1g 21 Apr 2020", version: 0x1010107f
Platform capabilities: ThreadedPixmaps OpenGL ThreadedOpenGL WindowMasks MultipleWindows ForeignWindows NonFullScreenWindows NativeWidgets WindowManagement SyncState RasterGLSurface SwitchableWidgetComposition
Style hints:
mouseDoubleClickInterval: 400
mousePressAndHoldInterval: 500
startDragDistance: 8
startDragTime: 500
startDragVelocity: 0
keyboardInputInterval: 400
keyboardAutoRepeatRate: 30
cursorFlashTime: 1200
showIsFullScreen: 0
showIsMaximized: 0
passwordMaskDelay: 0
passwordMaskCharacter: U+2022
fontSmoothingGamma: 1.7
useRtlExtensions: 0
setFocusOnTouchRelease: 0
tabFocusBehavior: Qt::TabFocusAllControls
singleClickActivation: 0
Additional style hints (QPlatformIntegration):
ReplayMousePressOutsidePopup: 0
Theme:
Platforms requested : gtk3,gnome,generic
available : gtk3,snap,flatpak,xdgdesktopportal
Styles requested : fusion,windows
available : Windows,Fusion
Icon theme : nuoveXT2, from /home/cedric/.local/share/icons,/usr/share/icons
System font : "Sans" 10
Native file dialog
Native color dialog
Native font dialog
Fonts:
General font : "Sans" 10
Fixed font : "monospace" 10
Title font : "Bitstream Vera Sans" 12
Smallest font: "Bitstream Vera Sans" 12
Palette:
QPalette::WindowText: #ff000000
QPalette::Button: #ffefefef
QPalette::Light: #ffffffff
QPalette::Midlight: #ffcbcbcb
QPalette::Dark: #ff9f9f9f
QPalette::Mid: #ffb8b8b8
QPalette::Text: #ff000000
QPalette::BrightText: #ffffffff
QPalette::ButtonText: #ff000000
QPalette::Base: #ffffffff
QPalette::Window: #ffefefef
QPalette::Shadow: #ff767676
QPalette::Highlight: #ff308cc6
QPalette::HighlightedText: #ffffffff
QPalette::Link: #ff0000ff
QPalette::LinkVisited: #ffff00ff
QPalette::AlternateBase: #fff7f7f7
QPalette::NoRole: #ff000000
QPalette::ToolTipBase: #ffffffdc
QPalette::ToolTipText: #ff000000
QPalette::PlaceholderText: #80000000
Screens: 2, High DPI scaling: inactive
# 0 "DVI-0" Depth: 24 Primary: yes
Manufacturer:
Model:
Serial number:
Geometry: 1920x1080+1920+0 Available: 1920x1080+1920+0
Virtual geometry: 3840x1080+0+0 Available: 3840x1080+0+0
2 virtual siblings
Physical size: 510x290 mm Refresh: 60 Hz Power state: 0
Physical DPI: 95.6235,94.5931 Logical DPI: 96,96.2526 Subpixel_None
DevicePixelRatio: 1 Pixel density: 1
Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0
# 1 "DVI-1" Depth: 24 Primary: no
Manufacturer:
Model:
Serial number:
Geometry: 1920x1080+0+0 Available: 1920x1080+0+0
Virtual geometry: 3840x1080+0+0 Available: 3840x1080+0+0
2 virtual siblings
Physical size: 885x498 mm Refresh: 60 Hz Power state: 0
Physical DPI: 55.1051,55.0843 Logical DPI: 96,96.2526 Subpixel_None
DevicePixelRatio: 1 Pixel density: 1
Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0
LibGL Vendor: X.Org
Renderer: AMD RV770 (DRM 2.50.0 / 5.6.11-arch1-1, LLVM 10.0.0)
Version: 3.0 Mesa 20.0.6
Shading language: 1.30
Format: Version: 3.0 Profile: 0 Swap behavior: 0 Buffer size (RGB): 8,8,8
Profile: None (QOpenGLFunctions_3_0)
Unable to create a Vulkan instance, error code is-9
Failed to create Vulkan instance: -9
Failed to create platform Vulkan instance
Plugin information:
+ Android 4.12.0
+ AutoTest 4.12.0
AutotoolsProjectManager 4.12.0
BareMetal 4.12.0
+ Bazaar 4.12.0
Beautifier 4.12.0
+ BinEditor 4.12.0
+ Bookmarks 4.12.0
Boot2Qt 4.12.0
+ CMakeProjectManager 4.12.0
+ CVS 4.12.0
+ ClangCodeModel 4.12.0
ClangFormat 4.12.0
ClangPchManager 4.12.0
ClangRefactoring 4.12.0
+ ClangTools 4.12.0
+ ClassView 4.12.0
ClearCase 4.12.0
+ CodePaster 4.12.0
CompilationDatabaseProjectManager 4.12.0
+ Core 4.12.0
+ CppEditor 4.12.0
+ CppTools 4.12.0
Cppcheck 4.12.0
+ CtfVisualizer 4.12.0
+ Debugger 4.12.0
+ Designer 4.12.0
+ DiffEditor 4.12.0
EmacsKeys 4.12.0
+ FakeVim 4.12.0
+ GLSLEditor 4.12.0
+ GenericProjectManager 4.12.0
+ Git 4.12.0
HelloWorld 4.12.0
+ Help 4.12.0
+ ImageViewer 4.12.0
Ios 4.12.0
+ LanguageClient 4.12.0
+ Macros 4.12.0
+ Marketplace 4.12.0
McuSupport 4.12.0
+ Mercurial 4.12.0
+ ModelEditor 4.12.0
Nim 4.12.0
+ PerfProfiler 4.12.0
Perforce 4.12.0
+ ProjectExplorer 4.12.0
+ Python 4.12.0
+ QbsProjectManager 4.12.0
+ QmakeProjectManager 4.12.0
+ QmlDesigner 4.12.0
+ QmlJSEditor 4.12.0
+ QmlJSTools 4.12.0
+ QmlPreview 4.12.0
+ QmlProfiler 4.12.0
+ QmlProjectManager 4.12.0
+ Qnx 4.12.0
+ QtSupport 4.12.0
+ RemoteLinux 4.12.0
+ ResourceEditor 4.12.0
+ ScxmlEditor 4.12.0
SilverSearcher 4.12.0
StudioWelcome 4.12.0
+ Subversion 4.12.0
+ TaskList 4.12.0
+ TextEditor 4.12.0
Todo 4.12.0
UpdateInfo 4.12.0
+ Valgrind 4.12.0
+ VcsBase 4.12.0
WebAssembly 4.12.0
+ Welcome 4.12.0
WinRt 4.12.0
Qt Creator 4.12.0
Based on Qt 5.14.2 (GCC 9.3.0, 64 bit)
{noformat}
What is going wrong here?
Offline
I'm a bit further. I've made a new user to ensure old settings are not a problem. It turns out the android SDK and the android NDK did not have the correct path. I now see this:
JDK Location: /usr/lib/jvm/default
Java Settings are OK
Android SDK location: /opt/android-sdk
Android Settings have errors:
[OK] Android SDK path exists.
[X] Android SDK path writable.
[OK] SDK tools installed
[OK] Platform tools installed
[OK] Build tools installed
[OK] SDK manager runs (requires exactly Java 1.8)
[OK] Platfor SDK installed
[X] All essential packages installed for all installed Qt versions
[OK] Default Android NDK path exists.
[OK] Default Android NDK directory structure is correct.
[OK] Default Android NDK installed into a path without spaces.
OpenSSL .pri location: /home/jan/Android/Sdk/android_openssl
OpenSSL Settingsare OK
OpenSSL Settings are OK
I would rather not make the SDK path writable. Is there a way around this?
Last edited by cdwijs (2020-05-09 05:25:59)
Offline
Writeable Android SDK location seems to be necessary:
Offline
I have copied over /opt/android-sdk/ to my home directory, and adjusted the Android SDK location. This works (as it removes one cross), but I can't remove the "All essential packages installed for all installed Qt versions" cross
Also, at the bottom "SDK manager" tab, it complains "SDK manager is not available with the current version of SDK tools. Use native SDK manager."
So we are making progress, but it had been a bumpy road so far.
Last edited by cdwijs (2020-05-10 16:49:26)
Offline
I am afraid I cannot help you any further.
Offline