Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build tdesktop against Qt5 in Linux #53

Open
mymedia2 opened this issue Sep 2, 2023 · 0 comments · May be fixed by #54
Open

Can't build tdesktop against Qt5 in Linux #53

mymedia2 opened this issue Sep 2, 2023 · 0 comments · May be fixed by #54

Comments

@mymedia2
Copy link

mymedia2 commented Sep 2, 2023

[ 18%] Building CXX object Telegram/lib_webview/CMakeFiles/lib_webview.dir/webview/platform/linux/webview_linux_compositor.cpp.o
In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWaylandCompositor/qtwaylandcompositorglobal.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWaylandCompositor/qwaylandcompositor.h:33,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWaylandCompositor/qwaylandquickcompositor.h:33,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWaylandCompositor/QWaylandQuickCompositor:1,
                 from /build/telegram-desktop/Telegram/lib_webview/webview/platform/linux/webview_linux_compositor.h:9,
                 from /build/telegram-desktop/Telegram/lib_webview/webview/platform/linux/webview_linux_compositor.cpp: :
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h: In instantiation of ‘T qobject_cast(QObject*) [with T = Webview::{anonymous}::Output*]’:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:753:35:   required from ‘static T QtPrivate::QVariantValueHelper<T>::object(const QVariant&) [with T = Webview::{anonymous}::Output*]’
/usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:107:35:   required from ‘static ReturnType QtPrivate::ObjectInvoker<Derived, Argument, ReturnType>::invoke(Argument) [with Derived = QtPrivate::QVariantValueHelper<Webview::{anonymous}::Output*>; Argument = const QVariant&; ReturnType = Webview::{anonymous}::Output*]’
/usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:879:62:   required from ‘T qvariant_cast(const QVariant&) [with T = Webview::{anonymous}::Output*]’
/build/telegram-desktop/Telegram/lib_webview/webview/platform/linux/webview_linux_compositor.cpp:202:46:   required from here
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:522:5: error: static assertion failed: qobject_cast requires the type to have a Q_OBJECT macro
  522 |     Q_STATIC_ASSERT_X(QtPrivate::HasQ_OBJECT_Macro<ObjType>::Value,
      |     ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:522:5: note: ‘false’ evaluates to false
make[2]: *** [Telegram/lib_webview/CMakeFiles/lib_webview.dir/build.make:118: Telegram/lib_webview/CMakeFiles/lib_webview.dir/webview/platform/linux/webview_linux_compositor.cpp.o] Ошибка 1
[ 18%] Building CXX object Telegram/lib_webview/CMakeFiles/lib_webview.dir/webview/platform/linux/webview_linux_webkitgtk.cpp.o
/build/telegram-desktop/Telegram/lib_webview/webview/platform/linux/webview_linux_webkitgtk.cpp: In lambda function:
/build/telegram-desktop/Telegram/lib_webview/webview/platform/linux/webview_linux_webkitgtk.cpp:117:55: error: ‘setGraphicsApi’ is not a member of ‘QQuickWindow’
  117 |                                         QQuickWindow::setGraphicsApi(
      |                                                       ^~~~~~~~~~~~~~
/build/telegram-desktop/Telegram/lib_webview/webview/platform/linux/webview_linux_webkitgtk.cpp:121:55: error: ‘setGraphicsApi’ is not a member of ‘QQuickWindow’
  121 |                                         QQuickWindow::setGraphicsApi(
      |                                                       ^~~~~~~~~~~~~~
make[2]: *** [Telegram/lib_webview/CMakeFiles/lib_webview.dir/build.make:146: Telegram/lib_webview/CMakeFiles/lib_webview.dir/webview/platform/linux/webview_linux_webkitgtk.cpp.o] Ошибка 1
@mymedia2 mymedia2 linked a pull request Sep 2, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant