rtsp-server.h qt integrating problem

EpicNoob gstreamerdevlist01 at gmail.com
Fri Apr 15 07:39:01 UTC 2016


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



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/rtsp-server-h-qt-integrating-problem-tp4676924.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list