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

When Compiling Qt from source configure fails to pick up correct version number

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 6.4.2, 6.10.0
    • Build System
    • None

    Description

      When I configure and compile qt from source the configure script doesn't correctly pick up the qt version. Specifically I am targeting 6.4.2. I have tried checking our branch 6.4.2 and checking out tag v6.4.2 and after configuration both show up version 6.10.0.

      Checking config
      ```
      $ grep QT_VERSION_STR qtbase/src/corelib/global/qconfig.h
      #define QT_VERSION_STR "6.10.0"
      ```
      after compiling I end up with 6.10.0 as suggested by define.

      Steps to reproduce:

      Clone Repro
      ```
      $ git clone git@github.com:qt/qt5.git
      ```
      init repro

      ```
      $ cd qt5
      $ ./init-repository -f --module-subset=qtbase,qtwayland,qtdeclarative,qtimageformats,qtlanguageserver,qtshadertools,qtsvg```
      I have tried checking out both branch and tag to the same result
      ```
      $ git checkout 6.4.2
      ```
      or
      ```
      $ git checkout v6.4.2
      $ git describe --tags
      v6.4.2
      ```
      now back into build folder
      ```
      $ cd ../qt-hostbuild
      ```
      configure
      ```

      cmake ../qt5/ -GNinja -DCMAKE_BUILD_TYPE=Release -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=$QTBUILDROOT/qt-host/ -DQT_FEATURE_xlib=OFF -DFEATURE_xcb=OFF -DQT_FEATURE_xkbcommon_x11=OFF -DQT_FEATURE_opensslv11=ON -DQT_FEATURE_accessibility_atspi_bridge=OFF -DBUILD_qtwayland=ON -DFEATURE_wayland_client=ON -DFEATURE_wayland_server=OFF -DQT_FEATURE_kms=ON -DQT_FEATURE_opengles2=ON```
      check config
      ```
      $ grep QT_VERSION_STR qtbase/src/corelib/global/qconfig.h
      #define QT_VERSION_STR "6.10.0"
      ```

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes