acxz / pkgbuilds

PKGBUILDs for Arch Linux
25 stars 43 forks source link

[qgroundcontrol] Build fails on version 4.1.3-1 #129

Closed GuardedAirplane closed 2 years ago

GuardedAirplane commented 3 years ago

The current version of qgroundcontrol fails to build. The problem seems to be code errors in the qmlglsink library. Below are the build logs:

compiling /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtglutility.cc In file included from /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstplugin.cc:25: /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtelements.h:29:30: error: expected constructor, destructor, or type conversion before ‘(’ token 29 | GST_ELEMENT_REGISTER_DECLARE (qmlglsink); | ^ /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtelements.h:30:30: error: expected constructor, destructor, or type conversion before ‘(’ token 30 | GST_ELEMENT_REGISTER_DECLARE (qmlglsrc); | ^ /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtelements.h:31:30: error: expected constructor, destructor, or type conversion before ‘(’ token 31 | GST_ELEMENT_REGISTER_DECLARE (qmlgloverlay); | ^ compiling /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstqsgtexture.cc compiling /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtsink.cc In file included from /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtsink.cc:75: /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtelements.h:29:30: error: expected constructor, destructor, or type conversion before ‘(’ token 29 | GST_ELEMENT_REGISTER_DECLARE (qmlglsink); | ^ /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtelements.h:30:30: error: expected constructor, destructor, or type conversion before ‘(’ token 30 | GST_ELEMENT_REGISTER_DECLARE (qmlglsrc); | ^ /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtelements.h:31:30: error: expected constructor, destructor, or type conversion before ‘(’ token 31 | GST_ELEMENT_REGISTER_DECLARE (qmlgloverlay); | ^ /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstplugin.cc: In function ‘gboolean plugin_init(GstPlugin*)’: /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstplugin.cc:34:32: error: ‘qmlglsink’ was not declared in this scope 34 | ret |= GST_ELEMENT_REGISTER (qmlglsink, plugin); | ^~~~~ /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstplugin.cc:34:10: error: ‘GST_ELEMENT_REGISTER’ was not declared in this scope; did you mean ‘GST_ELEMENT_CAST’? 34 | ret |= GST_ELEMENT_REGISTER (qmlglsink, plugin); | ^~~~~~~~ | GST_ELEMENT_CAST /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstplugin.cc:36:32: error: ‘qmlglsrc’ was not declared in this scope 36 | ret |= GST_ELEMENT_REGISTER (qmlglsrc, plugin); | ^~~~ /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstplugin.cc:38:32: error: ‘qmlgloverlay’ was not declared in this scope 38 | ret |= GST_ELEMENT_REGISTER (qmlgloverlay, plugin); | ^~~~ compiling /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtsrc.cc make: [Makefile:134903: gstplugin.o] Error 1 make: Waiting for unfinished jobs.... /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtglutility.cc: In function ‘GstGLDisplay* gst_qt_get_gl_display(gboolean)’: /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtglutility.cc:108:15: error: invalid use of incomplete type ‘class QPlatformNativeInterface’ 108 | native->nativeResourceForWindow("display", NULL); | ^~ In file included from /usr/include/qt/QtGui/QGuiApplication:1, from /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtglutility.cc:26: /usr/include/qt/QtGui/qguiapplication.h:56:7: note: forward declaration of ‘class QPlatformNativeInterface’ 56 | class QPlatformNativeInterface; | ^~~~~~~~ make: [Makefile:134906: gstqtglutility.o] Error 1 In file included from /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtsrc.cc:30: /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtelements.h:29:30: error: expected constructor, destructor, or type conversion before ‘(’ token 29 | GST_ELEMENT_REGISTER_DECLARE (qmlglsink); | ^ /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtelements.h:30:30: error: expected constructor, destructor, or type conversion before ‘(’ token 30 | GST_ELEMENT_REGISTER_DECLARE (qmlglsrc); | ^ /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtelements.h:31:30: error: expected constructor, destructor, or type conversion before ‘(’ token 31 | GST_ELEMENT_REGISTER_DECLARE (qmlgloverlay); | ^ /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtsink.cc:138:39: error: expected constructor, destructor, or type conversion before ‘(’ token 138 | GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (qmlglsink, "qmlglsink", | ^ make: [Makefile:134918: gstqtsink.o] Error 1 /home/godfrey/.cache/yay/qgroundcontrol/src/qgroundcontrol-4.1.3/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtsrc.cc:80:39: error: expected constructor, destructor, or type conversion before ‘(’ token 80 | GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (qmlglsrc, "qmlglsrc", | ^ make: *** [Makefile:134925: gstqtsrc.o] Error 1 ==> ERROR: A failure occurred in build(). Aborting... error making: qgroundcontrol

acxz commented 2 years ago

This error should be resolved with the latest update to 4.1.4.