This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Build KDE and Qt5

Tags: None
(comma "," separated)
User avatar
msdobrescu
Registered Member
Posts
119
Karma
0
OS

Build KDE and Qt5

Sun Feb 09, 2020 8:15 am
Hi, half of a year ago, Nate Graham shown to me how to build KDE and I was amazed of the simplicity of the procedure.
I have had no time to pursue my implementation then, so I have postponed it to take it later. Now, it has come the time for it, but I can't build it anymore due to changes, now it builds Qt too, which is exactly what I need, because I want to experiment a Qt change too.
I have had to delete all the sources, because kdesrc-build script can't update what I've had already for some reason (I don't know which, I haven't really changed them since then, but I don't care, I can't lose anything there). I've followed these pages procedure , https://community.kde.org/Guidelines_an ... rom_source, and started to build, but I have errors. I probably miss something, but I can't find why. For a start, Qt5 fails to build.
So, here is the reason of this post: Qt5 build log is big, about 8.4MB. It seems there is a longer log, but it is not in the file. Ironically, there is no error in the log, but it ends by:

Code: Select all
../../include/QtMultimedia/QtMultimediaDepends:5:
/home/admius/kde/build/Qt5/qtbase/include/QtGui/../../../../../src/Qt5/qtbase/src/gui/util/qvalidator.h:226:2: fatal erro


... and that's it. What can I do to get the full log, for a start?

Thank you.

EDIT: Nate just solved it! https://github.com/KDE/discover/commit/ ... 8859526312

Last edited by msdobrescu on Sun Feb 09, 2020 8:36 pm, edited 1 time in total.
User avatar
msdobrescu
Registered Member
Posts
119
Karma
0
OS

Re: Build KDE and Qt5

Sun Feb 09, 2020 5:07 pm
Hi, me again, as a side question, what is it missing?

Code: Select all
# kdesrc-build running: 'make' '-j4'
# from directory: /home/admius/kde/build/discover
Scanning dependencies of target DiscoverCommon_autogen
Scanning dependencies of target runservice_autogen
Scanning dependencies of target DiscoverNotifiers_autogen
Scanning dependencies of target PaginateModelTest_autogen
[  1%] Automatic MOC and RCC for target DiscoverCommon
[  3%] Automatic MOC and RCC for target PaginateModelTest
[  3%] Automatic MOC and RCC for target runservice
[  3%] Automatic MOC and RCC for target DiscoverNotifiers
[  3%] Built target runservice_autogen
[  3%] Built target DiscoverNotifiers_autogen
Scanning dependencies of target runservice
[  4%] Building CXX object libdiscover/backends/PackageKitBackend/runservice/CMakeFiles/runservice.dir/main.cpp.o
Scanning dependencies of target DiscoverNotifiers
[  5%] Building CXX object libdiscover/notifiers/CMakeFiles/DiscoverNotifiers.dir/BackendNotifierModule.cpp.o
[  5%] Built target PaginateModelTest_autogen
Scanning dependencies of target PaginateModelTest
[  6%] Building CXX object discover/autotests/CMakeFiles/PaginateModelTest.dir/PaginateModelTest.cpp.o
[  7%] Building CXX object libdiscover/notifiers/CMakeFiles/DiscoverNotifiers.dir/DiscoverNotifiers_autogen/mocs_compilation.cpp.o
[  8%] Building CXX object libdiscover/backends/PackageKitBackend/runservice/CMakeFiles/runservice.dir/runservice_autogen/mocs_compilation.cpp.o
[  8%] Built target DiscoverCommon_autogen
[  9%] Linking CXX executable ../../../../bin/runservice
Scanning dependencies of target DiscoverCommon
[ 10%] Building CXX object libdiscover/CMakeFiles/DiscoverCommon.dir/Category/Category.cpp.o
[ 10%] Built target runservice
[ 11%] Building CXX object discover/autotests/CMakeFiles/PaginateModelTest.dir/__/PaginateModel.cpp.o
[ 12%] Linking CXX shared library ../../bin/libDiscoverNotifiers.so
[ 12%] Built target DiscoverNotifiers
Scanning dependencies of target DiscoverPackageKitNotifier_autogen
[ 13%] Automatic MOC and RCC for target DiscoverPackageKitNotifier
[ 13%] Built target DiscoverPackageKitNotifier_autogen
Scanning dependencies of target DiscoverNotifier_autogen
[ 14%] Automatic MOC and RCC for target DiscoverNotifier
[ 14%] Built target DiscoverNotifier_autogen
[ 15%] Building CXX object libdiscover/CMakeFiles/DiscoverCommon.dir/Category/CategoryModel.cpp.o
[ 15%] Building CXX object discover/autotests/CMakeFiles/PaginateModelTest.dir/discover_debug.cpp.o
[ 16%] Building CXX object discover/autotests/CMakeFiles/PaginateModelTest.dir/PaginateModelTest_autogen/mocs_compilation.cpp.o
[ 17%] Building CXX object libdiscover/CMakeFiles/DiscoverCommon.dir/Category/CategoriesReader.cpp.o
[ 17%] Building CXX object libdiscover/CMakeFiles/DiscoverCommon.dir/ReviewsBackend/AbstractReviewsBackend.cpp.o
[ 18%] Building CXX object libdiscover/CMakeFiles/DiscoverCommon.dir/ReviewsBackend/Rating.cpp.o
[ 19%] Linking CXX executable ../../bin/PaginateModelTest
[ 19%] Built target PaginateModelTest
Scanning dependencies of target DiscoverPackageKitNotifier
[ 20%] Building CXX object libdiscover/backends/PackageKitBackend/CMakeFiles/DiscoverPackageKitNotifier.dir/PackageKitNotifier.cpp.o
[ 21%] Building CXX object libdiscover/CMakeFiles/DiscoverCommon.dir/ReviewsBackend/Review.cpp.o
[ 22%] Building CXX object libdiscover/CMakeFiles/DiscoverCommon.dir/ReviewsBackend/ReviewsModel.cpp.o
[ 23%] Building CXX object libdiscover/CMakeFiles/DiscoverCommon.dir/Transaction/AddonList.cpp.o
[ 24%] Building CXX object libdiscover/CMakeFiles/DiscoverCommon.dir/Transaction/Transaction.cpp.o
[ 25%] Building CXX object libdiscover/CMakeFiles/DiscoverCommon.dir/Transaction/TransactionListener.cpp.o
[ 25%] Building CXX object libdiscover/CMakeFiles/DiscoverCommon.dir/Transaction/TransactionModel.cpp.o
[ 26%] Building CXX object libdiscover/backends/PackageKitBackend/CMakeFiles/DiscoverPackageKitNotifier.dir/libdiscover_backend_debug.cpp.o
[ 27%] Building CXX object libdiscover/CMakeFiles/DiscoverCommon.dir/UpdateModel/UpdateItem.cpp.o
[ 28%] Building CXX object libdiscover/CMakeFiles/DiscoverCommon.dir/UpdateModel/UpdateModel.cpp.o
[ 29%] Building CXX object libdiscover/backends/PackageKitBackend/CMakeFiles/DiscoverPackageKitNotifier.dir/DiscoverPackageKitNotifier_autogen/mocs_compilation.cpp.o
[ 30%] Building CXX object libdiscover/CMakeFiles/DiscoverCommon.dir/resources/ResourcesModel.cpp.o
/home/admius/kde/src/discover/libdiscover/resources/ResourcesModel.cpp:42:10: fatal error: KObjectTracking/ObjectTracking: No such file or directory
 #include <KObjectTracking/ObjectTracking>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
libdiscover/CMakeFiles/DiscoverCommon.dir/build.make:374: recipe for target 'libdiscover/CMakeFiles/DiscoverCommon.dir/resources/ResourcesModel.cpp.o' failed
make[2]: *** [libdiscover/CMakeFiles/DiscoverCommon.dir/resources/ResourcesModel.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Scanning dependencies of target DiscoverNotifier
[ 31%] Building CXX object notifier/CMakeFiles/DiscoverNotifier.dir/BackendNotifierFactory.cpp.o
[ 32%] Building CXX object notifier/CMakeFiles/DiscoverNotifier.dir/DiscoverNotifier.cpp.o
[ 33%] Linking CXX shared module ../../../bin/DiscoverPackageKitNotifier.so
[ 33%] Built target DiscoverPackageKitNotifier
[ 34%] Building CXX object notifier/CMakeFiles/DiscoverNotifier.dir/NotifierItem.cpp.o
[ 34%] Building CXX object notifier/CMakeFiles/DiscoverNotifier.dir/main.cpp.o
CMakeFiles/Makefile2:190: recipe for target 'libdiscover/CMakeFiles/DiscoverCommon.dir/all' failed
make[1]: *** [libdiscover/CMakeFiles/DiscoverCommon.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 35%] Building CXX object notifier/CMakeFiles/DiscoverNotifier.dir/DiscoverNotifier_autogen/mocs_compilation.cpp.o
[ 36%] Linking CXX executable ../bin/DiscoverNotifier
[ 36%] Built target DiscoverNotifier
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
airdrik
Registered Member
Posts
1854
Karma
5
OS

Re: Build KDE and Qt5  Topic is solved

Tue Feb 11, 2020 7:57 pm
Down about a page up from the bottom, it says
Code: Select all
[ 30%] Building CXX object libdiscover/CMakeFiles/DiscoverCommon.dir/resources/ResourcesModel.cpp.o
/home/admius/kde/src/discover/libdiscover/resources/ResourcesModel.cpp:42:10: fatal error: KObjectTracking/ObjectTracking: No such file or directory
 #include <KObjectTracking/ObjectTracking>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

which means that it couldn't find the header file KObjectTracking/ObjectTracking.h in a certain location, which is why Nate removed the include line from that file.


airdrik, proud to be a member of KDE forums since 2008-Dec.
User avatar
msdobrescu
Registered Member
Posts
119
Karma
0
OS

Re: Build KDE and Qt5

Wed Feb 12, 2020 8:07 am
Indeed, was a problem related to that unintended include, Nate Graham solved it by removing it.
I didn't know what to be done, actually, to add the file or to remove the include.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]