【问题标题】:Dartium build on windows with ffmpegDartium 使用 ffmpeg 在 Windows 上构建
【发布时间】:2017-08-04 04:31:20
【问题描述】:

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

我在https://github.com/dart-lang/sdk/wiki/Building-Dartium 上的标准说明之前运行了“set 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

【问题讨论】:

    标签: build ffmpeg dart chromium dartium


    【解决方案1】:

    这似乎不受支持 - 请参阅 Dart 团队的回答。

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

    “编解码器许可等方面的限制使我们只能在完全开源的 Chromium 项目上进行构建。”

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

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

    【讨论】:

      猜你喜欢
      • 2017-07-26
      • 1970-01-01
      • 2021-04-02
      • 1970-01-01
      • 1970-01-01
      • 2015-07-02
      • 2013-01-25
      • 2016-12-22
      • 2011-06-14
      相关资源
      最近更新 更多