Line 93... |
Line 93... |
93 |
^
|
93 |
^
|
94 |
...
|
94 |
...
|
95 |
```
|
95 |
```
|
96 |
You can see the line `#error "This module needs Android API level 28 or newer!"`. This happens when you try to make a multi architecture APK file. There is a bug in the cmake macros used for Android. Here is how you can fix this.
|
96 |
You can see the line `#error "This module needs Android API level 28 or newer!"`. This happens when you try to make a multi architecture APK file. There is a bug in the cmake macros used for Android. Here is how you can fix this.
|
97 |
|
97 |
|
98 |
- Go to the directory where Qt is installed (e.g. `/opt/Qt/6.5.2`)
|
98 |
- Go to the directory where Qt is installed (e.g. `/opt/Qt/6.6.0`)
|
99 |
- Make sure you have the right to write all files and directories.
|
99 |
- Make sure you have the right to write all files and directories.
|
100 |
- With a text editor open the file `android_x86_64/lib/cmake/Qt6Core/Qt6AndroidMacros.cmake`.
|
100 |
- With a text editor open the file `android_x86_64/lib/cmake/Qt6Core/Qt6AndroidMacros.cmake`.
|
101 |
- Search for a function called `_qt_internal_configure_android_multiabi_target`.
|
101 |
- Search for a function called `_qt_internal_configure_android_multiabi_target`.
|
102 |
- Scroll down to (about line 1180)
|
102 |
- Scroll down to (about line 1216)
|
103 |
```
|
103 |
```
|
104 |
...
|
104 |
...
|
105 |
if(DEFINED QT_HOST_PATH_CMAKE_DIR)
|
105 |
if(DEFINED QT_HOST_PATH_CMAKE_DIR)
|
106 |
list(APPEND extra_cmake_args "-DQT_HOST_PATH_CMAKE_DIR=${QT_HOST_PATH_CMAKE_DIR}")
|
106 |
list(APPEND extra_cmake_args "-DQT_HOST_PATH_CMAKE_DIR=${QT_HOST_PATH_CMAKE_DIR}")
|
107 |
endif()
|
107 |
endif()
|