kotelnik / plasma-applet-weather-widget

Plasma 5 applet for displaying weather information from yr.no server.
GNU General Public License v2.0
88 stars 42 forks source link

Build fails on Ubuntu 16.04.1 LTS, can't find Qt5Quick config files #41

Closed fusion809 closed 7 years ago

fusion809 commented 7 years ago

Hi,

On my Ubuntu 16.04 building this applet using the instructions in the README fails at the cmake stage giving the error:

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:26 (find_package):
  Could not find a package configuration file provided by "Qt5Quick" with any
  of the following names:

    Qt5QuickConfig.cmake
    qt5quick-config.cmake

  Add the installation prefix of "Qt5Quick" to CMAKE_PREFIX_PATH or set
  "Qt5Quick_DIR" to a directory containing one of the above files.  If
  "Qt5Quick" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:13 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/fusion809/plasma-applet-weather-widget/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found. Stop

I have searched for Qt5QuickConfig.cmake and qt5quick-config.cmake in /usr using find but neither was found. Running sudo apt-cache search qt5quick (looking for packages that might provide this two files) returns:

libqt5quick5 - Qt 5 Quick library
libqt5quickparticles5 - Qt 5 Quick particles module
libqt5quicktest5 - Qt 5 Quick Test library
libqt5quickwidgets5 - Qt 5 Quick Widgets library
libqt5quick5-gles - Qt 5 Quick library - OpenGLES
libqt5quickparticles5-gles - Qt 5 Quick particles module - OpenGLES
libqt5quickwidgets5-gles - Qt 5 Quick Widgets library - OpenGLES

I have installed libqt5quick5, libqt5quickparticles5, libqt5quicktest5 and libqt5quickwidgets5. Yet still I get this build error. Any ideas?

Thanks for your time, Brenton

fusion809 commented 7 years ago

Never mind, using apt-file I found the package was qtdeclarative5-dev.