Description
Qt6.2.0 RC MinGW binaries (reproduces on MSVC also), launch Creator and open project sensors7sensorgestures and compile.
Fails with:
[5/5 1.0/sec] Linking CXX executable gesture.exe FAILED: gesture.exe cmd.exe /C "cd . && C:\Users\joaijala\RTA\qt5\Tools\mingw810_64\bin\g++.exe -g -mwindows CMakeFiles/gesture.dir/gesture_autogen/mocs_compilation.cpp.obj CMakeFiles/gesture.dir/main.cpp.obj CMakeFiles/gesture.dir/mainwindow.cpp.obj -o gesture.exe -Wl,--out-implib,libgesture.dll.a -Wl,--major-image-version,0,--minor-image-version,0 C:/Users/joaijala/RTA/qt5/6.2.0/mingw81_64/lib/libQt6Sensors.a C:/Users/joaijala/RTA/qt5/6.2.0/mingw81_64/lib/libQt6Widgets.a C:/Users/joaijala/RTA/qt5/6.2.0/mingw81_64/lib/libQt6Gui.a C:/Users/joaijala/RTA/qt5/6.2.0/mingw81_64/lib/libQt6Core.a -lmpr -luserenv -lmingw32 C:/Users/joaijala/RTA/qt5/6.2.0/mingw81_64/lib/libQt6EntryPoint.a -lshell32 -ld3d11 -ldxgi -ldxguid -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ." CMakeFiles/gesture.dir/mainwindow.cpp.obj: In function `MainWindow::MainWindow(QWidget*)': C:/Users/joaijala/RTA/qt5/Examples/Qt-6.2.0/sensors/sensorgestures/mainwindow.cpp:67: undefined reference to `__imp__ZN21QSensorGestureManagerC1EP7QObject' C:/Users/joaijala/RTA/qt5/Examples/Qt-6.2.0/sensors/sensorgestures/mainwindow.cpp:69: undefined reference to `__imp__ZNK21QSensorGestureManager10gestureIdsEv' C:/Users/joaijala/RTA/qt5/Examples/Qt-6.2.0/sensors/sensorgestures/mainwindow.cpp:72: undefined reference to `__imp__ZNK21QSensorGestureManager17recognizerSignalsERK7QString' C:/Users/joaijala/RTA/qt5/Examples/Qt-6.2.0/sensors/sensorgestures/mainwindow.cpp:67: undefined reference to `__imp__ZN21QSensorGestureManagerD1Ev' C:/Users/joaijala/RTA/qt5/Examples/Qt-6.2.0/sensors/sensorgestures/mainwindow.cpp:67: undefined reference to `__imp__ZN21QSensorGestureManagerD1Ev' CMakeFiles/gesture.dir/mainwindow.cpp.obj: In function `MainWindow::on_startPushButton_clicked()': C:/Users/joaijala/RTA/qt5/Examples/Qt-6.2.0/sensors/sensorgestures/mainwindow.cpp:126: undefined reference to `__imp__ZN21QSensorGestureManagerC1EP7QObject' C:/Users/joaijala/RTA/qt5/Examples/Qt-6.2.0/sensors/sensorgestures/mainwindow.cpp:127: undefined reference to `__imp__ZN14QSensorGestureC1ERK5QListI7QStringEP7QObject' C:/Users/joaijala/RTA/qt5/Examples/Qt-6.2.0/sensors/sensorgestures/mainwindow.cpp:136: undefined reference to `__imp__ZN14QSensorGesture14startDetectionEv' C:/Users/joaijala/RTA/qt5/Examples/Qt-6.2.0/sensors/sensorgestures/mainwindow.cpp:126: undefined reference to `__imp__ZN21QSensorGestureManagerD1Ev' C:/Users/joaijala/RTA/qt5/Examples/Qt-6.2.0/sensors/sensorgestures/mainwindow.cpp:126: undefined reference to `__imp__ZN21QSensorGestureManagerD1Ev' CMakeFiles/gesture.dir/mainwindow.cpp.obj: In function `MainWindow::on_stopPushButton_clicked()': C:/Users/joaijala/RTA/qt5/Examples/Qt-6.2.0/sensors/sensorgestures/mainwindow.cpp:163: undefined reference to `__imp__ZN14QSensorGesture13stopDetectionEv' collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed. 10:01:22: The process "C:\Qt\620_beta4\Tools\CMake_64\bin\cmake.exe" exited with code 1. Error while building/deploying project gesture (kit: Desktop Qt 6.2.0 MinGW 64-bit) When executing step "Build"