TelepathyIM / telepathy-morse

Telegram connection manager for the Telepathy framework
GNU General Public License v2.0
61 stars 10 forks source link

Could not find TelegramQt5Config.cmake #71

Closed vlad196 closed 1 year ago

vlad196 commented 1 year ago

When I try to run compilation, cmake can't find TelegramQt5Config.cmake:

CMake Error at CMakeLists.txt:24 (find_package):
  By not providing "FindTelegramQt5.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "TelegramQt5", but CMake did not find one.

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

    TelegramQt5Config.cmake
    telegramqt5-config.cmake

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

I don't really have a TelegramQt5Config.cmake. But this is because telegramQT installs the QT6 version and I find it in the system: "TelegramQt6Config.cmake" https://aur.archlinux.org/packages/telegram-qt-git https://github.com/Kaffeine/telegram-qt This is repeated that with self-assembly, that in AUR repositories

When I install the version with QT5 from the Pacman repository (older), cmake finds the file, but now it does not find: "TelegramQt5::Core"

-- The following REQUIRED packages have been found:

 * Qt5Xml
 * TelegramQt5
 * Qt5Core
 * Qt5DBus
 * Qt5Network
 * Qt5
 * TelepathyQt5
 * TelepathyQt5Service (required version >= 0.9.6)

-- Configuring done (0.2s)
CMake Error at CMakeLists.txt:129 (target_link_libraries):
  Target "telepathy-morse" links to:

    TelegramQt5::Core

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

It's very similar to what telepathy-morse is waiting for telegramQT version 5 when as the latest releases on QT6