qmlsc gives different output Windows vs Linux on Qt 6.2.1
Solved
Qt 6
-
Using the qtquick compiler on the same qml files gives a lot of additional information on Linux. I'm including one example of many in this post. Can anyone say why this is? I can't see a difference in the invocation and the qml file is the same.
On Windows:
[118/382 22.9/sec] cmd.exe /C "cd /D C:\Projects\build-AEPP-VS2019-Debug\eSW\Qt\QtCommon\BCControls && C:\Qt\Tools\CMake_64\bin\cmake.exe -E make_directory C:/Projects/build-AEPP-VS2019-Debug/eSW/Qt/QtCommon/BCControls/.rcc/qmlcache && C:\Qt\6.2.1\msvc2019_64\.\bin\qmlsc.exe --resource-path /BCControls/BCAnalogClock.qml -i C:/Projects/build-AEPP-VS2019-Debug/eSW/Qt/QtCommon/BCControls/BCControls.qmltypes --resource C:/Projects/build-AEPP-VS2019-Debug/eSW/Qt/QtCommon/BCControls/.rcc/translations.qrc --resource C:/Projects/build-AEPP-VS2019-Debug/eSW/Qt/QtCommon/BCControls/.rcc/qmake_BCControls.qrc --resource C:/Projects/build-AEPP-VS2019-Debug/eSW/Qt/QtCommon/BCControls/.rcc/BCControls_raw_qml_0.qrc -o C:/Projects/build-AEPP-VS2019-Debug/eSW/Qt/QtCommon/BCControls/.rcc/qmlcache/BCControls_BCAnalogClock_qml.cpp C:/Projects/AEPP/eSW/Qt/QtCommon/BCControls/BCAnalogClock.qml"
On Linux:
[288/1373 387.5/sec] cd /home/rich/Projects/build-AEPP-git-QNXArm-Debug/eSW/Qt/QtCommon/BCControls && /home/rich/enterprise/Qt/Tools/CMake/bin/cmake -E make_directory /home/rich/Projects/build-AEPP-git-QNXArm-Debug/eSW/Qt/QtCommon/BCControls/.rcc/qmlcache && /home/rich/enterprise/Qt/6.2.1/gcc_64/./libexec/qmlsc --resource-path /BCControls/BCAnalogClock.qml -i /home/rich/Projects/build-AEPP-git-QNXArm-Debug/eSW/Qt/QtCommon/BCControls/BCControls.qmltypes --resource /home/rich/Projects/build-AEPP-git-QNXArm-Debug/eSW/Qt/QtCommon/BCControls/.rcc/translations.qrc --resource /home/rich/Projects/build-AEPP-git-QNXArm-Debug/eSW/Qt/QtCommon/BCControls/.rcc/qmake_BCControls.qrc --resource /home/rich/Projects/build-AEPP-git-QNXArm-Debug/eSW/Qt/QtCommon/BCControls/.rcc/BCControls_raw_qml_0.qrc -o /home/rich/Projects/build-AEPP-git-QNXArm-Debug/eSW/Qt/QtCommon/BCControls/.rcc/qmlcache/BCControls_BCAnalogClock_qml.cpp /home/rich/Projects/AEPP-git/eSW/Qt/QtCommon/BCControls/BCAnalogClock.qml qml.compiler.cppcodegen: BCAnalogClock.qml:13: Could not compile binding for hours: Cannot generate efficient code for lookup of property from JavaScript global object. qml.compiler.cppcodegen: BCAnalogClock.qml:14: Could not compile binding for minutes: Cannot generate efficient code for lookup of property from JavaScript global object. qml.compiler.cppcodegen: BCAnalogClock.qml:15: Could not compile binding for seconds: Cannot generate efficient code for lookup of property from JavaScript global object. qml.compiler.cppcodegen: BCAnalogClock.qml:34: Could not compile binding for degreeFactor: Cannot generate efficient code for lookup of property from JavaScript global object. qml.compiler.cppcodegen: BCAnalogClock.qml:35: Could not compile binding for minuteDegreeFactor: Cannot generate efficient code for lookup of property from JavaScript global object. qml.compiler.cppcodegen: BCAnalogClock.qml:40: Could not compile binding for interval: Cannot access value for name clockUpdateIntervalMS qml.compiler.cppcodegen: BCAnalogClock.qml:41: Could not compile binding for running: Cannot access value for name visible qml.compiler.cppcodegen: BCAnalogClock.qml:47: Could not compile binding for onTriggered: Cannot find name hours qml.compiler.cppcodegen: BCAnalogClock.qml:58: Could not compile binding for color: Cannot access value for name clockBackgroundColor qml.compiler.cppcodegen: BCAnalogClock.qml:61: Could not compile binding for width: Cannot access value for name marigin qml.compiler.cppcodegen: BCAnalogClock.qml:59: Could not compile binding for color: Cannot access value for name clockBorderColor qml.compiler.cppcodegen: BCAnalogClock.qml:60: Could not compile binding for width: Cannot access value for name clockBorderWidth Object type "QQmlV4Function" is not derived from QObject or QQmlComponent qml.compiler.cppcodegen: BCAnalogClock.qml:78: Could not compile binding for onPaint: argument 0 contains QString of QString but is expected to contain the type QQmlV4Function qml.compiler.cppcodegen: BCAnalogClock.qml:88: Could not compile function drawHours: Functions without type annotations won't be compiled qml.compiler.cppcodegen: BCAnalogClock.qml:101: Could not compile function drawMinutes: Functions without type annotations won't be compiled qml.compiler.cppcodegen: BCAnalogClock.qml:114: Could not compile function drawSeconds: Functions without type annotations won't be compiled