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; ^ In file included from /usr/include/glib-2.0/gio/gio.h:53:0, from /usr/include/gstreamer-1.0/gst/rtsp/gstrtspconnection.h:52, from /usr/include/gstreamer-1.0/gst/rtsp/gstrtsp.h:24, from /usr/include/gstreamer-1.0/gst/rtsp/rtsp.h:25, from /usr/local/include/gstreamer-1.0/gst/rtsp-server/rtsp-media.h:21, from /usr/local/include/gstreamer-1.0/gst/rtsp-server/rtsp-session.h:57, from /usr/local/include/gstreamer-1.0/gst/rtsp-server/rtsp-session-pool.h:31, from /usr/local/include/gstreamer-1.0/gst/rtsp-server/rtsp-server.h:31, /usr/include/glib-2.0/gio/gdbusintrospection.h:155:24: error: expected ';' at end of member declaration GDBusSignalInfo **signals; ^ /usr/include/glib-2.0/gio/gdbusintrospection.h:155:32: error: expected ':' before ';' token GDBusSignalInfo **signals; And my .pro file: INCLUDEPATH += /usr/local/include/opencv LIBS += -L/usr/local/lib -lopencv_shape -lopencv_stitching -lopencv_objdetect -lopencv_superres \ -lopencv_videostab -lippicv -lopencv_calib3d -lopencv_features2d -lopencv_highgui -lopencv_videoio \ -lopencv_imgcodecs -lopencv_video -lopencv_photo -lopencv_ml -lopencv_imgproc -lopencv_flann -lopencv_core INCLUDEPATH += /usr/include/glib-2.0/ INCLUDEPATH+= /usr/lib/x86_64-linux-gnu/glib-2.0/include INCLUDEPATH += /usr/lib/x86_64-linux-gnu/gstreamer-1.0/include INCLUDEPATH += /usr/include/gstreamer-1.0 INCLUDEPATH += /usr/local/include/gstreamer-1.0 LIBS += -lgstrtspserver-1.0 And finally my .h file: #include <opencv2/opencv.hpp> #include "opencv2/imgproc/imgproc.hpp" #include <opencv2/core/core.hpp> #include <gst/gst.h> #include <gst/rtsp-server/rtsp-server.h> -> error #include <pthread.h> So my question is what I am doing wrong/bad on my include? I use GStreamer 1.6 and GStreamer-RTSP-Server 1.6.2 Best regards, Noob |
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? 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 _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (968 bytes) Download Attachment |
Many many thanks, you just save my project!
Now I have few errors with : g_signal_connect(factory, "media-configure", (GCallback)media_configure, NULL);. error: invalid use of member function (did you forget the '()' ?) |
Free forum by Nabble | Edit this page |