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

KReport. package configuration file "Qt5Qml" not found

Tags: None
(comma "," separated)
User avatar
inksi
Registered Member
Posts
77
Karma
0
OS
Hi.

I am building Kexi 3 only (on Mint 18.2)

Generally following the documents:
Kexi/Porting to Qt&KF 5
Guidelines and HOWTOs/Build from source.

To do this I need to first build KDb, KProperty, & KReport. I have built the first two successfully (using kdesrc-build) but reap an error in building Kreport.

Cmake.log reports:
Code: Select all
CMake Error at src/CMakeLists.txt:5 (find_package):
  By not providing "FindQt5Qml.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Qml", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5Qml" with any
  of the following names:

    Qt5QmlConfig.cmake
    qt5qml-config.cmake

  Add the installation prefix of "Qt5Qml" to CMAKE_PREFIX_PATH or set
  "Qt5Qml_DIR" to a directory containing one of the above files.  If "Qt5Qml"
  provides a separate development package or SDK, be sure it has been
  installed.


In "Guidelines and HOWTOs/Build from source" Section 1.5.6.2 Misssing Qt5Config.cmake gives the solution as the installation of qtbase5-dev thus:

It can be fixed by installing the dependency
Code: Select all
sudo apt-get install qtbase5-dev

Run again the kdesrc-build command, and it should be fine

I have installed the latest version and the problem remains, it does not solve the build error in my case.
If I were to specifically follow the instructions in the cmake.log file error as given above, ie.
Add the installation prefix of "Qt5Qml" to CMAKE_PREFIX_PATH or ....

I need to know where this is to be added - a pointer to this would be appreciated.

Ian
User avatar
inksi
Registered Member
Posts
77
Karma
0
OS
Taking the error message at face value, ignoring suggested workaround, and assuming that the package was maybe just not installed, I looked in the directory tree at:
usr/lib/x86_64-linux-gnu/cmake/Qt5Qml
which showed that directory and contents were not installed.
To install the needed qtdeclaratives5-dev I ran
Code: Select all
 $ sudo  apt-get install qtdeclarative5-dev

and further inspection showed the missing directory /Qt5Qml now installed.
A helpful discussion was from this source, dating back to early this year.
https://sourceforge.net/p/smb4k/discussion/help/thread/299bf31d/

I was then able to build kreports xD

Ian


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]