how to fix ,while compiling ,errors like “Could not find a package configuration file provided by “Qt5″”

for example :

CMake Error at CMakeLists.txt:19 (find_package): 
  Could not find a package configuration file provided by "Qt5" (requested 
  version 5.6.0) with any of the following names: 

just do this

  1. install apt-file: sudo apt-get install apt-file
  2. update apt-file’s database: apt-file update
  3. search with : apt-file search Qt5Config.cmake

in one line

a="YOURKEY" ; sudo apt-get install apt-file ; apt-file update ;apt-file search "$a"

so in ours example :

a="Qt5Config.cmake" ; sudo apt-get install apt-file ; apt-file update ;apt-file search "$a"

that give us

libaccounts-qt5-dev: /usr/lib/x86_64-linux-gnu/cmake/AccountsQt5/AccountsQt5Config.cmake
libphonon4qt5-dev: /usr/lib/x86_64-linux-gnu/cmake/phonon4qt5/Phonon4Qt5Config.cmake
libsignon-qt5-dev: /usr/lib/x86_64-linux-gnu/cmake/SignOnQt5/SignOnQt5Config.cmake
libtelepathy-qt5-dev: /usr/lib/x86_64-linux-gnu/cmake/TelepathyQt5/TelepathyQt5Config.cmake
qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake
qtbase5-gles-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake

so we need to install : qtbase5-dev #for example i mean you could even install others but because i am compiling plasma stuff this should be fine


Error loading QML file: file:///usr/share/plasma/plasmoids/org.kde.plasma.quickshare/contents/ui/main.qml:143:5: Type ShareDialog unavailable file:///usr/share/plasma/plasmoids/org.kde.plasma.quickshare/contents/ui/ShareDialog.qml:24:1: module “org.kde.purpose” is not installed


sudo apt-get install qml-modules-org-kde-purpose 

Rotate Virtual Terminal SDDM desktop manager and X Display

There are  multi-levels of rotation.

  • rotate VIRTUAL TERMINAL ( the terminals you get with : CTRL ALT F1   ,CTRL ALT F7 is the default to get back if you did 😀 )
  • rotate the DESKTOP MANAGER , kdm sddm lighdm etc.., where you login
  • rotate X display , the session and the application you usually use

If you want get the virtual terminal rotated at the login you can edit this file: (edit with nano\vim is better…for security issues.)

kdesudo kate /etc/default/grub

add this :

#uncomment to reset to default rotation display before login

where you can specify

  • 0 – Normal rotation
  • 1 – Rotate clockwise
  • 2 – Rotate upside down
  • 3 – Rotate counter-clockwise

after that

sudo update-grub

Now if you login with Kde for example and ssd you will not note any changes but if you do CTRL ALT F3 you WILL NOTE the rotation…



If you want rotate the desktop manager before you login you have to edit a specific file to achieve that  . Depending from your distro the location could change anyway i use kubuntu 17.04 and for sddm it’s (NOTE THE LINE IS CORRECT!! this way is better than kdesudo kate … )

EDITOR=kate  sudo -e /usr/share/sddm/scripts/Xsetup

now you have to put your xrandr solution at the bottom , that of course i recommend to test on your terminal first

example : turn off the laptop monitor , turn on the hdmi port and rotate it on left …

xrandr --output LVDS --off --output HDMI-0 --auto --rotate  left


 --rotate left
  --rotate right
  --rotate normal
  --rotate inverted

and you should get this stuff for example


now if you want to rotate X , and with that i mean your desktop when you are workin with your apps you just can rotate it with the systemsettings you get in your desktop but …. you can even do that with xrandr and a script, because i use kde i write down here how to do that ..
you have just to create a (must be!) file with your xrandr command for example this just restore to normal the rotation of HDMI and turn off laptop screen

xrandr --output LVDS --off --output HDMI-0 --auto --rotate  normal

save that file like in your ~/bin ($HOME/bin) give it the executable permission (chmod +x $HOME/bin/ set it like pre-kde startup

Now you have done! restart and you should get everything rotated like you wanted!