<div dir="ltr"><div>Hi,</div><div><br></div><div>First off you don't necessarily need to compile Qt to work on KDE software development packages for Qt from your distros should be sufficient.</div><div>Unless you want to work on very specific issues like Qt6 porting or Wayland support for instance.<br></div><div><br></div><div>Our documentation for building from source is at <a href="https://community.kde.org/Get_Involved/development">https://community.kde.org/Get_Involved/development</a> but I guess you already have found it.</div><div><br></div><div>> When I attempt to build kwindowsystem, it comes up with an error
that it cannot find Qt5X11Extras package. I did provide a workaround to
that by creating a symbolic link named Qt5X11Extras in
~/kde/qt5/lib/cmake to my existing Qt5X11Extras folder found in
/usr/lib/x86_64-linux-gnu/cmake, which is version 5.15.3, and the
version of Qt that I am building in my KDE development environment is
5.15.5. This seemed to resolve the issue, although I'm not sure if what
I did is a valid way of resolving this. <br><div><br></div><div>Check the qtdir value in your <code>~/.config/kdesrc-buildrc</code> config file.</div><div>This kind of linking shenanigans should not be necessary. It might be the case that the rest of KDE software doesn't use your compiled Qt.</div><div>If the value matches, make sure to restart your build with a clean or a cmake, old paths might have been put in cache.</div><div>"kdesrc-build --refresh-build kio" for instance<br></div><div><br></div><div>> My question regarding this is why the Qt5X11Extras folder was not
created in ~/kde/qt5/lib/cmake when Qt5 was built as the first step in
building the KDE Development environment, so that this issue would not
come up. Any help on resolving that issue would be greatly
appreciated. <br></div><div><br></div><div>I can't help here. I haven't built Qt5X11Extras in a while.</div><div><br></div><div>> On to my second more critical error. I am getting build/linker errors when building KIO as follows:</div><div>[ 51%] Building CXX object src/widgets/CMakeFiles/KF5KIOWidgets.dir/KF5KIOWidgets_autogen/mocs_compilation.cpp.o<br>/usr/bin/ld: /home/rkanagy/kde/qt5/lib/libQt5Core.so.5.15.5: undefined reference to `std::__exception_ptr::exception_ptr::_M_release()@CXXABI_1.3.13'<br>/usr/bin/ld: /home/rkanagy/kde/qt5/lib/libQt5Test.so.5.15.5: undefined reference to `std::condition_variable::wait(std::unique_lock<std::mutex>&)@GLIBCXX_3.4.30'<br>/usr/bin/ld: /home/rkanagy/kde/qt5/lib/libQt5Test.so.5.15.5: undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29'<br>/usr/bin/ld: /home/rkanagy/kde/qt5/lib/libQt5Core.so.5.15.5: undefined reference to `std::__exception_ptr::exception_ptr::_M_addref()@CXXABI_1.3.13'<br>collect2: error: ld returned 1 exit status</div><div></div><div>This points towards an issue with your Qt compilation. It could be that it uses a different glibc version than your kio version being compiled.</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 15 juil. 2022 à 13:53, Ronald Kanagy <<a href="mailto:ron.kanagy@gmail.com">ron.kanagy@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I have run into a couple issues when attempting to build the KDE development environment using kdesrc-build:</div><div><br></div><div>My linux environment is as follows:</div><div>Ubuntu/Kubuntu 22.04</div><div>GNU C++ g++ 11.2.0 (Ubuntu 11.2.0-19ubuntu1)</div><div><br></div><div>I've installed all the Qt5 dependencies that I'm aware of as described at <a href="https://doc.qt.io/qt-5/linux-requirements.html" target="_blank">https://doc.qt.io/qt-5/linux-requirements.html</a></div><div><br></div><div>When I attempt to build kwindowsystem, it comes up with an error that it cannot find Qt5X11Extras package. I did provide a workaround to that by creating a symbolic link named Qt5X11Extras in ~/kde/qt5/lib/cmake to my existing Qt5X11Extras folder found in /usr/lib/x86_64-linux-gnu/cmake, which is version 5.15.3, and the version of Qt that I am building in my KDE development environment is 5.15.5. This seemed to resolve the issue, although I'm not sure if what I did is a valid way of resolving this. </div><div><br></div><div>My question regarding this is why the Qt5X11Extras folder was not created in ~/kde/qt5/lib/cmake when Qt5 was build as the first step in building the KDE Development environment, so that this issue would not come up. Any help on resolving that issue would be greatly appreciated. </div><div><br></div><div>On to my second more critical errors. I am getting build/linker errors when building KIO as follows:</div><div><br></div><div>[ 51%] Building CXX object autotests/CMakeFiles/favicontest.dir/favicontest.cpp.o<br>[ 51%] Generating ui_checksumswidget.h<br>[ 51%] Generating ui_kfilepropspluginwidget.h<br>[ 51%] Generating ui_kpropertiesdesktopadvbase.h<br>[ 51%] Generating ui_kpropertiesdesktopbase.h<br>[ 51%] Generating fileundomanager_adaptor.moc<br>[ 51%] Generating kuiserver_interface.moc<br>[ 51%] Building CXX object src/widgets/CMakeFiles/KF5KIOWidgets.dir/KF5KIOWidgets_autogen/mocs_compilation.cpp.o<br>/usr/bin/ld: /home/rkanagy/kde/qt5/lib/libQt5Core.so.5.15.5: undefined reference to `std::__exception_ptr::exception_ptr::_M_release()@CXXABI_1.3.13'<br>/usr/bin/ld: /home/rkanagy/kde/qt5/lib/libQt5Test.so.5.15.5: undefined reference to `std::condition_variable::wait(std::unique_lock<std::mutex>&)@GLIBCXX_3.4.30'<br>/usr/bin/ld: /home/rkanagy/kde/qt5/lib/libQt5Test.so.5.15.5: undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29'<br>/usr/bin/ld: /home/rkanagy/kde/qt5/lib/libQt5Core.so.5.15.5: undefined reference to `std::__exception_ptr::exception_ptr::_M_addref()@CXXABI_1.3.13'<br>collect2: error: ld returned 1 exit status<br>gmake[2]: *** [autotests/http/CMakeFiles/httpauthenticationtest.dir/build.make:113: bin/httpauthenticationtest] Error 1<br>gmake[1]: *** [CMakeFiles/Makefile2:7959: autotests/http/CMakeFiles/httpauthenticationtest.dir/all] Error 2<br>gmake[1]: *** Waiting for unfinished jobs....<br>[ 51%] Building CXX object src/widgets/CMakeFiles/KF5KIOWidgets.dir/kacleditwidget.cpp.o<br>/usr/bin/ld: /home/rkanagy/kde/qt5/lib/libQt5Core.so.5.15.5: undefined reference to `std::__exception_ptr::exception_ptr::_M_release()@CXXABI_1.3.13'<br>/usr/bin/ld: /home/rkanagy/kde/qt5/lib/libQt5Test.so.5.15.5: undefined reference to `std::condition_variable::wait(std::unique_lock<std::mutex>&)@GLIBCXX_3.4.30'<br>/usr/bin/ld: /home/rkanagy/kde/qt5/lib/libQt5Test.so.5.15.5: undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29'<br>/usr/bin/ld: /home/rkanagy/kde/qt5/lib/libQt5Core.so.5.15.5: undefined reference to `std::__exception_ptr::exception_ptr::_M_addref()@CXXABI_1.3.13'<br>collect2: error: ld returned 1 exit status<br>gmake[2]: *** [autotests/http/CMakeFiles/httpobjecttest.dir/build.make:161: bin/httpobjecttest] Error 1<br>gmake[1]: *** [CMakeFiles/Makefile2:7987: autotests/http/CMakeFiles/httpobjecttest.dir/all] Error 2<br>[ 51%] Building CXX object src/widgets/CMakeFiles/KF5KIOWidgets.dir/kurlrequesterdialog.cpp.o<br>[ 51%] Building CXX object src/widgets/CMakeFiles/KF5KIOWidgets.dir/kurlcombobox.cpp.o<br>[ 52%] Building CXX object src/widgets/CMakeFiles/KF5KIOWidgets.dir/kfileitemactions.cpp.o<br>[ 52%] Building CXX object src/widgets/CMakeFiles/KF5KIOWidgets.dir/imagefilter.cpp.o<br>[ 52%] Linking CXX executable ../bin/favicontest<br>[ 52%] Built target favicontest<br></div><div><br></div><div>I have provided some context to show where in the process these errors are occurring. This seems to be a glibc++ problem, maybe I'm not using the correct version of the GNU C++ compiler, but I'm not sure. </div><div><br></div><div>What do I need to do to resolve these linker errors?</div><div><br></div><div>Any help on these two issues would be greatly appreciated.</div><div><br></div><div><div><div dir="ltr"><div dir="ltr">Thanks,<div>Ron Kanagy</div><div><br></div></div></div></div></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Méven</div>