gclient runhooks fails

TCS picture TCS · Dec 30, 2011 · Viewed 19.4k times · Source

I'm trying to build Chrome under windows, I got the chromium trunk using tortoiseSVN and I believe I got everything correctly, but when I run "gclient runhooks" I get the error: "Error: client not configured; see 'gclient config'".

Now, I know that it happens because I don't have a ".gclient" file on the same directory, but I couldn't find .gclient file anywhere in the project. I tried to create .gclient file myself but it says there's a solution missing.

I'm probably missing something, can anyone help me with that? I'm pretty stuck! Thanks!

Answer

user748221 picture user748221 · Feb 15, 2012
gclient config http://src.chromium.org/svn/trunk/src
gclient runhooks

Or make a .gclient file with the following content, which skips the huge amount of webkit layout tests

solutions = [
  { "name"        : "src",
    "url"         : "http://src.chromium.org/svn/trunk/src",
    "deps_file"   : "DEPS",
    "managed"     : True,
    "custom_deps" : {
      "src/third_party/WebKit/LayoutTests": None,
      "src/chrome_frame/tools/test/reference_build/chrome": None,
      "src/chrome/tools/test/reference_build/chrome_mac": None,
      "src/chrome/tools/test/reference_build/chrome_win": None,
      "src/chrome/tools/test/reference_build/chrome_linux": None,
    },
    "safesync_url": "",
  },
]