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

Cannot build Qt Quick project on statically built Qt

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 6.2.0
    • None
    • Ubuntu 20.04 LTS
      clang 10.0.0
      cmake 3.19.2 from Qt online installer

      qt5: 2cca3aa04986778ed50c703b35f68e5123acf302
      qtbase: 1a63217021f35d09c92457fcad9d513f8f90bc4d
      qtdeclarative: 7e8e21c87cc44f3ba4a2a597994d7cfd11c1ac5d
    • c113c88aa29c47d55dc01d468d88140cbc4848d7

    Description

      1. Get Qt's sources.
        I ran:
        git clone git://code.qt.io/qt/qt5.git qt-dev-base_declarative_svg-05.18
        cd qt-dev-base_declarative_svg-05.18
        perl init-repository --codereview-username rlohning --module-subset=qtbase,qtdeclarative,qtquickcontrols,qtquickcontrols2,qtgraphicaleffects,qtshadertools,qtsvg
        
      2. Build this with static linking.
        Find config.summary and config.opt attached.
      3. Try building a Qt Quick project using qmake from this build, e.g.:
        ~/dev/clang-10.0.0/qt-dev-base_declarative_svg-05.18-fasan-no-openssl/qtbase/bin/qmake ~/dev/src/qt-dev-base_declarative_svg-05.18/qtdeclarative/examples/quick/mousearea/mousearea.pro
        

        This will fail with output like:

        Info: creating stash file /tmp/test/.qmake.stash
        /bin/sh: 1: /home/qtrob/dev/clang-10.0.0/qt-dev-base_declarative_svg-05.18-fasan-no-openssl/qtbase/bin/qmlimportscanner: not found
        /home/qtrob/dev/clang-10.0.0/qt-dev-base_declarative_svg-05.18-fasan-no-openssl/qtbase/mkspecs/features/qt.prf:316: Error parsing JSON at 1:1: illegal value
        Project ERROR: Failed to parse qmlimportscanner output.
        

        qmlimportscanner is not in this place, indeed. It's in qt-dev-base_declarative_svg-05.18-fasan-no-openssl/qtbase/libexec

      Attachments

        1. config.opt
          0.2 kB
        2. config.summary
          8 kB
        3. qmake-d.log
          3.61 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kkohne Kai Köhne
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes