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: 
 
    Qt5Config.cmake 
    qt5-config.cmake

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

ffmpeg kubuntu 14.04 compile


here it is my own stuff ==>

dependecies

sudo apt-get build-dep libav-tools  ;  sudo apt-get install build-essential git libopencore-amrnb-dev libopencore-amrwb-dev libopenjpeg-dev libx264-dev libxvidcore-dev libx264-dev libopenjpeg-dev libasound2-dev libdc1394-22-dev libgsm1-dev libimlib2-dev libraw1394-dev libsdl1.2-dev libschroedinger-dev libspeex-dev libtheora-dev libvorbis-dev libx11-dev libxext-dev libxvmc-dev quilt texi2html zlib1g-dev libfaad-dev libdirac-dev libfaac-dev libmp3lame-dev frei0r-plugins-dev libdirac-dev libfaac-dev ;sudo apt-get install libass-dev libbluray-dev libfontconfig1-dev libmodplug-dev librtmp-dev libv4l-dev libvo-aacenc-dev libvo-amrwbenc-dev libass-dev libbluray-dev libmodplug-dev libssl-dev libquvi-dev libsoxr-dev libssh-dev libtwolame-dev libvo-aacenc-dev libwavpack-dev libzmq3-dev libzvbi-dev libopenal-dev libgme-dev libsmbclient-dev libwebp-dev libxcb-*
cd /home/shared/git ; git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg-$(date +"%m-%d-%y");cd  ffmpeg-$(date +"%m-%d-%y")

then this will configure ffmpeg to be installed in USR/LOCAL SO YOU CAN INSTALL IN YOUR SYSTEM WITHOUT DESTROY YOUR DISTRO but remember you will do this to your own risk

 ./configure --prefix=/usr/local  --enable-gpl --enable-version3 --enable-nonfree --enable-small --enable-gray --enable-avresample --enable-vda --enable-fontconfig --enable-frei0r --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcaca --enable-libcdio --enable-libdc1394 --enable-libfaac --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libquvi --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-openal --enable-openssl --enable-x11grab  --enable-thumb --enable-extra-warnings --enable-ftrapv 

to extract every enable stuff you can try this

 ./configure --prefix=/usr/local   $(./configure --help|sort -r | awk  '/enable/{ print $1} END{printf "\n"}' | awk  '!/[A-Z]/ && !/avisynth/ && !/shared/ && !/poison/ && !/incompa/ && !/random/ && !/test/ && !/cross-compile/ && !/memalign-hack/ &&!/deck/ && !/libiec/ && !/libaacplus/ && !/libcelt/ && !/libflite/ && !/libilbc/ && !/libnut/ && !/opencv/ && !/shine/ && !/libstagefright/ && !/utvideo/ && !/vidstab/ && !/x265/ && !/libxavs/ && !/opencl/ && !/-rpath/ && !/ftrapv/ && !/hardcoded/ && !/major/ && !/libfdk-aac/ && !/opengl/ && !/enable-pic/ && !/enable-lto/ && !/small/ && !/gray/{print }'|awk -v ORS=" " '{print $1} END {printf "\n"}'

android mouse wifi ? “kde connect” 0.7.2 kubuntu 14.04


Screenshot_2014-09-06-10-32-08

ok this shit doesn’t work on kubuntu 14.04 ?

install this in your phone

https://play.google.com/store/apps/details?id=org.kde.kdeconnect_tp

now the problem it’s this
i have kubuntu 14.04 and it comes with Version: 0.5.1-0ubuntu1 for kde connect that has a bad bug : mouse simulation doesn’t work “Touchpad with multi-touch support for right click and middle click.”

so now just download the new version 0.7.2 and i will compile it

http://download.kde.org/unstable/kdeconnect/0.7.2/src/kdeconnect-kde-0.7.2.tar.xz

this line does the job for you

sudo apt-get build-dep kdeconnect #download dependencies

download , untar , cmake ,make and make instal in /usr/local with multicore support if you have . files are in /tmp folder

tempfolder="/tmp"; link="http://download.kde.org/unstable/kdeconnect/0.7.2/src/kdeconnect-kde-0.7.2.tar.xz"; cd "$tempfolder" ; wget $link ; tar -xJf kdeconnect*.xz ; cd kdeconnect*/; mkdir build ;cd build ;  cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local .. ; make -j $(grep -c ^processor /proc/cpuinfo) ; sudo make install

then restart the kdeconnectd ,ALT F2 => pkill kdeconnectd ; kdeconnectd

now make sure you have the touchpad option in systemsettings => kde connect =>
kdeconnecttouchpad

ok now you have the wifi mouse in your android phone.