-
-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trying to build the browser, getting error: unable to load chromecast_build.gni #488
Comments
You need to strictly refer to the guidelines for building on Windows provided in the docs folder in this repo and the official guidelines provided by Google, and make sure you pull the correct code. Also, you cannot use powershell to compile. |
|
fyi i've deleted and git pulled everything more than 2 times and i still get this error, i've cloned using --recursive for the thorium source and i've fetched chromium so i don't really know what the issue is |
i've discovered what the problem is but not sure how to fix it, so it's asking for chromecast_build.gni but it was recently changed into just cast.gni from what i've read but the build file still wants chromecast_build.gni which doesn't exist |
@Mukatsuku Are you checking out the M119 branch? If you are using Trunk (AKA tip of tree) it will not work. @gz83 @Mukatsuku UPDATE: This is almost certainly what you are doing wrong. I am sorry, but I need to update the documentation, there is alot of stuff out of date including this. See, in the M119 version, it is still there > https://source.chromium.org/chromium/chromium/src/+/refs/tags/119.0.6045.214:build/config/chromecast_build.gni Versus tip of tree > https://source.chromium.org/chromium/chromium/src/+/main:build/config/cast.gni What you should do is execute the commands in trunk.sh (to make sure you have all of/the latest source code), then version.sh (to check out the right version), then setup.sh (to copy the files over). Then you can do your gn args out and build it. These scripts were made for bash/linux, so you cant directly use them in cmd.exe or powershell. However, it WILL work in Git Bash (which I usually use). Keep in mind that the scripts assume that Thorium is in $HOME (i.e. C:\Users$USERNAME on windows), and you must override the "CR_SRC_DIR" environment variable. In the scripts it sets it to $HOME/chromium/src if the variable is unset. You can set it to something like /c/chromium/src (as C:\ is mounted at /c/ in bash on windows) |
@Mukatsuku I updated the docs. Please see > https://thorium.rocks/docs/building_win.html |
perfect i'll see if i can build it asap thanks a bunch |
@tummypics Were you able to build, I would like to close this if possible. |
System Details
Problem
trying to build the browser from scratch and i keep getting this error after running
gn args out\thorium
and if i try to build it it wont let me build it because of this error
Screenshots

The text was updated successfully, but these errors were encountered: