Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-74270

CMake build: use qt5_add_big_resources and CMAKE_AUTO_MOC cause compile error

    XMLWordPrintable

Details

    • All
    • e5f0fec762771733e9cbc9a29cade7533f49d802 (qt/qtbase/5.12)

    Description

      CMakeLists.txt:

      set(CMAKE_AUTOMOC ON)  # if it is ON cause error, else no error

      qt5_add_big_resources(resource_files "qml.qrc") 

      error message:

      C:\Qt\Qt5.12.0\5.12.0\mingw73_64\bin\rcc.exe --name qml --pass 2 --temp C:/Workspace/build-testcmake-ninja/CMakeFiles/rcc_object_qml.dir/qrc_qmltmp.cpp.obj;C:/Workspace/build-testcmake-ninja/CMakeFiles/rcc_object_qml.dir/rcc_object_qml_autogen/mocs_compilation.cpp.obj --output C:/Workspace/build-testcmake-ninja/qrc_qml.o C:/Workspace/testcmake/qml.qrc"

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            alexandru.croitor Alexandru Croitor
            75543255 Lv Maorui
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes