Open ldj9708 opened 3 years ago
I saw this https://github.com/wang-bin/QtAV/wiki/Can-Not-Run-QtAV-App
so I tried to build project in console.
result is below.
D:>cd D:\QT\test_ffmpeg_1_QTAV\build
D:\QT\test_ffmpeg_1_QTAV\build>qmake ..\test_ffmpeg_1.pro Info: creating stash file D:\QT\test_ffmpeg_1_QTAV\build.qmake.stash
D:\QT\test_ffmpeg_1_QTAV\build>make
make -f Makefile.Release
make[1]: Entering directory D:/QT/test_ffmpeg_1_QTAV/build' g++ -c -fno-keep-inline-dllexport -O2 -std=gnu++11 -Wall -W -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_AVWIDGETS_LIB -DQT_AV_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I../../test_ffmpeg_1_QTAV -I. -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include/QtQuick -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include/QtAVWidgets -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include/QtAV -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include/QtOpenGL -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include/QtWidgets -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include/QtGui -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include/QtANGLE -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include/QtQml -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include/QtNetwork -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include/QtCore -Irelease -I/include -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/mkspecs/win32-g++ -o release/main.o ../main.cpp 'C:\Qt\Qt5.13.2\5.13.2\mingw73_64\bin\rcc.exe' -name qml ../qml.qrc -o release/qrc_qml.cpp g++ -c -fno-keep-inline-dllexport -O2 -std=gnu++11 -Wall -W -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_AVWIDGETS_LIB -DQT_AV_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I../../test_ffmpeg_1_QTAV -I. -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include/QtQuick -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include/QtAVWidgets -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include/QtAV -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include/QtOpenGL -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include/QtWidgets -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include/QtGui -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include/QtANGLE -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include/QtQml -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include/QtNetwork -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/include/QtCore -Irelease -I/include -IC:/Qt/Qt5.13.2/5.13.2/mingw73_64/mkspecs/win32-g++ -o release/qrc_qml.o release/qrc_qml.cpp g++ -Wl,-s -Wl,-subsystem,windows -mthreads -o release/test_ffmpeg_1.exe release/main.o release/qrc_qml.o C:/Qt/Qt5.13.2/5.13.2/mingw73_64/lib/libQt5Quick.a C:/Qt/Qt5.13.2/5.13.2/mingw73_64/lib/libQt5OpenGL.a C:/Qt/Qt5.13.2/5.13.2/mingw73_64/lib/libQt5Widgets.a C:/Qt/Qt5.13.2/5.13.2/mingw73_64/lib/libQt5Gui.a C:/Qt/Qt5.13.2/5.13.2/mingw73_64/lib/libQt5Qml.a C:/Qt/Qt5.13.2/5.13.2/mingw73_64/lib/libQt5Network.a C:/Qt/Qt5.13.2/5.13.2/mingw73_64/lib/libQt5Core.a -lmingw32 C:/Qt/Qt5.13.2/5.13.2/mingw73_64/lib/libqtmain.a -LC:/openssl/lib -LC:/Utils/my_sql/mysql-5.7.25-winx64/lib -LC:/Utils/postgresql/pgsql/lib -lshell32 make[1]: Leaving directory
D:/QT/test_ffmpeg_1_QTAV/build'
and exe file was build, run in console, no thing happened.
QtAV, Qt version and platform
QtAV : QtAV-Qt5.9-VS2017x64-release-2a470d2 from https://sourceforge.net/projects/qtav/files/ci/
Qt version : Qt Creator 4.10.1 Based on Qt 5.13.1 (MSVC 2017, 32 bit) windows10
Reproduction steps
copy openAL bin, include, lib to QT dir from https://sourceforge.net/projects/qtav/files/depends/ QtAV-depends-windows-x86+x64.7z
copy ffmpeg bin, include, lib to QT dir C:\Qt\Qt5.13.2\5.13.2\mingw73_64 from https://sourceforge.net/projects/avbuild/files/windows-desktop/ ffmpeg-master-desktop-MINGW-lite.7z
and run Sample files below.
Expected behavior
QtAV window running
Actual behavior
application output :
Log file
no log file
Sample files (optional)
main.qml
test_ffmpeg_1.pro
I fallowed this https://github.com/wang-bin/QtAV/wiki/Deploy-SDK-Without-Building-QtAV