tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

Build error v4.0.4

Open blackcross86 opened this issue 1 year ago • 0 comments

Steps to reproduce

When cmake is called, it throws an error. Compilation on qt5 is successful.On q6 there will be an error

Expected behaviour

How to solve the problem

Actual behaviour

How to solve the problem

Operating system

linux

Version of Telegram Desktop

4.0.4

Installation source

Other (unofficial) source

Logs

CMake Error at Telegram/CMakeLists.txt:7 (add_executable):
  Target "Telegram" links to target "EGL::EGL" but the target was not found.
  Perhaps a find_package() call is missing for an IMPORTED target, or an
  ALIAS target is missing?
CMake Error at Telegram/lib_base/CMakeLists.txt:11 (add_library):
  Target "lib_base_crash_report_writer" links to target "EGL::EGL" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
CMake Error at Telegram/lib_base/CMakeLists.txt:7 (add_library):
  Target "lib_base" links to target "EGL::EGL" but the target was not found.
  Perhaps a find_package() call is missing for an IMPORTED target, or an
  ALIAS target is missing?
CMake Error at Telegram/lib_ui/CMakeLists.txt:14 (add_library):
  Target "lib_ui" links to target "EGL::EGL" but the target was not found.  
  Perhaps a find_package() call is missing for an IMPORTED target, or an
  ALIAS target is missing?
CMake Error at Telegram/lib_spellcheck/CMakeLists.txt:7 (add_library):
  Target "lib_spellcheck" links to target "EGL::EGL" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
CMake Error at Telegram/lib_waylandshells/waylandshells/xdg-shell/CMakeLists.txt:7 (add_library):
  Target "lib_waylandshells_xdg_shell" links to target "EGL::EGL" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
CMake Error at Telegram/lib_webview/CMakeLists.txt:7 (add_library):
  Target "lib_webview" links to target "EGL::EGL" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing? 
CMake Error at Telegram/codegen/codegen/emoji/CMakeLists.txt:1 (add_executable):
  Target "codegen_emoji" links to target "EGL::EGL" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing? 
CMake Error at Telegram/codegen/codegen/lang/CMakeLists.txt:1 (add_executable):
  Target "codegen_lang" links to target "EGL::EGL" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
CMake Error at Telegram/codegen/codegen/style/CMakeLists.txt:1 (add_executable):
  Target "codegen_style" links to target "EGL::EGL" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
CMake Error at cmake/external/qt/qt_static_plugins/CMakeLists.txt:7 (add_library):
  Target "external_qt_static_plugins" links to target "EGL::EGL" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
CMake Error at Telegram/cmake/td_ui.cmake:7 (add_library):
  Target "td_ui" links to target "EGL::EGL" but the target was not found.
  Perhaps a find_package() call is missing for an IMPORTED target, or an
  ALIAS target is missing?
Call Stack (most recent call first):
  Telegram/CMakeLists.txt:40 (include)
CMake Error at Telegram/cmake/lib_stripe.cmake:7 (add_library):
  Target "lib_stripe" links to target "EGL::EGL" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or

blackcross86 avatar Aug 10 '22 14:08 blackcross86

Looks like your Qt 6 installation is broken, cmake can't find Qt's 3rdparty cmake helpers

ilya-fedin avatar Aug 10 '22 19:08 ilya-fedin

Looks like your Qt 6 installation is broken, cmake can't find Qt's 3rdparty cmake helpers

So qt6 itself is broken? Maybe you can tell me approximately what exactly, I would be grateful.

blackcross86 avatar Aug 10 '22 20:08 blackcross86

So qt6 itself is broken? Maybe you can tell me approximately what exactly, I would be grateful.

cmake fails to find EGL target that is provided by Qt, e.g. on Arch it has path /usr/lib/cmake/Qt6/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake, cmake can't find it on your system for some reason.

ilya-fedin avatar Aug 10 '22 20:08 ilya-fedin

According to the error, your Qt install didn't even try to import it, so it may exist, but still is not used by your Qt cmake configuration files for some reason

ilya-fedin avatar Aug 10 '22 20:08 ilya-fedin

So qt6 itself is broken? Maybe you can tell me approximately what exactly, I would be grateful.

cmake fails to find EGL target that is provided by Qt, e.g. on Arch it has path /usr/lib/cmake/Qt6/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake, cmake can't find it on your system for some reason.

Is it possible to somehow specify the path with the cmake flag?

blackcross86 avatar Aug 10 '22 21:08 blackcross86

You shouldn't do that, Qt should know the path as it's a part of Qt install.

ilya-fedin avatar Aug 10 '22 21:08 ilya-fedin

If you don't know what's going on with your Qt installation, maybe you should follow the instruction?

ilya-fedin avatar Aug 10 '22 21:08 ilya-fedin

If you don't know what's going on with your Qt installation, maybe you should follow the instruction?

It seems to me that he sees from qt5 FindEGL.cmake .Could it be that?

blackcross86 avatar Aug 10 '22 22:08 blackcross86

Qt 5 doesn't provide FindEGL.cmake, it used qmake to build itself and didn't use native cmake features when generating cmake config files therefore

ilya-fedin avatar Aug 10 '22 22:08 ilya-fedin

Why don't you just follow the instruction? It will build pre-configured environment for you.

ilya-fedin avatar Aug 10 '22 22:08 ilya-fedin

Why don't you just follow the instruction? It will build pre-configured environment for you.

Yes , I 'll read it .Thank you.

blackcross86 avatar Aug 10 '22 22:08 blackcross86