How to build from the source in windows ?

6 views
Skip to first unread message

Ashish Negi

unread,
Aug 26, 2013, 5:27:05 AM8/26/13
to node-...@googlegroups.com
I want to build the node-webkit from the source in windows. What all should i download ?
when i do

it clones only master branch and not cef and others ? Are they not required ?
is there not one link to download it all ?

Does patched node at https://github.com/rogerwang/node contains the patched libuv and patched cef for its build ?

Zeyi Zhao

unread,
Aug 26, 2013, 5:47:13 AM8/26/13
to node-...@googlegroups.com
you can follow the Building node webkit, and everything you should do is there.

在 2013年8月26日星期一UTC+8下午5时27分05秒,Ashish Negi写道:

Ashish Negi

unread,
Aug 30, 2013, 2:17:52 AM8/30/13
to node-...@googlegroups.com
Thanks for the response. I am created node-webkit directory and created a .gclient file as shown in your link. I also did all the setting for depot_tools and others. running gclient sync gives me error :

remote: Counting objects: 2024928
remote: Counting objects: 2068705, done.
  No output for 30 seconds from command:
    git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress --template
=C:\CEF\depot_tools\depot_tools\git-templates https://github.com/zcbenz/chromium
.git C:\CEF\node-webkit\_gclient_src_kxm4fo;  cwd=C:\CEF\node-webkit
remote: Compressing objects:  18% (71703/378108)
remote: Compressing objects: 100% (378108/378108)
remote: Compressing objects: 100% (378108/378108), done.
Receiving objects:   2% (45097/2068705), 15.07 MiB | 1.06 MiB/s
Receiving objects:   2% (45945/2068705), 15.32 MiB | 16 KiB/s
Receiving objects:   2% (46211/2068705), 15.39 MiB | 6 KiB/s
Receiving objects:   2% (46480/2068705), 15.47 MiB | 4 KiB/s
fatal: early EOF
fatal: The remote end hung up unexpectedly
fatal: index-pack failed
error: RPC failed; result=56, HTTP code = 200
Traceback (most recent call last):
  File "C:\CEF\depot_tools\depot_tools\\gclient.py", line 1804, in <module>
    sys.exit(Main(sys.argv[1:]))
  File "C:\CEF\depot_tools\depot_tools\\gclient.py", line 1794, in Main
    return dispatcher.execute(OptionParser(), argv)
  File "C:\CEF\depot_tools\depot_tools\subcommand.py", line 245, in execute
    return command(parser, args[1:])
  File "C:\CEF\depot_tools\depot_tools\\gclient.py", line 1590, in CMDsync
    return client.RunOnDeps('update', args)
  File "C:\CEF\depot_tools\depot_tools\\gclient.py", line 1152, in RunOnDeps
    work_queue.flush(revision_overrides, command, args, options=self._options)
  File "C:\CEF\depot_tools\depot_tools\gclient_utils.py", line 755, in run
    self.item.run(*self.args, **self.kwargs)
  File "C:\CEF\depot_tools\depot_tools\\gclient.py", line 627, in run
    self._used_scm.RunCommand(command, options, args, file_list)
  File "C:\CEF\depot_tools\depot_tools\gclient_scm.py", line 151, in RunCommand
    return getattr(self, command)(options, args, file_list)
  File "C:\CEF\depot_tools\depot_tools\gclient_scm.py", line 357, in update
    self._Clone(revision, url, options)
  File "C:\CEF\depot_tools\depot_tools\gclient_scm.py", line 879, in _Clone
    if os.listdir(tmp_dir):
WindowsError: [Error 3] The system cannot find the path specified: 'C:\\CEF\\nod
e-webkit\\_gclient_src_kxm4fo/*.*'

 

I have been successful in building chromium separately with these depot-tools so i think that would not be a problem.

Zeyi Zhao

unread,
Aug 30, 2013, 2:47:34 AM8/30/13
to node-...@googlegroups.com
what is the version of your git?the old version of git seems to have this bug. 

在 2013年8月30日星期五UTC+8下午2时17分52秒,Ashish Negi写道:

Ashish Negi

unread,
Sep 1, 2013, 11:36:31 PM9/1/13
to node-...@googlegroups.com
Thanks for your reponse.

When i do git --version from command line it gives 1.8.1.msysgit.1
When i go to the depot_tools git directory and check it gives 1.8.0.msysgit.0

Ashish Negi

unread,
Sep 1, 2013, 11:46:48 PM9/1/13
to node-...@googlegroups.com
Also, depot_tools are at the last in my path system variable PATH.

Zeyi Zhao

unread,
Sep 2, 2013, 4:02:59 AM9/2/13
to node-...@googlegroups.com
I recommend you to update your git and try again, if that doesn't work, there is a similar question posted on stackoverflow, maybe remote end hung up can help you.

在 2013年9月2日星期一UTC+8上午11时46分48秒,Ashish Negi写道:

Ashish Negi

unread,
Sep 2, 2013, 5:19:25 AM9/2/13
to node-...@googlegroups.com
I think that gclient uses its own git and tools, should i update that git or my system's git ?

Ashish Negi

unread,
Sep 2, 2013, 5:28:23 AM9/2/13
to node-...@googlegroups.com
How do i change the git of my gclient depot_tools. It has a git folder git-1.8.0_bin and others like git-utils and git_utils. Should i copy my C:\Program Files(86)\Git to that git-1.8.0_bin of gclient depot_tools. 

Also, Installation of Git does not ask for path of installation.

Zeyi Zhao

unread,
Sep 2, 2013, 6:05:24 AM9/2/13
to node-...@googlegroups.com
update your system's git may help

在 2013年9月2日星期一UTC+8下午5时19分25秒,Ashish Negi写道:

Ashish Negi

unread,
Sep 2, 2013, 7:55:15 AM9/2/13
to node-...@googlegroups.com
I updated my system's git and also set the http.postBuffer size but it is still not working. 
Do not you think that gclient must be using its own copy of git ?

When gclient runs git command, how can i find which git is being called ? can i find that out ? 
Or How can i set the http.postBuffer of the gclient's git ?

Ashish Negi

unread,
Sep 2, 2013, 8:21:46 AM9/2/13
to node-...@googlegroups.com
I went into the gclient directory and ran git-bash.bat and set the http.postBuffer property. I also made sure that this property remains even after i exit. But still no solution.

Ashish Negi

unread,
Sep 2, 2013, 8:30:33 AM9/2/13
to node-...@googlegroups.com
Is there any other way ? Like zip balls of different repos ?

Zeyi Zhao

unread,
Sep 2, 2013, 10:05:47 AM9/2/13
to node-...@googlegroups.com
I'm not sure about that, but I did some search about it, someone just retry gclient sync and it worked. maybe try more times?

在 2013年9月2日星期一UTC+8下午8时30分33秒,Ashish Negi写道:

Ashish Negi

unread,
Sep 3, 2013, 5:34:26 AM9/3/13
to node-...@googlegroups.com
I asked the question on stackoverflow. Can you explain what all codes i should download manually ? Is it only the chromium source code of node branch ? 

Zeyi Zhao

unread,
Sep 3, 2013, 6:09:08 AM9/3/13
to node-...@googlegroups.com
You may need to find out where you are stuck and run the command manually and then re-run gclient sync, it should be in the error info.

在 2013年9月3日星期二UTC+8下午5时34分26秒,Ashish Negi写道:
Reply all
Reply to author
Forward
0 new messages