Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 812
TCS Avatar asked Dec 30 '11 21:12

TCS


2 Answers

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
like image 92
Grassright Avatar answered Oct 19 '22 04:10

Grassright


Chromium does not include a preconfigured .gclient file for the Chromium build and does not automatically handle Visual Studio versioning changes and default Deploy toolkit hints. After you have successfully downloaded the deploy tools and the chromium source code as provided at chromium.org perform the following in the root directory where your deploy_tools and src code is located.

NOTE : If you receive errors try to start a new command prompt 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

The build will take some time gclient runhooks should generate the build folder.

like image 28
StoneAgeCoder Avatar answered Oct 19 '22 06:10

StoneAgeCoder