Bonjour,
Comme beaucoup avant moi, je cherche à integrer GStreamer dans un projet QT (player de base dans un premier temps, cf exemples).
J'ai essayé plusieurs versions (1.4.5, 1.5.1, 1.5.2), en 32 bits et 64 bits, avec Mingw en compilo
J'ai toujours des erreurs de compilation, a priori frequentes pour les débutants.
J'ai chercher longement mais sans succès.
Si quelqu'un peut m'aider ce serait sympa.
Mon .pro
1 2 3 4 5 6 7 8 9 10
| INCLUDEPATH += D:/Dev/GStreamer-145/1.0/x86/include \
D:/Dev/GStreamer-145/1.0/x86/include/gstreamer-1.0 \
D:/Dev/GStreamer-145/1.0/x86/include/glib-2.0\
D:/Dev/GStreamer-145/1.0/x86/include/glib-2.0/glib \
D:/Dev/GStreamer-145/1.0/x86/lib/glib-2.0/include
LIBS += -LD:/Dev/GStreamer-145/1.0/x86/lib \
-lglib-2.0 -lgobject-2.0 -lgstreamer-1.0 -lgstapp-1.0 -lgstvideo-1.0
CONFIG += D:/Dev/GStreamer-145/1.0/x86/lib/pkgconfig |
Output en x86:
09:34:14: Exécution des étapes pour le projet player...
09:34:14: Débute : "C:\Qt\Tools\mingw482_32\bin\mingw32-make.exe" clean
C:\Qt\5.3\mingw482_32\bin\qmake.exe -spec win32-g++ CONFIG+=debug -o Makefile ..\player\player.pro
C:/Qt/Tools/mingw482_32/bin/mingw32-make -f Makefile.Debug clean
mingw32-make[1]: Entering directory 'D:/workspace/GStreamer/examples/build-player-Desktop_Qt_5_3_MinGW_32bit-Debug'
del debug\main.o
mingw32-make[1]: Leaving directory 'D:/workspace/GStreamer/examples/build-player-Desktop_Qt_5_3_MinGW_32bit-Debug'
C:/Qt/Tools/mingw482_32/bin/mingw32-make -f Makefile.Release clean
mingw32-make[1]: Entering directory 'D:/workspace/GStreamer/examples/build-player-Desktop_Qt_5_3_MinGW_32bit-Debug'
del release\main.o
Impossible de trouver D:\workspace\GStreamer\examples\build-player-Desktop_Qt_5_3_MinGW_32bit-Debug\release\main.o
mingw32-make[1]: Leaving directory 'D:/workspace/GStreamer/examples/build-player-Desktop_Qt_5_3_MinGW_32bit-Debug'
09:34:18: Le processus "C:\Qt\Tools\mingw482_32\bin\mingw32-make.exe" s'est terminé normalement.
09:34:18: Configuration inchangée, étape qmake sautée.
09:34:18: Débute : "C:\Qt\Tools\mingw482_32\bin\mingw32-make.exe"
C:/Qt/Tools/mingw482_32/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'D:/workspace/GStreamer/examples/build-player-Desktop_Qt_5_3_MinGW_32bit-Debug'
g++ -c -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_NO_KEYWORDS -DQT_GUI_LIB -DQT_CORE_LIB -I..\player -I"..\..\..\..\Dev\GStreamer-145\1.0\x86\include" -I"..\..\..\..\Dev\GStreamer-145\1.0\x86\include\gstreamer-1.0" -I"..\..\..\..\Dev\GStreamer-145\1.0\x86\include\glib-2.0" -I"..\..\..\..\Dev\GStreamer-145\1.0\x86\include\glib-2.0\glib" -I"..\..\..\..\Dev\GStreamer-145\1.0\x86\lib\glib-2.0\include" -I"C:\Qt\5.3\mingw482_32\include" -I"C:\Qt\5.3\mingw482_32\include\QtGui" -I"C:\Qt\5.3\mingw482_32\include\QtCore" -I"debug" -I"." -I"C:\Qt\5.3\mingw482_32\mkspecs\win32-g++" -o debug\main.o ..\player\main.cpp
g++ -Wl,-subsystem,console -mthreads -o debug\player.exe debug/main.o -lglu32 -lopengl32 -lgdi32 -luser32 -LD:/Dev/GStreamer-145/1.0/x86/lib -lglib-2.0 -lgobject-2.0 -lgstreamer-1.0 -lgstapp-1.0 -lgstvideo-1.0 -LC:/Qt/5.3/mingw482_32/lib -lQt5Guid -lQt5Cored
debug/main.o:main.cpp:(.eh_frame+0x13): undefined reference to `__gxx_personality_v0'
collect2.exe: error: ld returned 1 exit status
Makefile.Debug:77: recipe for target 'debug\player.exe' failed
mingw32-make[1]: *** [debug\player.exe] Error 1
mingw32-make[1]: Leaving directory 'D:/workspace/GStreamer/examples/build-player-Desktop_Qt_5_3_MinGW_32bit-Debug'
mingw32-make: *** [debug] Error 2
Makefile:34: recipe for target 'debug' failed
09:34:20: Le processus "C:\Qt\Tools\mingw482_32\bin\mingw32-make.exe" s'est terminé avec le code 2.
Erreur lors de la compilation/déploiement du projet player (kit : Desktop Qt 5.3 MinGW 32bit)
When executing step "Make"
09:34:20: Temps écoulé : 00:07.
Output 1.4.5 en X86_64:
09:32:15: Exécution des étapes pour le projet player...
09:32:15: Configuration inchangée, étape qmake sautée.
09:32:15: Débute : "C:\Qt\Tools\mingw482_32\bin\mingw32-make.exe"
C:/Qt/Tools/mingw482_32/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'D:/workspace/GStreamer/examples/build-player-Desktop_Qt_5_3_MinGW_32bit-Debug'
g++ -Wl,-subsystem,console -mthreads -o debug\player.exe debug/main.o -lglu32 -lopengl32 -lgdi32 -luser32 -LD:/Dev/GStreamer-145/1.0/x86_64/lib -lglib-2.0 -lgobject-2.0 -lgstreamer-1.0 -lgstapp-1.0 -lgstvideo-1.0 -LC:/Qt/5.3/mingw482_32/lib -lQt5Guid -lQt5Cored
debug/main.o: In function `main':
D:\workspace\GStreamer\examples\build-player-Desktop_Qt_5_3_MinGW_32bit-Debug/../player/main.cpp:28: undefined reference to `gst_init'
D:\workspace\GStreamer\examples\build-player-Desktop_Qt_5_3_MinGW_32bit-Debug/../player/main.cpp:31: undefined reference to `gst_element_factory_make'
D:\workspace\GStreamer\examples\build-player-Desktop_Qt_5_3_MinGW_32bit-Debug/../player/main.cpp:33: undefined reference to `g_print'
D:\workspace\GStreamer\examples\build-player-Desktop_Qt_5_3_MinGW_32bit-Debug/../player/main.cpp:37: undefined reference to `gst_object_get_type'
D:\workspace\GStreamer\examples\build-player-Desktop_Qt_5_3_MinGW_32bit-Debug/../player/main.cpp:37: undefined reference to `g_type_check_instance_cast'
D:\workspace\GStreamer\examples\build-player-Desktop_Qt_5_3_MinGW_32bit-Debug/../player/main.cpp:37: undefined reference to `gst_object_unref'
debug/main.o:main.cpp:(.eh_frame+0x13): undefined reference to `__gxx_personality_v0'
collect2.exe: error: ld returned 1 exit status
Makefile.Debug:77: recipe for target 'debug\player.exe' failed
mingw32-make[1]: *** [debug\player.exe] Error 1
mingw32-make[1]: Leaving directory 'D:/workspace/GStreamer/examples/build-player-Desktop_Qt_5_3_MinGW_32bit-Debug'
Makefile:34: recipe for target 'debug' failed
mingw32-make: *** [debug] Error 2
09:32:16: Le processus "C:\Qt\Tools\mingw482_32\bin\mingw32-make.exe" s'est terminé avec le code 2.
Erreur lors de la compilation/déploiement du projet player (kit : Desktop Qt 5.3 MinGW 32bit)
When executing step "Make"
09:32:16: Temps écoulé : 00:01.
Output Version 1.5.1 en x86_64:
09:42:44: Exécution des étapes pour le projet player...
09:42:44: Débute : "C:\Qt\Tools\mingw48_32\bin\mingw32-make.exe" clean
C:/Qt/Tools/mingw48_32/bin/mingw32-make -f Makefile.Debug clean
mingw32-make[1]: Entering directory 'D:/workspace/GStreamer/examples/build-player-Desktop_Qt_5_2_1_MinGW_32bit-Debug'
del debug\main.o
Impossible de trouver D:\workspace\GStreamer\examples\build-player-Desktop_Qt_5_2_1_MinGW_32bit-Debug\debug\main.o
mingw32-make[1]: Leaving directory 'D:/workspace/GStreamer/examples/build-player-Desktop_Qt_5_2_1_MinGW_32bit-Debug'
C:/Qt/Tools/mingw48_32/bin/mingw32-make -f Makefile.Release clean
mingw32-make[1]: Entering directory 'D:/workspace/GStreamer/examples/build-player-Desktop_Qt_5_2_1_MinGW_32bit-Debug'
del release\main.o
Impossible de trouver D:\workspace\GStreamer\examples\build-player-Desktop_Qt_5_2_1_MinGW_32bit-Debug\release\main.o
mingw32-make[1]: Leaving directory 'D:/workspace/GStreamer/examples/build-player-Desktop_Qt_5_2_1_MinGW_32bit-Debug'
09:42:45: Le processus "C:\Qt\Tools\mingw48_32\bin\mingw32-make.exe" s'est terminé normalement.
09:42:45: Configuration inchangée, étape qmake sautée.
09:42:45: Débute : "C:\Qt\Tools\mingw48_32\bin\mingw32-make.exe"
C:/Qt/Tools/mingw48_32/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'D:/workspace/GStreamer/examples/build-player-Desktop_Qt_5_2_1_MinGW_32bit-Debug'
g++ -c -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_NO_KEYWORDS -DQT_GUI_LIB -DQT_CORE_LIB -I..\player -I"D:\Dev\GStreamer-151\1.0\x86_64\include" -I"D:\Dev\GStreamer-151\1.0\x86_64\include\gstreamer-1.0" -I"D:\Dev\GStreamer-151\1.0\x86_64\include\glib-2.0" -I"D:\Dev\GStreamer-15\1.0\x86_64\include\glib-2.0\glib" -I"D:\Dev\GStreamer-151\1.0\x86_64\lib\glib-2.0\include" -I"C:\Qt\5.2.1\mingw48_32\include" -I"C:\Qt\5.2.1\mingw48_32\include\QtGui" -I"C:\Qt\5.2.1\mingw48_32\include\QtCore" -I"debug" -I"." -I"C:\Qt\5.2.1\mingw48_32\mkspecs\win32-g++" -o debug\main.o ..\player\main.cpp
In file included from D:\Dev\GStreamer-151\1.0\x86_64\include\gstreamer-1.0/gst/gstbin.h:27:0,
from D:\Dev\GStreamer-151\1.0\x86_64\include\gstreamer-1.0/gst/gst.h:35,
from ..\player\main.cpp:23:
D:\Dev\GStreamer-151\1.0\x86_64\include\gstreamer-1.0/gst/gstelement.h:55:27: fatal error: gst/gstconfig.h: No such file or directory
#include <gst/gstconfig.h>
^
compilation terminated.
Makefile.Debug:177: recipe for target 'debug/main.o' failed
mingw32-make[1]: *** [debug/main.o] Error 1
mingw32-make[1]: Leaving directory 'D:/workspace/GStreamer/examples/build-player-Desktop_Qt_5_2_1_MinGW_32bit-Debug'
makefile:34: recipe for target 'debug' failed
mingw32-make: *** [debug] Error 2
09:42:46: Le processus "C:\Qt\Tools\mingw48_32\bin\mingw32-make.exe" s'est terminé avec le code 2.
Erreur lors de la compilation/déploiement du projet player (kit : Desktop Qt 5.2.1 MinGW 32bit)
When executing step "Make"
09:42:46: Temps écoulé : 00:02.
Output Version 1.5.2 en x86:
09:40:05: Exécution des étapes pour le projet player...
09:40:05: Configuration inchangée, étape qmake sautée.
09:40:05: Débute : "C:\Qt\Tools\mingw491_32\bin\mingw32-make.exe"
C:/Qt/Tools/mingw491_32/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'D:/workspace/GStreamer/examples/build-player-Desktop_Qt_5_4_1_MinGW_32bit-Debug'
g++ -c -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_NO_KEYWORDS -DQT_GUI_LIB -DQT_CORE_LIB -I"..\player" -I"." -I"D:\Dev\GStreamer-152\1.0\x86\include" -I"D:\Dev\GStreamer-152\1.0\x86\include\gstreamer-1.0" -I"D:\Dev\GStreamer-152\1.0\x86\include\glib-2.0" -I"D:\Dev\GStreamer-152\1.0\x86\include\glib-2.0\glib" -I"D:\Dev\GStreamer-152\1.0\x86\lib\glib-2.0\include" -I"C:\Qt\5.4\mingw491_32\include" -I"C:\Qt\5.4\mingw491_32\include\QtGui" -I"C:\Qt\5.4\mingw491_32\include\QtCore" -I"debug" -I"C:\Qt\5.4\mingw491_32\mkspecs\win32-g++" -o debug\main.o ..\player\main.cpp
In file included from D:\Dev\GStreamer-152\1.0\x86\include\gstreamer-1.0/gst/gstbin.h:27:0,
from D:\Dev\GStreamer-152\1.0\x86\include\gstreamer-1.0/gst/gst.h:35,
from ..\player\main.cpp:23:
D:\Dev\GStreamer-152\1.0\x86\include\gstreamer-1.0/gst/gstelement.h:55:27: fatal error: gst/gstconfig.h: No such file or directory
#include <gst/gstconfig.h>
^
compilation terminated.
Makefile.Debug:172: recipe for target 'debug/main.o' failed
mingw32-make[1]: *** [debug/main.o] Error 1
mingw32-make[1]: Leaving directory 'D:/workspace/GStreamer/examples/build-player-Desktop_Qt_5_4_1_MinGW_32bit-Debug'
makefile:34: recipe for target 'debug' failed
mingw32-make: *** [debug] Error 2
09:40:06: Le processus "C:\Qt\Tools\mingw491_32\bin\mingw32-make.exe" s'est terminé avec le code 2.
Erreur lors de la compilation/déploiement du projet player (kit : Desktop Qt 5.4.1 MinGW 32bit)
When executing step "Make"
09:40:06: Temps écoulé : 00:01.
Partager