Gclient runhooks not working

I'm trying to create Chrome under windows, I got a chrome trunk using tortoiseSVN, and I believe that everything is correct, but when I run "gclient runhooks", I get the error: "Error: client not configured, see gclient config '".

Now I know that this is happening because I do not have the ".gclient" file in the same directory, but I could not find the .gclient file anywhere in the project. I myself tried to create a .gclient file, but it says there is no solution there.

I probably missed something, can someone help me? I'm pretty stuck! Thanks!

+7
source share
3 answers

The above solution is out of date. 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 execute:

 gclient sync 
+5
source
 gclient config http://src.chromium.org/svn/trunk/src gclient runhooks 

Or create a .gclient file with the following content that skips a huge amount of web kit 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": "", }, ] 
+10
source

Chromium does not contain a pre-configured .gclient file for building Chromium, and does not automatically process Visual Studio version changes and standard deployment tool tips. After you have successfully downloaded the deployment tools and the chrome source code, as indicated in chromium.org , follow these steps in the root directory where your deploy_tools and src code are.

NOTE. If you get errors, try starting a new command line session and try again.

 set DEPOT_TOOLS_WIN_TOOLCHAIN=0 set GYP_MSVS_VERSION = 2015 gclient config https://chromium.googlesource.com/chromium/src.git gclient sync gclient runhooks cd src ninja -C out\Debug chrome 

It will take some time in the assembly when gclient receipts must generate the assembly folder.

+1
source

All Articles