Error when building kdepimlibs with kdesrc-build: Could not find a package configuration file provided by "KF5Mime". Reproducible: Always Steps to Reproduce: openSUSE 13.1, jusr run current kdesrc-build (15.04). Actual Results: error: -- The C compiler identification is GNU 4.8.1 -- The CXX compiler identification is GNU 4.8.1 -- Check for working C compiler: /home/jarek/bin/ccache/cc -- Check for working C compiler: /home/jarek/bin/ccache/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /home/jarek/bin/ccache/c++ -- Check for working CXX compiler: /home/jarek/bin/ccache/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for __GLIBC__ -- Looking for __GLIBC__ - found -- Performing Test _OFFT_IS_64BIT -- Performing Test _OFFT_IS_64BIT - Success -- Found Gettext: /usr/bin/msgmerge (found version "0.18.3") -- Found PythonInterp: /usr/bin/python (found version "2.7.6") -- Boost version: 1.53.0 -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.1") -- Found C++ stdlib exception include file: /usr/include/c++/4.8/exception -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success -- Performing Test COMPILER_HAS_DEPRECATED_ATTR -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success -- Found LibXslt: /usr/lib64/libxslt.so (found version "1.1.28") CMake Error at akonadi-mime/CMakeLists.txt:32 (find_package): Could not find a package configuration file provided by "KF5Mime" (requested version 4.81.0) with any of the following names: KF5MimeConfig.cmake kf5mime-config.cmake Add the installation prefix of "KF5Mime" to CMAKE_PREFIX_PATH or set "KF5Mime_DIR" to a directory containing one of the above files. If "KF5Mime" provides a separate development package or SDK, be sure it has been installed. Expected Results: Should build.
Created attachment 92766 [details] CMakeOutput.log
Thats not a bug Jaroslaw. It means you need to compile/install the KF5Mime package before compiling this. I think you need to fix your kdesrc-build configuration. What are you trying to build? Post your kdesrc-build config please
Thanks Siddhartha, the rc file: # Adjust all these settings at will global # qtdir /d/qt/5/kde/qtbase source-dir /home/jarek/dev/src build-dir /home/jarek/dev/build kdedir /home/jarek/dev/inst5 git-repository-base kde-projects kde: # KDE4_BUILD_TESTS kept for now, for old kde4_add_unit_test stuff to be enabled cmake-options -DCMAKE_BUILD_TYPE:STRING=debug -DKDE4_BUILD_TESTS=true # If you want to use ninja instead of make (it's faster!), uncomment the next line #custom-build-command ninja make-options -j5 cxxflags -pipe -DQT_STRICT_ITERATORS -DQURL_NO_CAST_FROM_STRING -DQT_NO_HTTP -DQT_NO_FTP -Wformat -Werror=format-security -Werror=return-type -Wno-variadic-macros -Wlogical-op -Wmissing-include-dirs -std=c++11 #install-session-driver true branch-group kf5-qt5 end global include extragear/utils/kdesrc-build/kf5-qt5-build-include
> It means you need to compile/install the KF5Mime package before compiling this. Nice but I wonder where is that explained at https://community.kde.org/Frameworks/Building kdesrc-build is used to build every KF5* thing so I assumed KF5Mime will be compiled too.
(In reply to Jarosław Staniek from comment #4) > kdesrc-build is used to build every KF5* thing so I assumed KF5Mime will be compiled too. Yes, kdesrc-build should take care of ordering if all modules are included. Try following https://community.kde.org/Plasma/Building to see if you are missing out on any step.
> Yes, kdesrc-build should take care of ordering if all modules are included. So there's a bug in kdesrc-build's support for kf5, right? > Try following https://community.kde.org/Plasma/Building to see if you are missing out on any step. I don't see anything special.
The 1M$ answer is: I had to git pull the kdesrc-build tool, and everything works. There were changes related to KF5Mime recently. An idea.. could kdesrc-build autoupdate itself?
(In reply to Jarosław Staniek from comment #7) > An idea.. could kdesrc-build autoupdate itself? git pull && ./kdesrc-build :)
Thanks, I know but it's not an autoupdate. Building projects pull them first, you don't have to go through the clones and pull them. This way, kdesrc-build is another cloned dir.