Error compiling Qt 6.10
-
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.
-
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. -
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.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.
I'm testing on version 6.10 because I'll need to do this on the minor releases of this new major release.
-
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.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.
-
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.
@Marcus-Gama said in Error compiling Qt 6.10:
... some long output here ...
You should have posted the error instead stripping it away
-
@Marcus-Gama said in Error compiling Qt 6.10:
... some long output here ...
You should have posted the error instead stripping it away
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.
-
In the error message you can see why it fails to link.
You can also simply ignore this submodule with-skip
option from ./configure