Trouble building chromium with ninja

4,520 views
Skip to first unread message

Jeffrey Cespedes

unread,
Jan 2, 2016, 3:54:46 PM1/2/16
to Chromium-dev
OS: Windows 8.1
With, Visual Studio 2013 Community & Windows Kit 10 SDK installed.

I am trying to build Chromium using ninja, whenever I get it to run using either "ninja -C out\Debug chrome && out\Debug\chrome.exe" or "ninja -C out\Debug_x64 chrome && out\Debug_x64\chrome.exe", it fails on "ACTION Copying D3D Compiler DLL...", I have Windows 10 KIT SDK installed, and I can see the D3DCompiler_47.dll in the folder. What could be the problem? Any help appreciated.

Nico Weber

unread,
Jan 2, 2016, 5:51:25 PM1/2/16
to refuse...@gmail.com, Chromium-dev

What's the error message?

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Jeffrey Cespedes

unread,
Jan 2, 2016, 5:55:54 PM1/2/16
to Chromium-dev, refuse...@gmail.com
The full output:

ninja: Entering directory `out\Debug_x64'
[16/19726] ACTION Copying D3D Compiler DLL...
FAILED: D:\Depot\depot_tools\python276_bin\python.exe gyp-win-tool action-wrapper environment.x64 copy_compiler_dll_target_copy_dll_a30e198148542d4bce19a5c818c6884f..rsp ..\..\third_party\angle\src
[16/19726] LINK_EMBED(DLL) cc_proto.dll
ninja: build stopped: subcommand failed.

Max Stepin

unread,
Jan 3, 2016, 4:47:40 AM1/3/16
to Chromium-dev, refuse...@gmail.com
Take a look at out\Debug_x64\environment.x64

If the paths inside are still be based at 8.1 SDK, you might want to edit them manually so they point at 10 SDK.

Jeffrey Cespedes

unread,
Jan 5, 2016, 1:01:57 PM1/5/16
to Chromium-dev, refuse...@gmail.com
This is the new output, I changed everything to point to the 10 sdk



D:\chromium\src>ninja -C out\Debug_x64 chrome && out\Debug_x64\chrome.exe

ninja: Entering directory `out\Debug_x64'
[11/19695] ACTION Copying D3D Compiler DLL...
FAILED: D:\Depot\depot_tools\python276_bin\python.exe gyp-win-tool action-wrapper environment.x64 copy_compiler_dll_target_copy_dll_a30e198148542d4bce19a5c818c6884f..rsp ..\..\third_party\angle\src
[11/19695] CXX obj\third_party\pdfium\...fxcodec\codec\fxcodec.fx_codec_icc.obj
FAILED: ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl.exe" /nologo /showIncludes /FC @obj\third_party\pdfium\core\src\fxcodec\codec\fxcodec.fx_codec_icc.obj.rsp /c ..\..\third_party
\pdfium\core\src\fxcodec\codec\fx_codec_icc.cpp /Foobj\third_party\pdfium\core\src\fxcodec\codec\fxcodec.fx_codec_icc.obj /Fdobj\third_party\pdfium\fxcodec.cc.pdb
d:\chromium\src\third_party\pdfium\core\include\fxcrt\fx_system.h(59) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
[11/19695] RULE Generating C++ and Pyt...rom metrics\proto\system_profile.protoninja: build stopped: subcommand failed.

Jeffrey Cespedes

unread,
Jan 7, 2016, 10:11:36 PM1/7/16
to Chromium-dev, refuse...@gmail.com
Still having trouble with this. What is the most widely used OS to build chromium with, without getting these problems? If this doesn't work out now, I might just wipe and reload, or if Linux is the better alternative, I will see about dual booting. 

Max Stepin

unread,
Jan 8, 2016, 5:57:20 AM1/8/16
to Chromium-dev, refuse...@gmail.com
Try

cd C:\Program Files (x86)\Windows Kits\10\Include
mklink /d 10.0.10240.0 10.0.10586.0

It's from https://code.google.com/p/chromium/issues/detail?id=568201

Thiago Farina

unread,
Jan 8, 2016, 7:52:19 AM1/8/16
to refuse...@gmail.com, Chromium-dev
On Fri, Jan 8, 2016 at 1:11 AM, Jeffrey Cespedes <refuse...@gmail.com> wrote:
Still having trouble with this. What is the most widely used OS to build chromium with, without getting these problems?
Probably Ubuntu.

--
Thiago Farina

Jeffrey Cespedes

unread,
Jan 9, 2016, 12:17:09 PM1/9/16
to Chromium-dev, refuse...@gmail.com
Hmm, I seem to be missing the "Include' Folder under /Window Kits/10. Not sure why.

Jeffrey Cespedes

unread,
Jan 9, 2016, 12:17:36 PM1/9/16
to Chromium-dev, refuse...@gmail.com
Thank you, I will keep that in mind.

Tao X

unread,
Apr 25, 2017, 7:35:37 AM4/25/17
to Chromium-dev, refuse...@gmail.com
Hi Nico,
I am also suffering this issue.

* VS2015 Update 3
* Microsoft Windows [Version 10.0.14393]
* Win10 SDK
  10.0.10150.0
  10.0.10240.0
  10.0.15063.0

error message:
F:\chromium\src>ninja -C out\Default
ninja: Entering directory `out\Default'
[1/48280] CXX obj/base/base_static/pe_image.obj
FAILED: obj/base/base_static/pe_image.obj
ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64/cl.exe" /nologo /showIncludes /FC @obj/base/base_static/pe_image.obj.rsp /c ../../base/win/pe_image.cc /Foobj/base/base_static/pe_image.obj /Fd"obj/base/base_static_cc.pdb"
f:\chromium\src\base\win\pe_image.h(14): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
[2/48280] LINK(DLL) base_profiler_test_support_library.dll base_profiler_test_support_library.dll.lib base_profiler_test_support_library.dll.pdb
FAILED: base_profiler_test_support_library.dll base_profiler_test_support_library.dll.lib base_profiler_test_support_library.dll.pdb
C:/depot_tools/python276_bin/python.exe ../../build/toolchain/win/tool_wrapper.py link-wrapper environment.x64 False link.exe /nologo /IMPLIB:./base_profiler_test_support_library.dll.lib /DLL /OUT:./base_profiler_test_support_library.dll /PDB:./base_profiler_test_support_library.dll.pdb @./base_profiler_test_support_library.dll.rsp
LINK : fatal error LNK1104: cannot open file 'advapi32.lib'
[3/48280] CXX obj/breakpad/breakpad_handler/crash_generation_client.obj
FAILED: obj/breakpad/breakpad_handler/crash_generation_client.obj
ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64/cl.exe" /nologo /showIncludes /FC @obj/breakpad/breakpad_handler/crash_generation_client.obj.rsp /c ../../breakpad/src/client/windows/crash_generation/crash_generation_client.cc /Foobj/breakpad/breakpad_handler/crash_generation_client.obj /Fd"obj/breakpad/breakpad_handler_cc.pdb"
f:\chromium\src\breakpad\src\client\windows\crash_generation\crash_generation_client.h(33): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
[4/48280] CXX obj/breakpad/breakpad_handler/guid_string.obj
FAILED: obj/breakpad/breakpad_handler/guid_string.obj
ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64/cl.exe" /nologo /showIncludes /FC @obj/breakpad/breakpad_handler/guid_string.obj.rsp /c ../../breakpad/src/common/windows/guid_string.cc /Foobj/breakpad/breakpad_handler/guid_string.obj /Fd"obj/breakpad/breakpad_handler_cc.pdb"
f:\chromium\src\breakpad\src\common\windows\guid_string.h(35): fatal error C1083: Cannot open include file: 'guiddef.h': No such file or directory
[5/48280] CXX obj/breakpad/breakpad_sender/crash_report_sender.obj
FAILED: obj/breakpad/breakpad_sender/crash_report_sender.obj
ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64/cl.exe" /nologo /showIncludes /FC @obj/breakpad/breakpad_sender/crash_report_sender.obj.rsp /c ../../breakpad/src/client/windows/sender/crash_report_sender.cc /Foobj/breakpad/breakpad_sender/crash_report_sender.obj /Fd"obj/breakpad/breakpad_sender_cc.pdb"
f:\chromium\src\breakpad\src\common\windows\http_upload.h(41): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
[6/48280] CXX obj/breakpad/breakpad_sender/http_upload.obj
FAILED: obj/breakpad/breakpad_sender/http_upload.obj
ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64/cl.exe" /nologo /showIncludes /FC @obj/breakpad/breakpad_sender/http_upload.obj.rsp /c ../../breakpad/src/common/windows/http_upload.cc /Foobj/breakpad/breakpad_sender/http_upload.obj /Fd"obj/breakpad/breakpad_sender_cc.pdb"
f:\chromium\src\breakpad\src\common\windows\http_upload.h(41): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
ninja: build stopped: subcommand failed.

run again, get different error:
F:\chromium\src>ninja -C out\Default
ninja: Entering directory `out\Default'
[1/48280] ACTION //base/trace_event/etw_manifest:chrome_events_win(//build/toolchain/win:x64)
FAILED: gen/base/trace_event/etw_manifest/chrome_events_win.h gen/base/trace_event/etw_manifest/chrome_events_win.rc
C:/depot_tools/python276_bin/python.exe ../../build/win/message_compiler.py environment.x64 -h gen/base/trace_event/etw_manifest -r gen/base/trace_event/etw_manifest -u -um ../../base/trace_event/etw_manifest/chrome_events_win.man
'mc.exe' is not recognized as an internal or external command,
operable program or batch file.

[2/48280] ACTION //base/win:eventlog_messages(//build/toolchain/win:x64)
FAILED: gen/base/win/eventlog_messages.h gen/base/win/eventlog_messages.rc
C:/depot_tools/python276_bin/python.exe ../../build/win/message_compiler.py environment.x64 -h gen/base/win -r gen/base/win -u ../../base/win/eventlog_messages.mc
'mc.exe' is not recognized as an internal or external command,
operable program or batch file.

[3/48280] LINK(DLL) base_profiler_test_support_library.dll base_profiler_test_support_library.dll.lib base_profiler_test_support_library.dll.pdb
FAILED: base_profiler_test_support_library.dll base_profiler_test_support_library.dll.lib base_profiler_test_support_library.dll.pdb
C:/depot_tools/python276_bin/python.exe ../../build/toolchain/win/tool_wrapper.py link-wrapper environment.x64 False link.exe /nologo /IMPLIB:./base_profiler_test_support_library.dll.lib /DLL /OUT:./base_profiler_test_support_library.dll /PDB:./base_profiler_test_support_library.dll.pdb @./base_profiler_test_support_library.dll.rsp
LINK : fatal error LNK1104: cannot open file 'advapi32.lib'
[4/48280] CXX obj/base/base_static/pe_image.obj
FAILED: obj/base/base_static/pe_image.obj
ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64/cl.exe" /nologo /showIncludes /FC @obj/base/base_static/pe_image.obj.rsp /c ../../base/win/pe_image.cc /Foobj/base/base_static/pe_image.obj /Fd"obj/base/base_static_cc.pdb"
f:\chromium\src\base\win\pe_image.h(14): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
[5/48280] CC obj/base/third_party/dynamic_annotations/dynamic_annotations/dynamic_annotations.obj
FAILED: obj/base/third_party/dynamic_annotations/dynamic_annotations/dynamic_annotations.obj
ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64/cl.exe" /nologo /showIncludes /FC @obj/base/third_party/dynamic_annotations/dynamic_annotations/dynamic_annotations.obj.rsp /c ../../base/third_party/dynamic_annotations/dynamic_annotations.c /Foobj/base/third_party/dynamic_annotations/dynamic_annotations/dynamic_annotations.obj /Fd"obj/base/third_party/dynamic_annotations/dynamic_annotations_c.pdb"
f:\chromium\src\base\third_party\dynamic_annotations\dynamic_annotations.c(28): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
[6/48280] CXX obj/breakpad/breakpad_handler/guid_string.obj
FAILED: obj/breakpad/breakpad_handler/guid_string.obj
ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64/cl.exe" /nologo /showIncludes /FC @obj/breakpad/breakpad_handler/guid_string.obj.rsp /c ../../breakpad/src/common/windows/guid_string.cc /Foobj/breakpad/breakpad_handler/guid_string.obj /Fd"obj/breakpad/breakpad_handler_cc.pdb"
f:\chromium\src\breakpad\src\common\windows\guid_string.h(35): fatal error C1083: Cannot open include file: 'guiddef.h': No such file or directory
ninja: build stopped: subcommand failed.

Tao X

unread,
Apr 25, 2017, 8:12:59 AM4/25/17
to Chromium-dev, refuse...@gmail.com
UPDATE:

requires Win10 SDK version to be 10.0.14393.0

BUT I've installed a higher version 10.0.15063.0.

THEN, I copied the 10.0.15063.0 to 10.0.14393.0

FINALLY, I got the the following error:

F:\chromium\src>ninja -C out\Default
ninja: Entering directory `out\Default'
[1/48270] ACTION //base/win:eventlog_messages(//build/toolchain/win:x64)
FAILED: gen/base/win/eventlog_messages.h gen/base/win/eventlog_messages.rc
C:/depot_tools/python276_bin/python.exe ../../build/win/message_compiler.py environment.x64 -h gen/base/win -r gen/base/win -u ../../base/win/eventlog_messages.mc
'mc.exe' is not recognized as an internal or external command,
operable program or batch file.

[2/48270] ACTION //base/trace_event/etw_manifest:chrome_events_win(//build/toolchain/win:x64)
FAILED: gen/base/trace_event/etw_manifest/chrome_events_win.h gen/base/trace_event/etw_manifest/chrome_events_win.rc
C:/depot_tools/python276_bin/python.exe ../../build/win/message_compiler.py environment.x64 -h gen/base/trace_event/etw_manifest -r gen/base/trace_event/etw_manifest -u -um ../../base/trace_event/etw_manifest/chrome_events_win.man
'mc.exe' is not recognized as an internal or external command,
operable program or batch file.

[6/48270] CXX obj/breakpad/dump_syms/dump_syms.obj
ninja: build stopped: subcommand failed.

Tao X

unread,
Apr 25, 2017, 9:26:28 AM4/25/17
to Chromium-dev, refuse...@gmail.com
UPDATE:

I manually added C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin to PATH
so, the command can be found.

but, ANOTHER error occurred:
F:\chromium\src>ninja -C out\Default
ninja: Entering directory `out\Default'
[5/48232] ACTION //base/trace_event/etw_manifest:chrome_events_win(//build/toolchain/win:x64)
FAILED: gen/base/trace_event/etw_manifest/chrome_events_win.h gen/base/trace_event/etw_manifest/chrome_events_win.rc
C:/depot_tools/python276_bin/python.exe ../../build/win/message_compiler.py environment.x64 -h gen/base/trace_event/etw_manifest -r gen/base/trace_event/etw_manifest -u -um ../../base/trace_event/etw_manifest/chrome_events_win.man
mc : error : Invalid argument (../../base/trace_event/etw_manifest/chrome_events_win.man) for -m switch.
Microsoft (R) Message Compiler  Version 1.12.5489
Copyright (c) Microsoft Corporation. All rights reserved.

usage: MC [-?aAcdnosuUvw] [-m maxmsglen] [-h dirspec] [-e extension] [-r dirspec] [-x dbgFileSpec] [-z outputFileBasename ] filename
       -? - displays this message
       -a - input file is ANSI (default).
       -A - messages in .BIN file should be ANSI.
       -b - .BIN filename should have .mc filename_ included for uniqueness.
       -c - sets the Customer bit in all the message Ids.
       -d - FACILTY and SEVERITY values in header file in decimal.
            Sets message values in header to decimal initially.
       -e extension - Specify the extension for the header file.
                      From 1 - 3 chars.
       -h pathspec - gives the path of where to create the C include file
                     Default is .\
       -m maxmsglen - generate a warning if the size of any message exceeds
                      maxmsglen characters.
       -n - terminates all strings with null's in the message tables.
       -o - generate OLE2 header file (use HRESULT definition instead of
            status code definition)
       -r pathspec - gives the path of where to create the RC include file
                     and the binary message resource files it includes.
                     Default is .\
       -s - insert symbolic name as first line of each message.
       -u - input file is Unicode.
       -U - messages in .BIN file should be Unicode (default).
       -v - gives verbose output.
       -W - specifies path to winmeta.xml file.
       -w - specifies path to eventman.xsd file.
       -x pathspec - gives the path of where to create the .dbg C include
                        file that maps message Ids to their symbolic name.
                        This option can only be used with message text file.
       -z outputFileBasename - gives the base name of the generated files.
                               Default is basename of input file.
       filename - gives the name of a message text file or manifest
                     to compile.
       Generated files have the Archive bit cleared.

[10/48232] ACTION //chrome/app/vector_icons:chrome_vector_icons(//build/toolchain/win:x64)
ninja: build stopped: subcommand failed.

Bruce

unread,
Apr 26, 2017, 5:24:13 PM4/26/17
to Chromium-dev, refuse...@gmail.com
> THEN, I copied the 10.0.15063.0 to 10.0.14393.0

At that point you are in uncharted territory. You might have better luck if you installed the 10.0.14393.0 SDK. It should side-by-side install with 10.0.15063.0. Old installers can be found here: https://developer.microsoft.com/en-us/windows/downloads/sdk-archive

> I manually added C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin to PATH

That means that you are running a really old version of mc.exe and it apparently doesn't support the -m switch. This tool is supposed to be found, I believe, in "C:\Program Files (x86)\Windows Kits\10\bin\x64".

Before you go too far, try these sanity-check steps:

C:\>"%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" amd64_x86 10.0.14393.0

C:\>where cl
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\cl.exe
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe

C:\>where mc
C:\Program Files (x86)\Windows Kits\10\bin\x64\mc.exe
C:\Program Files (x86)\Windows Kits\10\bin\x86\mc.exe

C:\>set include
INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\ucrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\winrt;



If you have installed VC++ 2015 Update 3, including the C++ development tools (which are not installed by default) and the 10.0.14393.0 SDK, then these steps should work and should give the same results. If the results are different then Chrome will probably not build and it is better to figure out what went wrong rather than trying to hand-patch things together.

I'll update the instructions to mention the SDK installer. It is unfortunate that Microsoft's 10.0.15063.0 SDK is broken (missing header file). I hope they fix it soon.

Bruce

unread,
Apr 26, 2017, 7:40:41 PM4/26/17
to Chromium-dev, refuse...@gmail.com
BTW, just to further clarify, it is known that Chrome will *only* build with the 14393 SDK. We need features that are not present in earlier SDKs, and later ones contain a bug and cannot compile #include <Bits.h> without patching.

Also, I just updated the instructions to make this clearer and to specify where to get the 14393 SDK: crrev.com/2846643002

Tao X

unread,
Apr 27, 2017, 4:35:03 AM4/27/17
to Chromium-dev, refuse...@gmail.com
Hi, Bruce

Thanks for your detailed information. 
Now, half of the building progress has passed, there is no exception occurred. 

It seems that will take a long time to complete the building task. I make this feedback here in advance.

Sumit Kushwaha

unread,
Aug 3, 2017, 5:59:33 AM8/3/17
to Chromium-dev, refuse...@gmail.com
Guys I am trying to build nwjs and it is trying to build chrome from source. And I am getting this build error. Could you please help


ninja: Entering directory `out/nw'
[1/21061] CXX obj/sandbox/win/sandbox/named_pipe_interception.obj
FAILED: obj/sandbox/win/sandbox/named_pipe_interception.obj
ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64_x86/cl.exe" /nologo /showInc
ludes /FC @obj/sandbox/win/sandbox/named_pipe_interception.obj.rsp /c ../../sandbox/win/src/named_pipe_interception.cc /Foobj/sand
box/win/sandbox/named_pipe_interception.obj /Fd"obj/sandbox/win/sandbox_cc.pdb"
c:\users\administrator\codebase\nwjs\src\sandbox\win\src\nt_internals.h(10): fatal error C1083: Cannot open include file: 'windows
.h': No such file or directory
[2/21061] CXX obj/sandbox/win/sandbox/broker_services.obj
FAILED: obj/sandbox/win/sandbox/broker_services.obj
ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64_x86/cl.exe" /nologo /showInc
ludes /FC @obj/sandbox/win/sandbox/broker_services.obj.rsp /c ../../sandbox/win/src/broker_services.cc /Foobj/sandbox/win/sandbox/
broker_services.obj /Fd"obj/sandbox/win/sandbox_cc.pdb"
c:\users\administrator\codebase\nwjs\src\base\win\scoped_handle.h(8): fatal error C1083: Cannot open include file: 'windows.h': No
 such file or directory
[3/21061] CXX obj/sandbox/win/sandbox/named_pipe_dispatcher.obj
FAILED: obj/sandbox/win/sandbox/named_pipe_dispatcher.obj
ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64_x86/cl.exe" /nologo /showInc
ludes /FC @obj/sandbox/win/sandbox/named_pipe_dispatcher.obj.rsp /c ../../sandbox/win/src/named_pipe_dispatcher.cc /Foobj/sandbox/
win/sandbox/named_pipe_dispatcher.obj /Fd"obj/sandbox/win/sandbox_cc.pdb"
c:\users\administrator\codebase\nwjs\src\base\atomicops_internals_x86_msvc.h(10): fatal error C1083: Cannot open include file: 'wi
ndows.h': No such file or directory
ninja: build stopped: subcommand failed.




Jan Rucka

unread,
Aug 3, 2017, 6:59:29 AM8/3/17
to Chromium-dev, refuse...@gmail.com
Which version? Did you follow documentation? Here:

But most importantly this is Chromium forum not NW.js. NW.js Chromium fork has lot of changes. I would recommend you to ask here (NW.js forum).

Sumit Kushwaha

unread,
Aug 3, 2017, 7:12:59 AM8/3/17
to Chromium-dev, refuse...@gmail.com
Thanks for the response Jan.

Following the same docs, I am trying to build nwjs17th version. So I executed ninja -C out/nw nwjs command and getting this error.

I have installed Universal Windows Apps Development Tools > Tools (1.4.1) and Windows 10 SDK (10.0.14393). But I think some how the build process is not able to get files associated with these SDKs, like it is not able to find "windows.h" file here.

Jan Rucka

unread,
Aug 3, 2017, 7:40:10 AM8/3/17
to Chromium-dev, refuse...@gmail.com
It seems that something is wrong with your Visual studio since it cannot open windows.h. Not 100% sure but I think you need VS2013 for NW.js 0.17 (VS2015 is from 0.18 and later if I am right). But if you don't have really special reason you should build latest stable (0.24 currently).

Sumit Kushwaha

unread,
Aug 4, 2017, 4:59:32 AM8/4/17
to Chromium-dev, refuse...@gmail.com
I restarted building nw24 from source instead of nw17 as before. But I am not sure why I am getting the following syntax error. I have posted this on NWJS group as well. If this is a general issue and you could give me some clue about it then that would great.


ninja: Entering directory `out/nw'
[379/28951] CXX obj/base/base/message_pump_uv.obj
FAILED: obj/base/base/message_pump_uv.obj
ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64/cl.exe" /nologo /showInclude
s /FC @obj/base/base/message_pump_uv.obj.rsp /c ../../base/message_loop/message_pump_uv.cc /Foobj/base/base/message_pump_uv.obj /F
d"obj/base/base_cc.pdb"
c:\users\administrator\codebase\nwjs\src\content\nw\src\common\node_hooks.h(55): error C4430: missing type specifier - int assumed
. Note: C++ does not support default-int
c:\users\administrator\codebase\nwjs\src\content\nw\src\common\node_hooks.h(55): error C2146: syntax error: missing ';' before ide
ntifier 'g_uv_init_nw_fn'
c:\users\administrator\codebase\nwjs\src\content\nw\src\common\node_hooks.h(55): error C2440: 'initializing': cannot convert from
'nullptr' to 'int'
c:\users\administrator\codebase\nwjs\src\content\nw\src\common\node_hooks.h(55): note: A native nullptr can only be converted to b
ool or, using reinterpret_cast, to an integral type
[381/28951] CXX obj/base/base/message_pump_win.obj
ninja: build stopped: subcommand failed.

Sumit Kushwaha

unread,
Aug 4, 2017, 6:47:39 AM8/4/17
to Chromium-dev, refuse...@gmail.com

Sumit Kushwaha

unread,
Aug 4, 2017, 6:48:19 AM8/4/17
to Chromium-dev, refuse...@gmail.com

Bruce Dawson

unread,
Aug 4, 2017, 1:45:00 PM8/4/17
to su.m...@gmail.com, Chromium-dev, refuse...@gmail.com
The compiler is complaining of a syntax error because your code has a syntax error. The Chromium build machines are green so there is something different/wrong with your local setup. You can try looking at that file, looking at the history of that file, syncing again in case there was a temporary bug, or looking to see what could cause the error to happen on your machine and not elsewhere. Many of those steps can only be done by you, on your machine.

The errors say:

c:\users\administrator\codebase\nwjs\src\content\nw\src\common\node_hooks.h(55): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\administrator\codebase\nwjs\src\content\nw\src\common\node_hooks.h(55): error C2146: syntax error: missing ';' before identifier 'g_uv_init_nw_fn'

I can't see the source but I've seen enough error messages to know that this means that g_uv_init_nw_fn is supposed to be a typedef and it isn't. So there's your mystery - figure out why that typedef is not being set and trace that back to figure out what is different on your machine.

I don't see that identifier or that header file anywhere in the Chromium source code (see cs.chromium.org to verify this for yourself) so you'll have to talk to NWJS.

Also, I'm not sure what your last two emails, containing just links to other email threads, were supposed to be about.


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to a topic in the Google Groups "Chromium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/chromium-dev/iVZ8imodzh4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/ed5856bd-fc27-4174-8662-e8ba204d8a47%40chromium.org.

Reply all
Reply to author
Forward
0 new messages