【发布时间】:2023-04-02 07:37:01
【问题描述】:
我按照https://github.com/cisco/openh264 中提到的所有说明进行操作,但无法通过。链接中引用了该信息,但相当混乱。
【问题讨论】:
我按照https://github.com/cisco/openh264 中提到的所有说明进行操作,但无法通过。链接中引用了该信息,但相当混乱。
【问题讨论】:
替代方式:
您可以在 Windows 中使用 Visual Studio 构建 Openh264。以下是步骤..
现在,如果您想获得 openh264 功能,只需将所有这些库添加到您的项目中即可享受。 希望它会帮助你.. :)
【讨论】:
使用推荐的 mingw 方法在 Windows 上构建 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。到目前为止,它似乎对我的使用效果很好。
我假设构建解码器将是类似的。
【讨论】: