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

Build from source fails but works with a weird fix

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.3.0
    • 6.2.4
    • Build System
    • None
    • Integrity

    Description

      I'm currently porting Qt application for INTEGRITY running on i.MX 8QuadMax MEK CPU Board.

      The host machine runs Ubuntu 22.0.4.

      I refered to this document for this task:

      https://doc.qt.io/qt-6.2/integrity-building-qt-8155p-on-ubuntu.html

       

      So first of all I pulled "qt5" repo as instructed here:

      https://wiki.qt.io/Building_Qt_5_from_Git#Getting_the_source_code

       

      Then I ran "source ./setEnvironment.sh" as instructed in the document(first link)

      My "setEnvironment,sh" is like so:

      export PATH=$PATH:/usr/ghs/comp_202114
      export INTEGRITY_DIR=/usr/ghs/int19015
      export INTEGRITY_BSP=platform-imx8
      export INTEGRITY_BUILD_TARGET=dbg
      export GL_INC_DIR=/usr/ghs/int19015/imx8-graphics/include
      export GL_LIB_DIR=/usr/ghs/int19015/imx8-graphics/libs

       

      Then checked out to "6.2.4" branch.

      After that, I ran "git submodule update --init --recursive"

       

      Then, I ran "cmake --build . --parallel 6"

      This gave me an error like this:

      It's basically saying "/qtbase/translations/qtwebsockets_en.qm" doesn't exist.

      So I checked it and it indeed didn't exist, moreover, "translations" directory didn't even there.

      So I decided to create "translations" directory manually under "qtbase" directory, then run "cmake --build . --parallel 6" again.

      It surprisingly worked and now build is finished successfully.

       

      I'm not sure about the root cause but it seems kind of odd to me that this error was fixed just by manually adding a directory, which gives me an impression that there seems to be something wrong with Qt.

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            mikio_hirai Mikio Hirai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes