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

Build fails for two subprojects in the same source dir with qtquickcompiler enabled

XMLWordPrintable

    • Windows

      If two projects specified in SUBDIRS and the projects have different sets of qml files, the projects can't be built:

      :-1: error: debug/qmlcache_loader.o: in function `qInitResources_one()':
      \debug\qmlcache_loader.cpp:53: error: undefined reference to `qInitResources_one_qmlcache()'
      :-1: error: debug/qmlcache_loader.o: in function `qCleanupResources_one()':
      \debug\qmlcache_loader.cpp:58: error: undefined reference to `qCleanupResources_one_qmlcache()'
      :-1: error: debug/qmlcache_loader.o:qmlcache_loader.cpp:(.rdata+0x60): undefined reference to `QmlCacheGeneratedCode::_0x5f__one_qml::qmlData'
      :-1: error: debug/qmlcache_loader.o:qmlcache_loader.cpp:(.rdata+0x68): undefined reference to `QmlCacheGeneratedCode::_0x5f__one_qml::aotBuiltFunctions'
      :-1: error: collect2.exe: error: ld returned 1 exit status
      :-1: error: [Makefile.hellotr_two.Debug:72: debug/hellotr_two.exe] Error 1
      

      To reproduce run and build hellotr.pro from the attached example.

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

            qtbuildsystem Qt Build System Team
            alexey89 alexey89
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes