rtsp-server.h qt integrating problem

Sebastian Dröge sebastian at centricular.com
Fri Apr 15 08:18:40 UTC 2016


On Fr, 2016-04-15 at 00:39 -0700, EpicNoob wrote:
> Hello,
> First sorry for my bad english.
> 
> My problem is on the include of the rtsp-server header on the .pro file of
> QT5, the purpose of the project is to make a GStreamer/OpenCV RTSP server.
> When I include this file i got a strange error on QT library:
> 
> In file included from ../Qt/5.6/gcc_64/include/QtGui/qwindowdefs.h:38:0,
>                  from ../Qt/5.6/gcc_64/include/QtWidgets/qwidget.h:37,
>                  from ../Qt/5.6/gcc_64/include/QtWidgets/qmainwindow.h:37,
>                  from ../Qt/5.6/gcc_64/include/QtWidgets/QMainWindow:1,
>                  from ../QT_RTE/mainwindow.h:4,
>                  from ../QT_RTE/main.cpp:1:
> ../Qt/5.6/gcc_64/include/QtCore/qobjectdefs.h:68:22: error: expected
> unqualified-id before 'public'
>  #     define signals public
>                       ^
> /usr/include/glib-2.0/gio/gdbusintrospection.h:155:25: note: in expansion of
> macro 'signals'
>    GDBusSignalInfo     **signals;
>                 
> So my question is what I am doing wrong/bad on my include?

You're doing nothing wrong, it's Qt #defining "signals" to something
globally and breaking the GLib headers because of that. If you include
the GLib headers before the Qt headers it should work fine.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160415/f65d18fb/attachment-0001.sig>


More information about the gstreamer-devel mailing list