Qt with QtGStreamer
-
What about first building these libraries ?
-
i try to follow the steps in readme file and download all dependecies that need to make lib work the Gstream boost lib and all these
and go to the example folder and try to compile the voip example i got this error that Qt5GStreamer-1.0 development package not found !
after that i try some soultion to as written in question
so what i should do to make it work please help me and thanks for your replay -
You should do like you did for boost, add the path to where the .lib files can be found.
-
-
see i found this line in .pro file
Tell qmake to use pkg-config to find QtGStreamer.
CONFIG += link_pkgconfig !? how the qmake can't find the package. it's the QtGstream folder i downloaded how give me this error ?
Qt5GStreamer-1.0 development package not found !! -
Because by default it uses pkg-config which is not installed on Windows.
You are still not adding the link flags to your .pro file for QtGStreamer.
-
how can i add please tell me i add this
INCLUDEPATH += C:/Users/a7a/Downloads/qt-gstreamer-1.2.0/src
the path to QGstream folder that contain the Libs the folder (QGlib - QGst - qml) ? what should i add
i should remove this line CONFIG += link_pkgconfig ? -
ok what i do is that
first i comment these lines# Tell qmake to use pkg-config to find QtGStreamer. #CONFIG += link_pkgconfig ## Now tell qmake to link to QtGStreamer and also use its include path and Cflags. #contains(QT_VERSION, ^4\\..*) { # PKGCONFIG += QtGStreamer-1.0 QtGStreamerUi-1.0 #} #contains(QT_VERSION, ^5\\..*) { # PKGCONFIG += Qt5GStreamer-1.0 Qt5GStreamerUi-1.0 # QT += widgets #}
and add these
INCLUDEPATH += C:/gstreamer/1.0/x86_64/lib C:/Users/a7a/Downloads/qt-gstreamer-1.2.0/src C:/boost_1_61_0/ $$PWD/dependencies/glib_2.28.8-1_win32/bin LIBS += "-LC:/boost_1_61_0/stage/lib" -L -Llibglib-2.0-0
when i try to compile the example i got these
-
To link to a library you have to pass the parameter with a lowercase L. Uppercase L is for giving additional path to look at.