Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

strncpy_s error when deploying ffmpeg streaming application on XP

I'm trying to deploy an application that uses ffmpeg to stream camera output to an XP machine. The application is written compiled with gcc mingw32 and runs fine on Windows 8. But on Windows XP I get the following error:

The procedure entry point strncpy_s could not be located in the 
dynamic link library msvcrt.dll

GCC command, excluding paths:

g++ -o mingw\streamer.exe src\testffmpeg.o -lavformat -lavutil -lavcodec -lFlyCapture2_C_v100

Dependency walker shows the following: Depedency Walker

How can I work around this strncpy_s problem? It seems to be ffmpeg which uses this function is msvcrt. I used the windows binaries they provided. I'd rather not have to compile the library myself, as it has a huge set of dependencies.

like image 894
dagur Avatar asked Mar 21 '26 01:03

dagur


1 Answers

Although not a generic solution, I solved this issue be using an older version of ffmpeg. The following release is the newest that does not require strncpy_s in msvcr.dll

  • ffmpeg-20130706-git-63d7684-win32-shared
  • ffmpeg-20130706-git-63d7684-win32-dev

As discussed in this forum thread

like image 91
dagur Avatar answered Mar 22 '26 13:03

dagur



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!