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

host_build broken with boot2qt toolchains

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.12.4
    • 5.12.3
    • Device Creation
    • None

      The Boot2Qt toolchains cannot correctly build qmake projects that use option(host_build).

      Final linking is done against system Qt libraries and not the ones from the toolchain's sysroot host sysroot.
      Qt 5.12.2:

      g++ -Wl,-O1 -Wl,--gc-sections -fPIC -o ../../../bin/lrelease .obj/main.o .obj/numerus.o .obj/translator.o .obj/translatormessage.o .obj/qm.o .obj/qph.o .obj/po.o .obj/ts.o .obj/xliff.o .obj/ioutils.o .obj/qmakevfs.o .obj/proitems.o .obj/qmakeglobals.o .obj/qmakeparser.o .obj/qmakeevaluator.o .obj/qmakebuiltins.o .obj/profileevaluator.o   -L/home/sapiippo/Qt/5.12.2/Boot2Qt/apalis-imx6/toolchain/sysroots/x86_64-pokysdk-linux/usr/lib -lQt5Bootstrap -lpthread
      

      Qt 5.12.3:

      g++ -Wl,-O1 -Wl,--enable-new-dtags -fPIC -o ../../../bin/lrelease .obj/main.o .obj/numerus.o .obj/translator.o .obj/translatormessage.o .obj/qm.o .obj/qph.o .obj/po.o .obj/ts.o .obj/xliff.o .obj/ioutils.o .obj/qmakevfs.o .obj/proitems.o .obj/qmakeglobals.o .obj/qmakeparser.o .obj/qmakeevaluator.o .obj/qmakebuiltins.o .obj/profileevaluator.o .obj/qrc_proparser.o   -lQt5Xml -lQt5Core -lpthread 

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

            sapiippo Samuli Piippo
            sapiippo Samuli Piippo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes