Search code examples
build-processchromium

gclient runhooks fails


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!


Solution

  • The above solution is out-dated. Running with the SVN repository results in:

    Error: 
    The chromium code repository has migrated completely to git.
    Your SVN-based checkout is now obsolete; you need to create a brand-new
    git checkout by following these instructions:
    
    http://www.chromium.org/developers/how-tos/get-the-code
    

    Now you need to create a .gclient file like this

    solutions = [
      {
        "managed": False,
        "name": "src",
        "url": "https://chromium.googlesource.com/chromium/src.git",
        "custom_deps": {},
        "deps_file": ".DEPS.git",
        "safesync_url": "",
      },
    ]
    

    and do:

    gclient sync