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

On macOS, a QML module is not placed inside the bundle

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P1: Critical P1: Critical
    • None
    • 6.6
    • None
    • macOS

      Building the filesystemexplorer example from qtdeclarative/examples/quickcontrols against dev works, but starting the bundle via open filesystemexplorerapp does not start the application.

      Launching the executable directly produces

       

      $ ./filesystemexplorerapp.app/Contents/MacOS/filesystemexplorerapp
      QQmlApplicationEngine failed to load component
      <Unknown File>: Module "FileSystemModule" contains no type named "Main"
      

      The FileSystemModule is present in the build tree, but it's not inside the bundle. Copying it explicitly next to the executable makes things work.

      Since the module belongs to the executable and is added for the executable target via

      qt_add_qml_module(filesystemexplorerapp
          URI FileSystemModule
      

      in the CMakeLists.txt file, this should just work.

        For Gerrit Dashboard: QTBUG-112683
        # Subject Branch Project Status CR V

            alexandru.croitor Alexandru Croitor
            vhilshei Volker Hilsheimer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes