Ну так экстрасенсы в отпуске. Долгосрочном.
Без кода ошибки разговаривать нет смысла. Допустим, у меня RTSP работает нормально.
я ожидал такого ответа. =) компа не было в выходные..
вообщем ошибок много разный, но в конце концов пришел к следующим.
при запуске примера simple-player библиотеки vlc:
12:27:28: Starting: "F:\Qt\Tools\mingw900_64\bin\mingw32-make.exe" -j24
cd src\ && ( if not exist Makefile F:\Qt\6.2.2\mingw_64\bin\qmake.exe -o Makefile F:\examples-master\simple-player\src\src.pro -spec win32-g++ "CONFIG+=qtquickcompiler" ) && F:/Qt/Tools/mingw900_64/bin/mingw32-make -f Makefile
mingw32-make[1]: Entering directory 'F:/examples-master/build-simple-player-Desktop_Qt_6_2_2_MinGW_64_bit-Release/src'
F:/Qt/Tools/mingw900_64/bin/mingw32-make -f Makefile.Release
mingw32-make[2]: Entering directory 'F:/examples-master/build-simple-player-Desktop_Qt_6_2_2_MinGW_64_bit-Release/src'
g++ -c -fno-keep-inline-dllexport -O2 -Wall -Wextra -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I../../simple-player/src -I. -I../../../vlc_qt/include -I../../../Qt/6.2.2/mingw_64/include -I../../../Qt/6.2.2/mingw_64/include/QtWidgets -I../../../Qt/6.2.2/mingw_64/include/QtGui -I../../../Qt/6.2.2/mingw_64/include/QtCore -Irelease -I. -I/include -I../../../Qt/6.2.2/mingw_64/mkspecs/win32-g++ -o release\main.o ..\..\simple-player\src\main.cpp
g++ -Wl,-s -Wl,-subsystem,windows -mthreads -o release\simple-player.exe release/main.o release/SimplePlayer.o release/EqualizerDialog.o release/moc_SimplePlayer.o release/moc_EqualizerDialog.o F:\vlc_qt\bin\libvlc.dll F:\vlc_qt\bin\libvlccore.dll F:\vlc_qt\bin\libVLCQtCore.dll F:\vlc_qt\bin\libVLCQtCored.dll F:\vlc_qt\bin\libVLCQtQml.dll F:\vlc_qt\bin\libVLCQtQmld.dll F:\vlc_qt\bin\libVLCQtWidgets.dll F:\vlc_qt\bin\libVLCQtWidgetsd.dll -LF:\vlc_qt\lib -lVLCQtCore -lVLCQtWidgets F:\Qt\6.2.2\mingw_64\lib\libQt6Widgets.a F:\Qt\6.2.2\mingw_64\lib\libQt6Gui.a F:\Qt\6.2.2\mingw_64\lib\libQt6Core.a -lmingw32 F:\Qt\6.2.2\mingw_64\lib\libQt6EntryPoint.a -lshell32
collect2.exe: error: ld returned 5 exit status
mingw32-make[2]: *** [Makefile.Release:78: release/simple-player.exe] Error 1
mingw32-make[2]: Leaving directory 'F:/examples-master/build-simple-player-Desktop_Qt_6_2_2_MinGW_64_bit-Release/src'
mingw32-make[1]: Leaving directory 'F:/examples-master/build-simple-player-Desktop_Qt_6_2_2_MinGW_64_bit-Release/src'
mingw32-make[1]: *** [Makefile:45: release] Error 2
mingw32-make: *** [Makefile:50: sub-src-make_first] Error 2
12:27:33: The process "F:\Qt\Tools\mingw900_64\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project simple-player (kit: Desktop Qt 6.2.2 MinGW 64-bit)
When executing step "Make"
при компиляции примера qml-play
ТУТ В ОСНОВНОМ VlcVideoPlayer компонент не найден
12:31:36: Starting: "F:\Qt\Tools\mingw900_64\bin\mingw32-make.exe" -j24
F:/Qt/Tools/mingw900_64/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'F:/qtdoc/build-qml-play-Desktop_Qt_6_2_2_MinGW_64_bit-Debug'
g++ -c -fno-keep-inline-dllexport -g -Wall -Wextra -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I../qml-play -I. -I../../vlc_qt/include -I../../Qt/6.2.2/mingw_64/include -I../../Qt/6.2.2/mingw_64/include/QtWidgets -I../../Qt/6.2.2/mingw_64/include/QtGui -I../../Qt/6.2.2/mingw_64/include/QtCore -Idebug -I. -I/include -I../../Qt/6.2.2/mingw_64/mkspecs/win32-g++ -o debug\main.o ..\qml-play\main.cpp
F:/Qt/6.2.2/mingw_64/include/QtCore/qcompilerdetection.h:215:31: error: expected identifier before '__attribute__'
215 | # define Q_DECL_IMPORT __declspec(dllimport)
| ^~~~~~~~~~
F:/vlc_qt/include/VLCQtCore/SharedExportCore.h:27:27: note: in expansion of macro 'Q_DECL_IMPORT'
27 | #define VLCQT_CORE_EXPORT Q_DECL_IMPORT
| ^~~~~~~~~~~~~
F:/vlc_qt/include/VLCQtCore/VideoFrame.h:36:26: note: in expansion of macro 'VLCQT_CORE_EXPORT'
36 | struct Q_DECL_DEPRECATED VLCQT_CORE_EXPORT VlcVideoFrame // LCOV_EXCL_LINE
| ^~~~~~~~~~~~~~~~~
In file included from F:/vlc_qt/include/VLCQtQml/QmlVideoObject.h:30,
from F:/vlc_qt/include/VLCQtQml/QmlVideoPlayer.h:24,
from ..\qml-play\main.cpp:11:
F:/vlc_qt/include/VLCQtCore/VideoFrame.h:36:44: error: variable 'VlcVideoFrame' definition is marked dllimport
36 | struct Q_DECL_DEPRECATED VLCQT_CORE_EXPORT VlcVideoFrame // LCOV_EXCL_LINE
| ^~~~~~~~~~~~~
F:/vlc_qt/include/VLCQtCore/VideoFrame.h:43:18: error: 'VlcVideoFrame' cannot be used as a function
43 | VlcVideoFrame();
| ~~~~~~~~~~~~~^~
F:/vlc_qt/include/VLCQtCore/VideoFrame.h:43:20: error: expected '}' before ';' token
43 | VlcVideoFrame();
| ^
F:/vlc_qt/include/VLCQtCore/VideoFrame.h:37:1: note: to match this '{'
37 | {
| ^
F:/vlc_qt/include/VLCQtCore/VideoFrame.h:58:1: error: expected declaration before '}' token
58 | };
| ^
F:/Qt/6.2.2/mingw_64/include/QtCore/qcompilerdetection.h:215:31: error: expected identifier before '__attribute__'
215 | # define Q_DECL_IMPORT __declspec(dllimport)
| ^~~~~~~~~~
F:/vlc_qt/include/VLCQtCore/SharedExportCore.h:27:27: note: in expansion of macro 'Q_DECL_IMPORT'
27 | #define VLCQT_CORE_EXPORT Q_DECL_IMPORT
| ^~~~~~~~~~~~~
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:55:25: note: in expansion of macro 'VLCQT_CORE_EXPORT'
55 | class Q_DECL_DEPRECATED VLCQT_CORE_EXPORT VlcVideoMemoryStream
| ^~~~~~~~~~~~~~~~~
In file included from F:/vlc_qt/include/VLCQtQml/QmlVideoObject.h:31,
from F:/vlc_qt/include/VLCQtQml/QmlVideoPlayer.h:24,
from ..\qml-play\main.cpp:11:
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:55:43: error: variable 'VlcVideoMemoryStream' definition is marked dllimport
55 | class Q_DECL_DEPRECATED VLCQT_CORE_EXPORT VlcVideoMemoryStream
| ^~~~~~~~~~~~~~~~~~~~
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:57:1: error: expected primary-expression before 'public'
57 | public:
| ^~~~~~
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:57:1: error: expected '}' before 'public'
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:56:1: note: to match this '{'
56 | {
| ^
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:59:34: error: expected class-name before '(' token
59 | virtual ~VlcVideoMemoryStream();
| ^
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:86:1: error: expected unqualified-id before 'protected'
86 | protected:
| ^~~~~~~~~
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:95:5: error: 'virtual' outside class declaration
95 | virtual void unlockCallback(void *picture,
| ^~~~~~~
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:95:18: error: function 'void unlockCallback(void*, void* const*)' is initialized like a variable
95 | virtual void unlockCallback(void *picture,
| ^~~~~~~~~~~~~~
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:101:5: error: 'virtual' outside class declaration
101 | virtual void displayCallback(void *picture) = 0;
| ^~~~~~~
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:101:18: error: function 'void displayCallback(void*)' is initialized like a variable
101 | virtual void displayCallback(void *picture) = 0;
| ^~~~~~~~~~~~~~~
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:106:5: error: 'virtual' outside class declaration
106 | virtual unsigned formatCallback(char *chroma,
| ^~~~~~~
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:106:22: error: function 'unsigned int formatCallback(char*, unsigned int*, unsigned int*, unsigned int*, unsigned int*)' is initialized like a variable
106 | virtual unsigned formatCallback(char *chroma,
| ^~~~~~~~~~~~~~
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:115:5: error: 'virtual' outside class declaration
115 | virtual void formatCleanUpCallback() = 0;
| ^~~~~~~
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:115:18: error: function 'void formatCleanUpCallback()' is initialized like a variable
115 | virtual void formatCleanUpCallback() = 0;
| ^~~~~~~~~~~~~~~~~~~~~
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:117:1: error: expected unqualified-id before 'private'
117 | private:
| ^~~~~~~
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:133:1: error: expected declaration before '}' token
133 | };
| ^
F:/Qt/6.2.2/mingw_64/include/QtCore/qcompilerdetection.h:215:31: error: expected identifier before '__attribute__'
215 | # define Q_DECL_IMPORT __declspec(dllimport)
| ^~~~~~~~~~
F:/vlc_qt/include/VLCQtQml/SharedExportQml.h:27:26: note: in expansion of macro 'Q_DECL_IMPORT'
27 | #define VLCQT_QML_EXPORT Q_DECL_IMPORT
| ^~~~~~~~~~~~~
F:/vlc_qt/include/VLCQtQml/QmlVideoObject.h:48:25: note: in expansion of macro 'VLCQT_QML_EXPORT'
48 | class Q_DECL_DEPRECATED VLCQT_QML_EXPORT VlcQmlVideoObject : public QQuickPaintedItem,
| ^~~~~~~~~~~~~~~~
In file included from F:/vlc_qt/include/VLCQtQml/QmlVideoPlayer.h:24,
from ..\qml-play\main.cpp:11:
F:/vlc_qt/include/VLCQtQml/QmlVideoObject.h:48:60: error: expected initializer before ':' token
48 | class Q_DECL_DEPRECATED VLCQT_QML_EXPORT VlcQmlVideoObject : public QQuickPaintedItem,
| ^
F:/Qt/6.2.2/mingw_64/include/QtCore/qcompilerdetection.h:215:31: error: expected identifier before '__attribute__'
215 | # define Q_DECL_IMPORT __declspec(dllimport)
| ^~~~~~~~~~
F:/vlc_qt/include/VLCQtQml/SharedExportQml.h:27:26: note: in expansion of macro 'Q_DECL_IMPORT'
27 | #define VLCQT_QML_EXPORT Q_DECL_IMPORT
| ^~~~~~~~~~~~~
F:/vlc_qt/include/VLCQtQml/QmlVideoPlayer.h:44:25: note: in expansion of macro 'VLCQT_QML_EXPORT'
44 | class Q_DECL_DEPRECATED VLCQT_QML_EXPORT VlcQmlVideoPlayer : public VlcQmlVideoObject
| ^~~~~~~~~~~~~~~~
In file included from ..\qml-play\main.cpp:11:
F:/vlc_qt/include/VLCQtQml/QmlVideoPlayer.h:44:60: error: expected initializer before ':' token
44 | class Q_DECL_DEPRECATED VLCQT_QML_EXPORT VlcQmlVideoPlayer : public VlcQmlVideoObject
| ^
..\qml-play\main.cpp: In function 'int qMain(int, char**)':
..\qml-play\main.cpp:20:5: error: 'VlcQmlVideoPlayer' has not been declared
20 | VlcQmlVideoPlayer::registerPlugin();
| ^~~~~~~~~~~~~~~~~
In file included from F:/vlc_qt/include/VLCQtQml/QmlVideoObject.h:31,
from F:/vlc_qt/include/VLCQtQml/QmlVideoPlayer.h:24,
from ..\qml-play\main.cpp:11:
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h: At global scope:
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:66:21: warning: 'unsigned int setPitchAndLines(const vlc_chroma_description_t*, unsigned int, unsigned int, unsigned int*, unsigned int*, unsigned int*, unsigned int*)' declared 'static' but never defined [-Wunused-function]
66 | static unsigned setPitchAndLines(const vlc_chroma_description_t *chromaDescription,
| ^~~~~~~~~~~~~~~~
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:120:17: warning: 'void unlockCallbackInternal(void*, void*, void* const*)' declared 'static' but never defined [-Wunused-function]
120 | static void unlockCallbackInternal(void *opaque,
| ^~~~~~~~~~~~~~~~~~~~~~
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:123:17: warning: 'void displayCallbackInternal(void*, void*)' declared 'static' but never defined [-Wunused-function]
123 | static void displayCallbackInternal(void *opaque,
| ^~~~~~~~~~~~~~~~~~~~~~~
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:126:21: warning: 'unsigned int formatCallbackInternal(void**, char*, unsigned int*, unsigned int*, unsigned int*, unsigned int*)' declared 'static' but never defined [-Wunused-function]
126 | static unsigned formatCallbackInternal(void **opaque,
| ^~~~~~~~~~~~~~~~~~~~~~
F:/vlc_qt/include/VLCQtCore/VideoMemoryStream.h:132:17: warning: 'void formatCleanUpCallbackInternal(void*)' declared 'static' but never defined [-Wunused-function]
132 | static void formatCleanUpCallbackInternal(void *opaque);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mingw32-make[1]: Leaving directory 'F:/qtdoc/build-qml-play-Desktop_Qt_6_2_2_MinGW_64_bit-Debug'
mingw32-make[1]: *** [Makefile.Debug:471: debug/main.o] Error 1
mingw32-make: *** [Makefile:45: debug] Error 2
12:31:38: The process "F:\Qt\Tools\mingw900_64\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project qml-play (kit: Desktop Qt 6.2.2 MinGW 64-bit)
When executing step "Make"
12:31:38: Elapsed time: 00:02.
при компиляции opencv все ок, все ошибки сняты,
но тут не понятен формат rtsp запроса... на форумах пишут делать так rtsp://127.0.0.1/video?h264
но пока ничего не получилось