I am trying to build Dartium with proprietary codecs. I am running into a problem with "_ff_w64_guid_data". I did a google search, and the most it comes up with is that it is a bug with old versions of chromium, and it was fixed in later releases, unfortunately it doesn't go into how to actually fix it, as I am stuck with this version of chromium for Dartium.
I ran "set GYP_DEGINES=""proprietary_codecs=1 ffmpeg_branding=Chrome" before the standard instructions on https://github.com/dart-lang/sdk/wiki/Building-Dartium
Here is a copy of the build info.
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
This does not seem to be supported -- see answer from Dart team.
https://github.com/dart-lang/sdk/issues/28280#issuecomment-287661242
"There are limitations with codec licensing, etc that limit us to only building on the completely open-source Chromium project."
The good news is that Dartium will at some point not be needed.
"We're working hard on a fast JS dev model that doesn't require Dartium at all: dev_compiler (also called DDC)."
Related
I am trying to compile OpenCV.js with my own additional bindings. I am following the instructions found here. However, when I run python make.py I run into the following issue:
make: *** No targets specified and no makefile found. Stop. Traceback
(most recent call last): File "make.py", line 162, in
emscripten.Building.make(['make', '-j4']) File "/Users/antoinevandenheste/Downloads/webass/emscripten/tools/shared.py",
line 1718, in make
raise subprocess.CalledProcessError(cmd=args, returncode=res.returncode) subprocess.CalledProcessError: Command
'['make', '-j4']' returned non-zero exit status 2
Any idea how to resolve this?
Things were working fine in an Emscripten build 1.29.0 but after upgrading to 1.34.1, I get the following error:
1> Traceback (most recent call last):
1> File "C:\Program Files\Emscripten\emscripten\1.34.1\\emcc", line 1260, in <module>
1> shared.Building.llvm_opt(final, link_opts)
1> File "C:\Program Files\Emscripten\emscripten\1.34.1\tools\shared.py", line 1429, in llvm_opt
1> assert os.path.exists(target), 'Failed to run llvm optimizations: ' + output
1> AssertionError: Failed to run llvm optimizations:
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Emscripten\Microsoft.Cpp.Emscripten.Targets(117,5): error MSB6006: "C:\Program Files\Emscripten\emscripten\1.34.1\emcc.bat" exited with code 1.
One cause for concern was reading this line from changelog, and then not knowing what the approach was or the process was if the following was not being used (I'm using VS2010):
- Enabled native JS optimizer to be built automatically on Windows, requires VS2012 or VS2013.
If anyone would know why things don't work, after uninstalling and re-installing everything and cleaning source, then please let me know!
This appear to be a regression in 1.34.1. I had the exact same issue. After upgrading to 1.34.6 the error went away. I don't which commit fixed it but I would suggest you also update to 1.34.6+.
I am trying to follow the examples at http://swift.im/swiften/guide/#Example-EchoBot1, for building a simple XMPP client using the swiften library.
Mentioned example needs file Swiften.h. According to the swiften mailing list, this file is generated when building swiften. So, I have tried building it on my windows machine, following the instructions at http://swift.im/git/swift-contrib/tree/Documentation/BuildingOnWindows.txt.
Since they state that Qt and open ssl are optional, I go straight to building by running scons.
This is the output I get:
c:\swift-2.0>scons
scons: Reading SConscript files ...
scons: warning: No installed VCs
File "C:\swift-2.0\SConstruct", line 1, in <module>
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\swift-2.0\SConstruct", line 1, in <module>
scons: warning: No installed VCs
File "C:\swift-2.0\SConstruct", line 1, in <module>
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\swift-2.0\SConstruct", line 1, in <module>
KeyError: 'MSVS_VERSION':
File "C:\swift-2.0\SConstruct", line 1:
variant_dir = SConscript("BuildTools/SCons/SConscript.boot")
File "c:\swift-2.0\3rdParty\SCons\scons-local-2.0.0.final.0\SCons\Script\SConscript.py", line 614:
return method(*args, **kw)
File "c:\swift-2.0\3rdParty\SCons\scons-local-2.0.0.final.0\SCons\Script\SConscript.py", line 551:
return _SConscript(self.fs, *files, **subst_kw)
File "c:\swift-2.0\3rdParty\SCons\scons-local-2.0.0.final.0\SCons\Script\SConscript.py", line 260:
exec _file_ in call_stack[-1].globals
File "C:\swift-2.0\BuildTools\SCons\SConscript.boot", line 240:
if int(env["MSVS_VERSION"].split(".")[0]) < 10 :
File "c:\swift-2.0\3rdParty\SCons\scons-local-2.0.0.final.0\SCons\Environment.py", line 409:
return self._dict[key]
How do I set the script to find my version of Visual Studio?
Thanks,
best regards,
c
SCons should automatically find the installed version of VisualStudio, but you have to open a "VisualC++ command prompt", as described in the BuildingOnWindows.txt, and start the build within this environment.
I think we've not updated scons to handle VS 2013 yet. I've got a pending patch to add support for some newer VSs, which I'll try to check includes 2013 and get integrated in the next couple of days.
I am building the Chromium source code on a Windows 7 x64 computer. I downloaded the source using the build instructions provided and set up the environment as told by the instruction pages. I can open the solution in VS2010Pro successfully (albeit taking a while), and I can edit the code.
When I try to build the solution, I get thousands of errors (last time, 2703). The first batch are that Cmd.exe exited with error code 1; there are about 20 of those. Then most of the rest complain that C++ header files are not found by the compiler. Here are a few randomly selected from throughout the long error list.
Error 138: error C1083: Cannot open include file: 'EventInterfaces.h': No such file or directory D:\Chromium\src\third_party\WebKit\Source\core\dom\EventNames.h in project webcore_rendering
Error 1952: error C1083: Cannot open include file: 'grit/ui_resources.h': No such file or directory D:\Chromium\src\chrome\browser\ui\chrome_style.cc in project browser_ui
Error 2482: error C1083: Cannot open include file: 'grit/generated_resources.h': No such file or directory D:\Chromium\src\chrome\browser\printing\print_dialog_cloud.cc in project browser
Now, not all projects fail to build. Last time, 526 projects succeeded and only 199 failed. Having followed the instructions word by word, and tried a clean download twice, I really don't see what could be wrong.
EDIT: Still fails, but looking through the Output I noticed the cause of the Cmd.exe errors
28>------ Build started: Project: convert_dict, Configuration: Debug Win32 ------
27> Traceback (most recent call last):
27> File "../tools/grit/grit/format/repack.py", line 27, in <module>
27> main(sys.argv)
27> File "../tools/grit/grit/format/repack.py", line 24, in main
27> grit.format.data_pack.RePack(argv[1], argv[2:])
27> File "../tools/grit/grit/format\../..\grit\format\data_pack.py", line 120, in RePack
27> new_content = ReadDataPack(filename)
27> File "../tools/grit/grit/format\../..\grit\format\data_pack.py", line 54, in ReadDataPack
27> data = util.ReadFile(input_file, util.BINARY)
27> File "../tools/grit/grit/format\../..\grit\util.py", line 207, in ReadFile
27> with open(filename, mode) as f:
27> IOError: [Errno 2] No such file or directory: 'D:/Chromium/src/build/Debug/obj/global_intermediate/content/content_resources.pak'
27>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 1.
I'm trying to use boost.python and build a python extension from c++.
My cpp file use a function named 'BZ2_bzopen' which is in the library 'libbz2' under standard path (/usr/lib/). However, when I try to build the extension using boost build following the instruction, I received an error said:
====== BEGIN OUTPUT ======
Traceback (most recent call last):
File "CrossTrade.py", line 11, in <module>
from custom_c import GoThroughFile
ImportError: /home/jliu/toolpak/custom_c.so: undefined symbol: BZ2_bzopen
EXIT STATUS: 1
====== END OUTPUT ======
This seems to me as an error comes from not linking to the library, which is almost the same as if I compile the cpp file without the '-lbz2' command.
Anyone could offer some help on solving it, please?
Maybe you did not link to libbz2? In that case, follow the instructions in http://www.boost.org/doc/libs/1_46_1/doc/html/bbv2/tutorial.html#bbv2.tutorial.prebuilt to see how to link to libraries.