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

Building fails when cross compiling a static build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.9.1
    • None
    • Building qtbase like this:
      {quote}configure -static -release -opensource -confirm-license -nomake tests -nomake examples -no-pch -prefix /usr/local/qt -hostprefix /opt/foo -sysroot ... -device imx6 device---option ...
      {quote}

      When crosscompiling qtbase statically with the -prefix and -hostprefix option and then compiling qtdeclarative for that the build fails, because some library paths are not correctly prefixed with the sysroot (e.g. -L/usr/local/qt/plugins/bearer is used instead of -L$SYSROOT/usr/local/qt/plugins/bearer).

      A workaround for this problem is using -extprefix instead of -hostprefix and making -extprefix identical to -prefix (not sure this is necessary), but it would be nice if this can be fixed.

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

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

              Created:
              Updated:

                There are no open Gerrit changes