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

QML2_IMPORT_PATH Appears to not work on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.14.2
    • QML: Tooling
    • None
    • Windows

      I am building AliceVision Meshroom on windows, which uses QML components.

      My build steps are here: https://gist.github.com/julianrendell/da6372201234d943d3e4f77e43674fd2

      When I execute:

      set QML2_IMPORT_PATH="D:\Meshroom_Dev\qmlAlembic\qml;D:\Meshroom_Dev\QtOIIO\qml;D:\Meshroom_Dev\QtAliceVision\qml" 

       

      And run the application, none of the QML plugins are discovered.

       

      The output of tree /F /A for each of the directories containing the qml directories is:

      D:\MESHROOM_DEV\QMLALEMBIC
      ---qml
          ---AlembicEntity
                  alembicEntityQmlPlugin.dll
                  alembicEntityQmlPlugin.lib
                  qmldir

       

      D:\MESHROOM_DEV\QTOIIO
      +---imageformats
      |       QtOIIOPlugin.dll
      |       QtOIIOPlugin.lib
      |
      ---qml
          ---DepthMapEntity
                  depthMapEntityQmlPlugin.dll
                  depthMapEntityQmlPlugin.lib
                  qmldir

       

      D:\MESHROOM_DEV\QTALICEVISION
      ---cml
          ---AliceVision
                  qmldir
                  qtAliceVisionPlugin.dll
                  qtAliceVisionPlugin.lib

       

      But when I copy all the QML components into a single directory, and use the following:

      {{set QT_PLUGIN_PATH=D:\Meshroom_Dev\qtPlugins}}

      {{set QML2_IMPORT_PATH=%QT_PLUGIN_PATH%\qml}}

       

      It works. The content of these directories are:

      {{D:\MESHROOM_DEV\QTPLUGINS}}
      {{{{   +---image-formats}}}}
      {{{{   |       QtOIIOPlugin.dll}}}}
      {{{{   |       QtOIIOPlugin.lib}}}}
      {{{{   |}}}}
      {{{{   ---qml}}}}
      {{{{     +---AlembicEntity}}}}
      {{{{         |       alembicEntityQmlPlugin.dll}}}}
      {{{{         |       alembicEntityQmlPlugin.lib}}}}
      {{{{         |       qmldir}}}}
      {{{{         |}}}}
      {{{{         +---AliceVision}}}}
      {{{{         |       qmldir}}}}
      {{{{         |       qtAliceVisionPlugin.dll}}}}
      {{{{         |       qtAliceVisionPlugin.lib}}}}
      {{{{         |}}}}
      {{{{         ---DepthMapEntity}}}}
      {{{{                 depthMapEntityQmlPlugin.dll}}}}
      {{                  depthMapEntityQmlPlugin.lib}}
      {{                  qmldir }} 

      (line inserted to try and work around formatting issues)

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

            ulherman Ulf Hermann
            julianr Julian Rendell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes