qt-android-cmake icon indicating copy to clipboard operation
qt-android-cmake copied to clipboard

Fails to find ANDROID_STL

Open ghost opened this issue 1 year ago • 0 comments

Getting the following errors when attempting to add an APK project.

CMake Warning at qt-android-cmake/AddQtAndroidApk.cmake:170 (message):
  Failed to determine ANDROID_STL_PREFIX value for ANDROID_STL=
Call Stack (most recent call first):
  CMakeLists.txt:53 (add_qt_android_apk)


CMake Warning at qt-android-cmake/AddQtAndroidApk.cmake:190 (message):
  ANDROID_STL () isn't a known shared stl library.You should consider setting
  ANDROID_STL to c++_shared (like Qt).
Call Stack (most recent call first):
  CMakeLists.txt:53 (add_qt_android_apk)


CMake Error at qt-android-cmake/AddQtAndroidApk.cmake:240 (string):
  string sub-command REGEX, mode MATCH needs at least 5 arguments total to
  command.
Call Stack (most recent call first):
  CMakeLists.txt:53 (add_qt_android_apk)


CMake Error at qt-android-cmake/AddQtAndroidApk.cmake:246 (message):
  Failed to parse ANDROID_TOOLCHAIN_PREFIX to get toolchain prefix and
  version and tool prefix
Call Stack (most recent call first):
  CMakeLists.txt:53 (add_qt_android_apk)

Installed everything with the online Qt installer app. Everything worked with Qt Creator.

ghost avatar Jan 08 '24 19:01 ghost