我遵循了https://github.com/cisco/openh264中提到的所有说明,但我无法通过。该信息在链接中引用,但相当混乱。
替代方式:
您可以在 Windows 中使用 Visual Studio 构建 Openh264。以下是步骤..
现在,如果您想获得 openh264 功能,只需将所有这些库添加到您的项目中即可享受。 希望它能帮助你..:)
我在使用推荐的 mingw 方法在 Windows 上构建 openh264 时也遇到了一些困难。
就我而言,我尝试过的所有配置都崩溃了:
make
我将现有的解决方案/项目 (VS2008) 转换为 VS2013,并使用创建的 .lib 文件进行链接/构建。
您可以在
bash -c "make OS=msvc ARCH=x86_64 USE_ASM=No BUILDTYPE=Debug clean"
bash -c "make OS=msvc ARCH=x86_64 USE_ASM=No BUILDTYPE=Debug"
0 [main] make 3888 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
564 [main] make 3888 open_stackdumpfile: Dumping stack trace to make.exe.stackdump
0 [main] make 5448 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
561 [main] make 5448 open_stackdumpfile: Dumping stack trace to make.exe.stackdump
copying dll files to destination folder...
FullDestDir is E:\projects\openh264\bin\x64\Debug
current dir is:
E:\projects\openh264
DestDir is bin/x64/Debug
cp: cannot stat `openh264.dll': No such file or directory
cp: cannot stat `openh264.lib': No such file or directory
cp: cannot stat `openh264.pdb': No such file or directory
cp: cannot stat `codec_unittest.exe': No such file or directory
cp: cannot stat `h264enc.exe': No such file or directory
cp: cannot stat `h264dec.exe': No such file or directory
BuildDebugFlag =1
BuildReleaseFlag =0
BuildDebugInfo ="build debug--failed"
BuildReleaseInfo =NULL
aBuildFlagList is 1 0
ReturnCode is 1
和
{openh264_dir}\codec\build\win32\enc
中找到解决方案。
构建解决方案将在 {openh264_dir}\codec\build\win32\dec
中创建 .lib 和 .dll要链接到库,您需要链接到
{openh264_dir}\bin\Win32\Release
。
运行时,您的应用程序目录中需要同时具有
welsenc.lib
和
welsenc.dll
。到目前为止,它似乎对我的使用效果很好。
我假设构建解码器将是类似的。welsvp.dll
官方 github 存储库中给定的步骤正在运行,您可以按照以下步骤轻松编译 Windows:
获取Openh264
软件包获取最新版本的make
say C:/NASM
nasm
/build