繁体   English   中英

Dartium使用ffmpeg在Windows上构建

[英]Dartium build on windows with ffmpeg

我正在尝试使用专有编解码器构建Dartium。 我遇到“ _ff_w64_guid_data”问题。 我做了一个google搜索,发现最多的是它是旧版本的铬的一个错误,并且在以后的版本中已得到修复,不幸的是,由于我被卡住了,它没有涉及到如何实际修复它用这种版本的Dartium铬。

我在https://github.com/dart-lang/sdk/wiki/Building-Dartium上的标准说明之前运行了“设置GYP_DEGINES =“” proprietary_codecs = 1 ffmpeg_branding = Chrome“

这是构建信息的副本。

C:\dart\dartium\src>.\dart\tools\dartium\build.py --mode=Release
Running:  ninja -j4 -C out\Release content_shell chrome blink_tests
ninja: Entering directory `out\Release'
[16/1415] LINK_EMBED delegate_execute.exe
uuid.lib(objidl_i.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
Generating code
Finished generating code
[32/1415] LINK_EMBED(DLL) chrome_child.dll
FAILED: chrome_child.dll chrome_child.dll.lib chrome_child.dll.pdb
C:\src\depot_tools\python276_bin\python.exe gyp-win-tool link-with-manifests environment.x86 True chrome_child.dll "C:\src\depot_tools\python276_bin\python.exe gyp-win-tool link-wrapper environment.x86 False link.exe /nologo /IMPLIB:chrome_child.dll.lib /DLL /OUT:chrome_child.dll @chrome_child.dll.rsp" 2 mt.exe rc.exe "obj\chrome\chrome_child_dll.chrome_child.dll.intermediate.manifest" obj\chrome\chrome_child_dll.chrome_child.dll.generated.manifest
uuid.lib(cguid_i.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
ffmpeg.lib(ffmpeg.wavdec.obj) : error LNK2001: unresolved external symbol _ff_w64_guid_data
chrome_child.dll : fatal error LNK1120: 1 unresolved externals
Traceback (most recent call last):
  File "gyp-win-tool", line 313, in <module>
    sys.exit(main(sys.argv[1:]))
  File "gyp-win-tool", line 29, in main
    exit_code = executor.Dispatch(args)
  File "gyp-win-tool", line 71, in Dispatch
    return getattr(self, method)(*args[1:])
  File "gyp-win-tool", line 169, in ExecLinkWithManifests
    subprocess.check_call(ldcmd + add_to_ld)
  File "C:\src\depot_tools\python276_bin\lib\subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'C:\src\depot_tools\python276_bin\python.exe gyp-win-tool link-wrapper environment.x86 False link.exe /nologo /IMPLIB:chrome_child.dll.lib /DLL /OUT:chrome_child.dll @chrome_child.dll.rsp chrome_child.dll.manifest.res' returned non-zero exit status 1120
[34/1415] LINK_EMBED blink_heap_unittests.exe
uuid.lib(cguid_i.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
Generating code
Finished generating code
[35/1415] LINK_EMBED webkit_unit_tests.exe
uuid.lib(cguid_i.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
Generating code
Finished generating code
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "C:\dart\dartium\src\dart\tools\dartium\build.py", line 56, in <module>
    main()
  File "C:\dart\dartium\src\dart\tools\dartium\build.py", line 53, in main
    + targets)
  File "C:\dart\dartium\src\dart\tools\dartium\utils.py", line 112, in runCommand
    raise Exception('Failed to run command. return code=%s' % p.returncode)
Exception: Failed to run command. return code=1

似乎不支持此功能-请参阅Dart团队的答案。

https://github.com/dart-lang/sdk/issues/28280#issuecomment-287661242

“编解码器许可方面存在一些限制,这些限制使我们只能基于完全开源的Chromium项目进行构建。”

好消息是,在某些时候将不需要Dartium。

“我们正在努力开发一种完全不需要Dartium的快速JS开发模型:dev_compiler(也称为DDC)。”

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM