Hi,
I tried to build brave browser in my pc, on windows 8.1 64 bits.
I follow all the guidelines for windows in: https://github.com/brave/brave-browser/wiki/Windows-Development-Environment
I even fetch also in parallel the chromium, but I think that is not necessary right?
When I tried to build the default debug build for brave:
# start the debug compile
npm run build
It gave me this error:
In file included from …/…\brave/content/browser/renderer_host/brave_plugin_reg
istry_impl.h:8:
…/…\content/browser/renderer_host/plugin_registry_impl.h(11,10): fatal error:
‘third_party/blink/public/mojom/plugins/plugin_registry.mojom.h’ file not found
#include “third_party/blink/public/mojom/plugins/plugin_registry.mojom.h”
^~~~~~~~~~~~~~~~
1 error generated.
[373/35127] CXX obj/chrome/file_pre_reader/file_pre_reader_win.obj"(edited)
…
“[380/35127] ACTION //brave/components/…i(//build/toolchain/win:win_clang_x64)
ninja: build stopped: subcommand failed.
null
null
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: node ./scripts/commands.js build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.”
This is also the log that are mention in there:
"0 info it worked if it ends with ok
1 verbose cli [ ‘C:\Program Files\nodejs\node.exe’,
1 verbose cli ‘C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js’,
1 verbose cli ‘run’,
1 verbose cli ‘build’ ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ ‘prebuild’, ‘build’, ‘postbuild’ ]
5 info lifecycle [email protected]~prebuild: [email protected]
6 info lifecycle [email protected]~build: [email protected]
7 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~build: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\brave-browser\node_modules.bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\depot_tools;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\Yarn\bin;C:\Program Files\Git\cmd;C:\Program Files\nodejs; C:\Users\Ze.cargo\bin;C:\Users\Ze.cargo\bin;C:\Users\Ze\AppData\Local\atom\bin;C:\Users\Ze\AppData\Local\Yarn\bin;C:\Users\Ze\AppData\Roaming\npm
9 verbose lifecycle [email protected]~build: CWD: C:\brave-browser
10 silly lifecycle [email protected]~build: Args: [ ‘/d /s /c’, ‘node ./scripts/commands.js build’ ]
11 silly lifecycle [email protected]~build: Returned: code: 1 signal: null
12 info lifecycle [email protected]~build: Failed to exec build script
13 verbose stack Error: [email protected] build: node ./scripts/commands.js build
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:182:13)
13 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:182:13)
13 verbose stack at maybeClose (internal/child_process.js:962:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
14 verbose pkgid [email protected]
15 verbose cwd C:\brave-browser
16 verbose Windows_NT 6.3.9600
17 verbose argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “run” “build”
18 verbose node v10.13.0
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] build: node ./scripts/commands.js build
22 error Exit status 1
23 error Failed at the [email protected] build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
"
Thank you in advance