Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
1.16.0
-
None
-
QtCreator 4.12.4, Qt 5.14.0, 5.15.0, NDK 21.1.6352462, JDK 1.8.0.251, Windows 10 Prof.
-
-
36b345c8cdd6a3c471a871ef184936b56674e696 (qbs/qbs/master) eb7adb8d9787dddef89e46f7bf6e594d0b5faf4b (qbs/qbs/1.17) 276ddf9f87ee513440bbb72473b48b69eb0319a5 (qbs/qbs/master)
Description
When loading a complex QBS project with a sub project (Project containg Library as product) for Qt 5.14.0 (or 5.15.0) for Android then the error messages appears:
"Tools\QtCreator\share\qtcreator\qbs\share\qbs\imports\qbs\base\NativeBinary.qbs:32: warning: Result of expression 'qbs.targetOS' [undefined] is not an object."
Clicking on this error it leads to definition of properties NativeBinary.isForDarwin respectively isForAndroid that is its dependency of qbs.targetOS.
When manipulating NativeBinaryq.qbs displaying all the qbs.XXX properties with console.log() in a loop then it's striking that some properties are not set, especially "targetOS", "architectures" is undefined, version etc. But "architecture" (singular!) is set.
Otherwise testing an simple example (provided with Qt) works for Android.
Especially the export of "Qt.quick" causes the problem.
Attachments
For Gerrit Dashboard: QBS-1576 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
309378,2 | Add XFAIL-ing autotest for newly discovered bug | 1.17 | qbs/qbs | Status: MERGED | +2 | +1 |
311081,2 | Introduce an "exportingProduct" variable | master | qbs/qbs | Status: MERGED | +2 | +1 |
312957,6 | Android: Change the product property to importingProduct to allow exporting Qt module | master | qbs/qbs | Status: MERGED | +2 | +1 |
317949,3 | Android: Allow exporting of Qt modules by using importingProduct | 1.17 | qbs/qbs | Status: MERGED | +2 | +1 |
346541,11 | Replace "product" variable by "exportingProduct" in Export items | master | qbs/qbs | Status: MERGED | +2 | -1 |
383049,5 | 'product' variable points to 'importingProduct" in Export items | master | qbs/qbs | Status: MERGED | +2 | +1 |