Cannot install cmde kde-connect

I am trying to install kde-connect after this . Although my kubuntu version is 14.04, I wanted to compile them to have the latest version. But when I followed the compilation instructions, I got the following error.

-- Found Qt-Version 5.2.1 (using /usr/bin/qmake) CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: QT_QT_INCLUDE_DIR used as include directory in directory /home/vinaychandra/Downloads/t/CMakeFiles/CMakeTmp CMake Error: Internal CMake error, TryCompile configure of cmake failed CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:1311 (message): Unable to compile a basic Qt application. Qt has not been found correctly. Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindKDE4.cmake:95 (find_package) CMakeLists.txt:7 (find_package) 

Please indicate how to fix this.

I tried to give -DQT_QT_INCLUDE_DIR=/usr/share/qt4/ then it says that You must build your code with position independent code if Qt was built with -reduce-relocations.

+5
source share
5 answers

Your cmake uses a different version of QT by default. So, you should directly tell him which version of QT he should use for this job.

This

 -DQT_QT_INCLUDE_DIR=/usr/share/qt4/ 

Wrong, because you should not explicitly state the QT position. All you need to do is use the correct qmake. So give this flag and you will be happy!

 -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 
+7
source

Since most kde applications are not ported to Qt5, you need Qt4.x to build kdeconnect (I don't know x, mine is 4.8.6). In addition, the Qt4 installer is not available (I think!), So you need to also create it from the source. Building Qt4 is pretty simple, just load the source and run the usual commands.

After creating it, the name qmake will be qmake-qt4 in / usr / bin. So, to build kdeconnect, first run its cmake, then the Cmaketextcache.txt file will be generated. In this change, the qmake path (i.e., Somewhere written / usr / bin / qmake in / usr / bin / qmake-qt4) as well as the qt path include dir in (I think / usr / include / qt 5 in / usr / include / qt4) and run cmake again.

If some packages are missing, you need to install it. But with the above changes, you will get a make file to install it.

+1
source

Unfortunately, the provided documentation lags behind the current state of kdeconnect. I ran into similar problems, but I managed to solve them by installing the following packages from the Kubuntu repositories:

 sshfs libfakekey-dev libxtst-dev libqca2-dev libqjson-dev 

I believe that this is all of them. I installed kdeconnect from the last git commit and it seems to work fine.

0
source

This answer comes a little later, but this is the first Google search result for the question. On systems with qtchooser (at least Kubuntu, Ubuntu), this can be fixed by doing this first:

  export QT_SELECT=qt4 

This makes all Qt build tools the default version of Qt4 instead of Qt5. You can check which version of Qt is active by running:

  qmake --version 
0
source
  1. Try installing KDE Connect on Ubuntu: https://fazlerabbi37.imtqy.com/blogs/install_kde_connect_in_ubuntu_18.04.html (it works with simple sudo apt install kdeconnect on 18.04 and 19.04
  2. Install KDE Connect on your Android device (Google Play Store, where I installed)
  3. Call kde connect from the desktop
  4. Call KDE Connect from Android and the search device.
  5. Your Ubuntu will be found / initiates a desktop search. Android phone will be connected for pairing
  6. Accept pairing request
  7. Share folders
  8. Try clicking on the video / image file to transfer
  9. I could see the transfer of the new file to the / Downloads folder on the desktop
  10. allow / deny access to SMS, notifications, etc. on the desktop now

Note: please treat this with a pinch of salt. It seems very simple, effective for the main reason that it worked for me as soon as possible.

0
source

Source: https://habr.com/ru/post/1204359/


All Articles