Bug 378143

Summary: Okular compile problem with version check of KF5ThreadWeaver development files
Product: [Applications] okular Reporter: Szőgyényi Gábor <szg0000>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED NOT A BUG    
Severity: normal CC: aacid, luigi.toscano
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:

Description Szőgyényi Gábor 2017-03-27 08:38:13 UTC
There is a problem with Okular compiling. 
Okular (found suitable version "5.28.0", minimum required is "5.16.0") of KF5ThreadWeaver. Version of KF5ThreadWeaver "5.28.0" is greather than "5.16.0", but okular compiling doesn't allow it.

-------------------------------------------------------------------

szg@debian:~/okular/build$ cmake ..
CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a configuration file for package "KF5ThreadWeaver" that is
  compatible with requested version "5.16.0".

  The following configuration files were considered but not accepted:

    /usr/local/lib/x86_64-linux-gnu/cmake/KF5ThreadWeaver/KF5ThreadWeaverConfig.cmake, version: 5.2.0

Call Stack (most recent call first):
  CMakeLists.txt:43 (find_package)


-- Could NOT find KF5ThreadWeaver , checked the following files:
    /usr/local/lib/x86_64-linux-gnu/cmake/KF5ThreadWeaver/KF5ThreadWeaverConfig.cmake (version 5.2.0)

CMake Error at /usr/local/share/cmake-3.8/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find KF5 (missing: ThreadWeaver) (found suitable version
  "5.28.0", minimum required is "5.16.0")
Call Stack (most recent call first):
  /usr/local/share/cmake-3.8/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/share/ECM/find-modules/FindKF5.cmake:110 (find_package_handle_standard_args)
  CMakeLists.txt:43 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/szg/okular/build/CMakeFiles/CMakeOutput.log".
szg@debian:~/okular/build$
-------------------------------------------------------------------
Comment 1 Albert Astals Cid 2017-03-27 09:18:11 UTC
No, you don't have 5.28, you have 5.2

See the error:
/usr/local/lib/x86_64-linux-gnu/cmake/KF5ThreadWeaver/KF5ThreadWeaverConfig.cmake (version 5.2.0)
Comment 2 Szőgyényi Gábor 2017-03-27 09:57:31 UTC
But from another line: (found suitable version "5.28.0", minimum required is "5.16.0")
This means for me, I have 5.28.0.
Comment 3 Luigi Toscano 2017-03-27 10:03:19 UTC
Did you mix different versions? Frameworks 5.28 is available in Debian testing, but the logs shows:


    /usr/local/lib/x86_64-linux-gnu/cmake/KF5ThreadWeaver/KF5ThreadWeaverConfig.cmake, version: 5.2.0

Did you install another version of Frameworks under /usr/local?

The logs hint about something being mixed in your environment.
Comment 4 Szőgyényi Gábor 2017-03-27 12:42:57 UTC
I think yes. I tried to install it from source and it's installed from package also.
Comment 5 Luigi Toscano 2017-03-27 12:51:09 UTC
So you need to set the variables in a way that the source installation does not conflicts (or have different precedence) than the packaged one, or the other way round. In any case it's a problem with your build environment.