有了解qtav怎么打包吗,我在项目中使用qtav播放rtsp视频流可以播放,但是打包后就没办法播放了,加了很多库还是没法播放
#include "mainwindow.h"
#include <QApplication>
#include <QtAV>
#include <QtAVWidgets>
using namespace QtAV;
int main(int argc, char* argv[])
{
QApplication a(argc, argv);
MainWindow w;
VideoOutput* m_vo;
AVPlayer* m_player;
m_player = new AVPlayer(&w);
m_vo = new VideoOutput(&w);
m_player->setRenderer(m_vo);
m_player->play("rtsp://192.168.100.1:8554/video/138");
w.setCentralWidget(m_vo->widget());
w.show();
return a.exec();
}
.pro文件
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++17
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
INCLUDEPATH += $$PWD/QTAV/include
INCLUDEPATH += $$PWD/QTAV/include/QtAV
INCLUDEPATH += $$PWD/QTAV/include/QtAV/5.9.7/QtAV/private
INCLUDEPATH += $$PWD/QTAV/include/QtAV/private
INCLUDEPATH += $$PWD/QTAV/include/QtAVWidgets
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/QTAV/lib_win_x86_64/ -lcommon
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/QTAV/lib_win_x86_64/ -lcommond
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/QTAV/lib_win_x86_64/ -lQmlAV
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/QTAV/lib_win_x86_64/ -lQmlAVd
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/QTAV/lib_win_x86_64/ -lQtAV1
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/QTAV/lib_win_x86_64/ -lQtAVd1
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/QTAV/lib_win_x86_64/ -lQtAVWidgets1
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/QTAV/lib_win_x86_64/ -lQtAVWidgetsd1
SOURCES += \
main.cpp \
mainwindow.cpp
HEADERS += \
mainwindow.h
FORMS += \
mainwindow.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target