canaconZion / videoPlayer

ffmpeg+Qt+SDL
6 stars 0 forks source link

When I compile videoplay using QT5.13.2 (Windows operating system), I am unable to successfully link the videoplay #13

Open pyh0603 opened 10 months ago

pyh0603 commented 10 months ago

QT compilation error prompt: d:\8.3encoder\code\videoplayer\src\cond.h: warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST:embed /OUT:debug\myVideoPlayer.exe @C:\Users\ADMINI~1\AppData\Local\Temp\myVideoPlayer.exe.11968.6625.jom LINK : fatal error LNK1104: jom: D:\8.3encoder\code\build-myVideoPlayer-Desktop_Qt_5_12_6_MSVC2017_64bit-Debug\Makefile.Debug [debug\myVideoPlayer.exe] Error 1104 jom: D:\8.3encoder\code\build-myVideoPlayer-Desktop_Qt_5_12_6_MSVC2017_64bit-Debug\Makefile [debug] Error 2 14:38:55: 进程"D:\14.qt\Tools\QtCreator\bin\jom.exe"退出,退出代码 2 。 Error while building/deploying project myVideoPlayer (kit: Desktop Qt 5.12.6 MSVC2017 64bit) When executing step "Make" 14:38:55: Elapsed time: 00:09.

my ffmpeg version: ffmpeg-6.0-full_build-shared my sdl2 version: SDL2-devel-2.28.4-VC.zip or SDL2-2.0.2 I think I had a problem linking to the SDL2 library,I have tested multiple SDL2 versions, but none of them were successfully linked.

My Question: 1.How to solve this problem 2.Which version of SDL2 and ffmpeg are you using? Can you please email me with my email address: pyh0603@hotmail.com

pyh0603 commented 10 months ago

My QT Project Configuration: INCLUDEPATH += D:\8.3encoder\code\videoPlayer\include\ffmpeg INCLUDEPATH += D:\8.3encoder\code\videoPlayer\include\SDL2

LIBS += -LD:\8.3encoder\code\videoPlayer\lib\ffmpeg -lswresample -lavformat -lswscale -lavutil -lavcodec -lavdevice -lavfilter LIBS += -LD:\8.3encoder\code\videoPlayer\lib\SDL2 -lSDL2

canaconZion commented 10 months ago

QT compilation error prompt: d:\8.3encoder\code\videoplayer\src\cond.h: warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST:embed /OUT:debug\myVideoPlayer.exe @C:\Users\ADMINI~1\AppData\Local\Temp\myVideoPlayer.exe.11968.6625.jom LINK : fatal error LNK1104: jom: D:\8.3encoder\code\build-myVideoPlayer-Desktop_Qt_5_12_6_MSVC2017_64bit-Debug\Makefile.Debug [debug\myVideoPlayer.exe] Error 1104 jom: D:\8.3encoder\code\build-myVideoPlayer-Desktop_Qt_5_12_6_MSVC2017_64bit-Debug\Makefile [debug] Error 2 14:38:55: 进程"D:\14.qt\Tools\QtCreator\bin\jom.exe"退出,退出代码 2 。 Error while building/deploying project myVideoPlayer (kit: Desktop Qt 5.12.6 MSVC2017 64bit) When executing step "Make" 14:38:55: Elapsed time: 00:09.

my ffmpeg version: ffmpeg-6.0-full_build-shared my sdl2 version: SDL2-devel-2.28.4-VC.zip or SDL2-2.0.2 I think I had a problem linking to the SDL2 library,I have tested multiple SDL2 versions, but none of them were successfully linked.

My Question: 1.How to solve this problem 2.Which version of SDL2 and ffmpeg are you using? Can you please email me with my email address: pyh0603@hotmail.com

I noticed that you are using the MSVC compiler for 64-bit. Please check if the libraries for ffmpeg and SDL2 are also 64-bit.

pyh0603 commented 10 months ago

QT compilation error prompt: d:\8.3encoder\code\videoplayer\src\cond.h: warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST:embed /OUT:debug\myVideoPlayer.exe @C:\Users\ADMINI~1\AppData\Local\Temp\myVideoPlayer.exe.11968.6625.jom LINK : fatal error LNK1104: jom: D:\8.3encoder\code\build-myVideoPlayer-Desktop_Qt_5_12_6_MSVC2017_64bit-Debug\Makefile.Debug [debug\myVideoPlayer.exe] Error 1104 jom: D:\8.3encoder\code\build-myVideoPlayer-Desktop_Qt_5_12_6_MSVC2017_64bit-Debug\Makefile [debug] Error 2 14:38:55: 进程"D:\14.qt\Tools\QtCreator\bin\jom.exe"退出,退出代码 2 。 Error while building/deploying project myVideoPlayer (kit: Desktop Qt 5.12.6 MSVC2017 64bit) When executing step "Make" 14:38:55: Elapsed time: 00:09. my ffmpeg version: ffmpeg-6.0-full_build-shared my sdl2 version: SDL2-devel-2.28.4-VC.zip or SDL2-2.0.2 I think I had a problem linking to the SDL2 library,I have tested multiple SDL2 versions, but none of them were successfully linked. My Question: 1.How to solve this problem 2.Which version of SDL2 and ffmpeg are you using? Can you please email me with my email address: pyh0603@hotmail.com

I noticed that you are using the MSVC compiler for 64-bit. Please check if the libraries for ffmpeg and SDL2 are also 64-bit.

Which compiler, FFmpeg version, and SDL2 version are you using?

Thank you for your reply.

canaconZion commented 10 months ago

QT compilation error prompt: d:\8.3encoder\code\videoplayer\src\cond.h: warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST:embed /OUT:debug\myVideoPlayer.exe @C:\Users\ADMINI~1\AppData\Local\Temp\myVideoPlayer.exe.11968.6625.jom LINK : fatal error LNK1104: jom: D:\8.3encoder\code\build-myVideoPlayer-Desktop_Qt_5_12_6_MSVC2017_64bit-Debug\Makefile.Debug [debug\myVideoPlayer.exe] Error 1104 jom: D:\8.3encoder\code\build-myVideoPlayer-Desktop_Qt_5_12_6_MSVC2017_64bit-Debug\Makefile [debug] Error 2 14:38:55: 进程"D:\14.qt\Tools\QtCreator\bin\jom.exe"退出,退出代码 2 。 Error while building/deploying project myVideoPlayer (kit: Desktop Qt 5.12.6 MSVC2017 64bit) When executing step "Make" 14:38:55: Elapsed time: 00:09. my ffmpeg version: ffmpeg-6.0-full_build-shared my sdl2 version: SDL2-devel-2.28.4-VC.zip or SDL2-2.0.2 I think I had a problem linking to the SDL2 library,I have tested multiple SDL2 versions, but none of them were successfully linked. My Question: 1.How to solve this problem 2.Which version of SDL2 and ffmpeg are you using? Can you please email me with my email address: pyh0603@hotmail.com

I noticed that you are using the MSVC compiler for 64-bit. Please check if the libraries for ffmpeg and SDL2 are also 64-bit.

Which compiler, FFmpeg version, and SDL2 version are you using?

Thank you for your reply.

Qt 5.9.0 MinGW 32bit ffmpeg 4.1 SDL2-2.0.8

canaconZion commented 10 months ago

@pyh0603 If you are still unable to run this project successfully, try downloading the library from ffmpeg+SLD2 lib and then run it again.