在XP上部署ffmpeg流式应用程序时出现strncpy_s错误 [英] strncpy_s error when deploying ffmpeg streaming application on XP

查看:291
本文介绍了在XP上部署ffmpeg流式应用程序时出现strncpy_s错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试部署一个使用ffmpeg的应用程序将摄像机输出流传输到XP机器。该应用程序是用gcc mingw32编写的,在Windows 8上运行良好。但是在Windows 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命令,不包括路径:

GCC command, excluding paths:

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

依赖性助行器显示以下内容:

Dependency walker shows the following:

如何解决这个strncpy_s问题?似乎是ffmpeg使用这个功能是msvcrt。我使用了他们提供的windows二进制文件。我宁可不用自己编译库,因为它有一个很大的依赖关系。

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.

推荐答案

虽然不是一般的解决方案,我解决了这个问题,使用旧版本的ffmpeg。以下版本是最新的,不需要msvcr.dll中的strncpy_s

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

这个论坛帖子

这篇关于在XP上部署ffmpeg流式应用程序时出现strncpy_s错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆