Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Error compiling Qt 6.10
Forum Updated to NodeBB v4.3 + New Features

Error compiling Qt 6.10

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
7 Posts 2 Posters 272 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Marcus Gama
    wrote last edited by
    #1

    I'm trying to compile Qt 6.10 to update the translations to pt_BR. However, I'm getting the following error:

    [12570/12966] Linking CXX shared module qtbase/plugins/position/libqtposition_geoclue2.so
    FAILED: [code=1] qtbase/plugins/position/libqtposition_geoclue2.so 
    ...
    [12577/12966] Linking CXX shared module qtbase/plugins/geoservices/libqtgeoservices_osm.so
    ninja: build stopped: subcommand failed.
    

    Does anyone have any ideas on how to fix this? The error occurred right at the end, after 50 minutes of compilation on my modest computer.

    Thanks in advance.

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote last edited by
      #2

      There is no need to compile the whole Qt just to update translations. The qttranslations submodule is enough.
      wrt your problem - compile with 'ninja -j1' and post the actual error messages.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      M 2 Replies Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        There is no need to compile the whole Qt just to update translations. The qttranslations submodule is enough.
        wrt your problem - compile with 'ninja -j1' and post the actual error messages.

        M Offline
        M Offline
        Marcus Gama
        wrote last edited by
        #3

        @Christian-Ehrlicher

        According to the localization guide at wiki.qt.io/Qt_Localization, I need to compile (Build Qt) to update the translations for the minor releases. From what I understand, I have to run the command shown on the website on a complete, compiled copy on my computer to detect the string changes in the minor releases.

        screenshot.png

        I'm testing on version 6.10 because I'll need to do this on the minor releases of this new major release.

        1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          There is no need to compile the whole Qt just to update translations. The qttranslations submodule is enough.
          wrt your problem - compile with 'ninja -j1' and post the actual error messages.

          M Offline
          M Offline
          Marcus Gama
          wrote last edited by
          #4

          @Christian-Ehrlicher

          I ran 'ninja -j1' from where I left off, but got the same result. I tried to post the full output, but the forum system is classifying my message as spam. Another restriction is that I can only post one message every 10 minutes. I'm a new user here. I posted a shortened version again with a few more lines.

          > ninja -j1
          [0/387] Running ninja for QtPdf in /mnt/Linux-Dados/marcus/Projetos/Qt/qt6/qtwebengine/src/pdf/Release/x86_64
          ninja: Entering directory `/mnt/Linux-Dados/marcus/Projetos/Qt/qt6/qtwebengine/src/pdf/Release/x86_64'
          ninja: no work to do.
          [2/385] Linking CXX shared module qtbase/plugins/position/libqtposition_geoclue2.so
          FAILED: [code=1] qtbase/plugins/position/libqtposition_geoclue2.so 
          : && /usr/bin/c++ -fPIC -DNDEBUG -O2  -Wl,--no-undefined -Wl,--version-script,/mnt/Linux-Dados/marcus/Projetos/Qt/qt6/qtpositioning/src/plugins/position/geoclue2/QGeoPositionInfo
          ... some long output here ...
          collect2: error: ld returned 1 exit status
          ninja: build stopped: subcommand failed.
          

          Thank you for your help.

          Christian EhrlicherC 1 Reply Last reply
          0
          • M Marcus Gama

            @Christian-Ehrlicher

            I ran 'ninja -j1' from where I left off, but got the same result. I tried to post the full output, but the forum system is classifying my message as spam. Another restriction is that I can only post one message every 10 minutes. I'm a new user here. I posted a shortened version again with a few more lines.

            > ninja -j1
            [0/387] Running ninja for QtPdf in /mnt/Linux-Dados/marcus/Projetos/Qt/qt6/qtwebengine/src/pdf/Release/x86_64
            ninja: Entering directory `/mnt/Linux-Dados/marcus/Projetos/Qt/qt6/qtwebengine/src/pdf/Release/x86_64'
            ninja: no work to do.
            [2/385] Linking CXX shared module qtbase/plugins/position/libqtposition_geoclue2.so
            FAILED: [code=1] qtbase/plugins/position/libqtposition_geoclue2.so 
            : && /usr/bin/c++ -fPIC -DNDEBUG -O2  -Wl,--no-undefined -Wl,--version-script,/mnt/Linux-Dados/marcus/Projetos/Qt/qt6/qtpositioning/src/plugins/position/geoclue2/QGeoPositionInfo
            ... some long output here ...
            collect2: error: ld returned 1 exit status
            ninja: build stopped: subcommand failed.
            

            Thank you for your help.

            Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote last edited by
            #5

            @Marcus-Gama said in Error compiling Qt 6.10:

            ... some long output here ...

            You should have posted the error instead stripping it away

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            M 1 Reply Last reply
            1
            • Christian EhrlicherC Christian Ehrlicher

              @Marcus-Gama said in Error compiling Qt 6.10:

              ... some long output here ...

              You should have posted the error instead stripping it away

              M Offline
              M Offline
              Marcus Gama
              wrote last edited by
              #6

              @Christian-Ehrlicher

              Okay. Thanks. I just can't post the message. I've tried every possible way to trim the last few lines, but the forum system keeps blocking my message as spam. In fact, I don't even know how it accepted my last few messages. I've tried several trims, and the forum keeps blocking me. At least for me, there's no option to attach a text file, so there's not much I can do. Thanks again.

              1 Reply Last reply
              0
              • Christian EhrlicherC Offline
                Christian EhrlicherC Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote last edited by
                #7

                In the error message you can see why it fails to link.
                You can also simply ignore this submodule with -skip option from ./configure

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved