Description
(used the dev branch) Run qt-cmake-private and ninja for the robotarm example. Then try running RobotArmApp.exe.
It fails with:
QQmlApplicationEngine failed to load component qrc:Main/main.qml:10:1: Type App unavailable qrc:/content/App.qml:17:5: Type MainScreen unavailable qrc:/content/MainScreen.ui.qml:10:1: Cannot load library C:\work\qtquick3d_rel_cmake\examples\quick3d\robotarm\Backend\backendplugin.dll: The specified module could not be found.
In addition, though this is not fatal, there are a bunch of CMake warnings:
CMake Warning at C:/work/qtbase_rel_cmake/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:446 (message): Neither RESOURCE_PREFIX nor AUTO_RESOURCE_PREFIX are specified for backend. The resource root directory, ':/', is used as prefix. If this is what you want, specify '/' as RESOURCE_PREFIX. The recommended resource directory to be used as prefix is ':/qt/qml/'. Specify AUTO_RESOURCE_PREFIX to use it. Call Stack (most recent call first): C:/work/qtbase_rel_cmake/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:677 (qt6_add_qml_module) backend/CMakeLists.txt:3 (qt_add_qml_module) CMake Warning at C:/work/qtbase_rel_cmake/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:787 (message): The backend target is a QML module with target path Backend. It uses an OUTPUT_DIRECTORY of C:/work/qtquick3d_rel_cmake/examples/quick3d/robotarm/backend, which should end in the same target path, but doesn't. Tooling such as qmllint may not work correctly. Call Stack (most recent call first): C:/work/qtbase_rel_cmake/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:1814 (_qt_internal_target_enable_qmllint) C:/work/qtbase_rel_cmake/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:618 (qt6_target_qml_sources) C:/work/qtbase_rel_cmake/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:677 (qt6_add_qml_module) backend/CMakeLists.txt:3 (qt_add_qml_module) CMake Warning at C:/work/qtbase_rel_cmake/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:446 (message): Neither RESOURCE_PREFIX nor AUTO_RESOURCE_PREFIX are specified for RobotArmApp. The resource root directory, ':/', is used as prefix. If this is what you want, specify '/' as RESOURCE_PREFIX. The recommended resource directory to be used as prefix is ':/qt/qml/'. Specify AUTO_RESOURCE_PREFIX to use it. Call Stack (most recent call first): qmlmodules:4 (qt6_add_qml_module) CMakeLists.txt:31 (include) CMake Warning at C:/work/qtbase_rel_cmake/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:446 (message): Neither RESOURCE_PREFIX nor AUTO_RESOURCE_PREFIX are specified for content. The resource root directory, ':/', is used as prefix. If this is what you want, specify '/' as RESOURCE_PREFIX. The recommended resource directory to be used as prefix is ':/qt/qml/'. Specify AUTO_RESOURCE_PREFIX to use it. Call Stack (most recent call first): content/CMakeLists.txt:5 (qt6_add_qml_module) CMake Warning at C:/work/qtbase_rel_cmake/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:446 (message): Neither RESOURCE_PREFIX nor AUTO_RESOURCE_PREFIX are specified for RobotArm. The resource root directory, ':/', is used as prefix. If this is what you want, specify '/' as RESOURCE_PREFIX. The recommended resource directory to be used as prefix is ':/qt/qml/'. Specify AUTO_RESOURCE_PREFIX to use it. Call Stack (most recent call first): imports/RobotArm/CMakeLists.txt:10 (qt6_add_qml_module)