Hi,
I am trying to build a Dartium with proprietary codecs. I attempted to build a Dartium with the GYP flags, but to no avail.
The build kept failing with
[22/22259] CXX obj\dart\runtime\vm\libdart_vm.thread.obj
FAILED: obj/dart/runtime/vm/libdart_vm.thread.obj
ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\cl.exe" /nologo /showIncludes /FC @obj\dart\runtime\vm\libdart_vm.thread.obj.rsp /c ..\..\dart\runtime\vm\thread.cc /Foobj\dart\runtime\vm\libdart_vm.thread.obj /Fdobj\dart\runtime\libdart_vm.cc.pdb
c:\dart\dartium\src\dart\runtime\vm\thread.cc(459) : error C2220: warning treated as error - no 'object' file generated
c:\dart\dartium\src\dart\runtime\vm\thread.cc(459) : warning C4172: returning address of local variable or temporary: func
[25/22259] CC obj\third_party\opus\src\silk\opus.resampler_rom.obj
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "C:\dart\dartium\src\dart\tools\dartium\build.py", line 58, in <module>
main()
File "C:\dart\dartium\src\dart\tools\dartium\build.py", line 55, 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
But as there is limited information in regards to how to build Dartium, I thought I would build Chromium and see if I can get that going, then go back to Dartium, encase I was missing some dependencies.
But now as I try to build Chromium, I am getting
C:\src\chromium\src>ninja -C out\Default chrome
ninja: Entering directory `out\Default'
[1/21496] LINK(DLL) base.dll base.dll.lib base.dll.pdb
FAILED: base.dll base.dll.lib base.dll.pdb
C:/src/depot_tools/python276_bin/python.exe ../../build/toolchain/win/tool_wrapper.py link-wrapper environment.x64 False link.exe /nologo /IMPLIB:./base.dll.lib /DLL /OUT:./base.dll /PDB:./base.dll.pdb @./base.dll.rsp
uuid.lib(oaidl_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
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
LINK : error LNK1218: warning treated as error; no output file generated
[6/21496] CXX obj/third_party/pdfium/fpdftext/cpdf_textpage.obj
ninja: build stopped: subcommand failed.
I have tried doing google searches, but neither errors are coming up with anything. I am running Visual Studio 2015, with all extra's installed. I am also installed the Windows Driver Kit.
Does anyone have any idea?