Bug 348076 - kdesrc-build: failed build, Could not find a package configuration file provided by "KF5Mime"
Summary: kdesrc-build: failed build, Could not find a package configuration file provi...
Status: RESOLVED WORKSFORME
Alias: None
Product: kdepimlibs
Classification: Applications
Component: general (show other bugs)
Version: GIT (master)
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-21 17:11 UTC by Jarosław Staniek
Modified: 2015-05-22 07:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
CMakeOutput.log (31.53 KB, text/x-log)
2015-05-21 17:12 UTC, Jarosław Staniek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jarosław Staniek 2015-05-21 17:11:54 UTC
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.
Comment 1 Jarosław Staniek 2015-05-21 17:12:26 UTC
Created attachment 92766 [details]
CMakeOutput.log
Comment 2 Siddhartha 2015-05-21 18:52:11 UTC
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
Comment 3 Jarosław Staniek 2015-05-21 19:44:32 UTC
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
Comment 4 Jarosław Staniek 2015-05-21 19:46:40 UTC
> 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.
Comment 5 Siddhartha 2015-05-21 20:22:57 UTC
(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.
Comment 6 Jarosław Staniek 2015-05-21 20:42:23 UTC
> 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.
Comment 7 Jarosław Staniek 2015-05-21 20:50:26 UTC
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?
Comment 8 Siddhartha 2015-05-22 06:56:24 UTC
(In reply to Jarosław Staniek from comment #7)
> An idea.. could kdesrc-build autoupdate itself?
git pull && ./kdesrc-build :)
Comment 9 Jarosław Staniek 2015-05-22 07:33:30 UTC
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.