我遵循了https://github.com/cisco/openh264中提到的所有说明,但我无法通过。该信息在链接中被引用,但它相当混乱。
发布于 2016-07-21 12:54:57
替代方式:
您可以使用windows中的visual studio生成Openh264。以下是步骤..
NASM i)下载思科提供的https://github.com/cisco/openh264).
现在,如果您想获得openh264特性,只需将所有这些库添加到您的项目中即可。希望它能帮助你..:)
发布于 2015-10-14 23:38:46
我在Windows上使用推荐的mingw方法构建openh264时也遇到了一些困难。
在我的例子中,我尝试的所有配置的make
都崩溃了:
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
我求助于将现有的解决方案/项目(VS2008)转换为VS2013,并使用创建的.lib文件进行链接/构建。
您可以在{openh264_dir}\codec\build\win32\enc
和{openh264_dir}\codec\build\win32\dec
中找到解决方案。构建解决方案将在{openh264_dir}\bin\Win32\Release
中创建.libs和.dlls
要链接到库,您需要链接到welsenc.lib
。
在运行时,您需要在应用程序目录中同时包含welsenc.dll
和welsvp.dll
。到目前为止,它似乎对我的使用很好。我假设构建解码器将是类似的。
https://stackoverflow.com/questions/30045356
复制相似问题