Comments (9)
I think the relevant instructions are sufficient, and if you follow the steps, you should not have the problems you encountered.
Also, why are you running reset_depot_tools.sh? For the sh script that cannot be executed on your side, have you tried manually executing the commands inside?
We are also currently trying to resolve linker errors that occurred during compilation of the MacOS version
from thorium.
@downlz Hi. I guess you're trying to build Thorium M117 (xx.157) according to current version.sh
script.
Your instructions look correct, except:
- running
setup.sh --mac
- afterwards
gn args out/thorium
with
target_os = "mac"
target_cpu = "arm64"
as minimal argument input for M1 (and x64
in target_cpu
for non-M1 mac).
Finally, you should be able to build with
autoninja -c out/thorium -j8
(8 = Build threads)
This info is from my memory. If you connect to #thorium IRC channel, we can sort things out further.
Happy weekend
midzer
from thorium.
@midzer I am checking it. Would you help with IRC channel link so that I can join the same.
from thorium.
@downlz You can either follow https://thorium.rocks/irc/ for a connection in your browser. Or use an IRC client and connect to libera.chat with channel name #thorium. See you there :)
from thorium.
I tried running build_mac.sh and now getting stuck in final stage:
Log from ./setup.sh --mac:
Exporting variables and setting handy aliases...
export NINJA_SUMMARIZE_BUILD=1
export EDITOR=nano
export VISUAL=nano
alias origin = git checkout -f origin/main
alias gfetch = git fetch --tags
alias rebase = git rebase-update
alias gsync = gclient sync --with_branch_heads --with_tags -f -R -D
alias args = gn args out/thorium
alias gnls = gn ls out/thorium
alias show = git show-ref
alias runhooks = gclient runhooks
alias pgo = python3 tools/update_pgo_profiles.py --target=linux update --gs-url-base=chromium-optimization-profiles/pgo_profiles
alias pgow = python3 tools/update_pgo_profiles.py --target=win64 update --gs-url-base=chromium-optimization-profiles/pgo_profiles
alias pgom = python3 tools/update_pgo_profiles.py --target=mac update --gs-url-base=chromium-optimization-profiles/pgo_profiles
alias pgomac-arm = python3 tools/update_pgo_profiles.py --target=mac-arm update --gs-url-base=chromium-optimization-profiles/pgo_profiles
|____ \ |\ \ \ \ |\ __ \ |\ __ \ |\ \ |\ \ \ \ |\ __ __ \
| \ _| \ \ _\ \ \ \ \ \ \ \ \ _\ \ \ \ \ \ \ \ \ \ \ \ \ _\ \ \
\ \ \ \ \ __ \ \ \ \ \ \ \ \ _ \ \ \ \ \ \ \ \ \ \ \ |__|\ \ \
\ \ \ \ \ \ \ \ \ \ _\ \ \ \ \ \ \ \ \ \ \ _\ \ \ \ \ \ \ \
\ _\ \ _\ _\ \ _\ \ _\ \ \ _\ \ _\ \ _\ \ _\
|| |||__| || |||| |__| |_| || ||
Enjoy Thorium!
shahnawaz@Shahnawazs-Mac thorium % ./build_mac.sh 8
Building Thorium for MacOS...
/Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Users/shahnawaz/depot_tools/ninja.py -C out/thorium chrome chromedriver -j8 -d stats
ninja: Entering directory `out/thorium'
ninja: error: loading 'build.ninja': No such file or directory
How can I proceed now? @midzer @Alex313031
from thorium.
I tried running build_mac.sh and now getting stuck in final stage: Log from ./setup.sh --mac: Exporting variables and setting handy aliases...
export NINJA_SUMMARIZE_BUILD=1 export EDITOR=nano export VISUAL=nano
alias origin = git checkout -f origin/main alias gfetch = git fetch --tags alias rebase = git rebase-update alias gsync = gclient sync --with_branch_heads --with_tags -f -R -D alias args = gn args out/thorium alias gnls = gn ls out/thorium alias show = git show-ref alias runhooks = gclient runhooks alias pgo = python3 tools/update_pgo_profiles.py --target=linux update --gs-url-base=chromium-optimization-profiles/pgo_profiles alias pgow = python3 tools/update_pgo_profiles.py --target=win64 update --gs-url-base=chromium-optimization-profiles/pgo_profiles alias pgom = python3 tools/update_pgo_profiles.py --target=mac update --gs-url-base=chromium-optimization-profiles/pgo_profiles alias pgomac-arm = python3 tools/update_pgo_profiles.py --target=mac-arm update --gs-url-base=chromium-optimization-profiles/pgo_profiles
|____ \ |\ \ \ \ |\ __ \ |\ __ \ |\ \ |\ \ \ \ |\ __ __ \ | \ __| \ \ _\ \ \ \ \ \ \ \ \ _\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ __ \ \ \ \ \ \ \ \ _ _\ \ \ \ \ \ \ \ \ \ \ ||\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ __\ \ __\ __\ \ __**\ \ \ \ \ \ \ _**\ \ __\ \ \ || |||| |**| |||| || |**| || ||
Enjoy Thorium!
shahnawaz@Shahnawazs-Mac thorium % ./build_mac.sh 8
Building Thorium for MacOS...
/Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Users/shahnawaz/depot_tools/ninja.py -C out/thorium chrome chromedriver -j8 -d stats ninja: Entering directory `out/thorium' ninja: error: loading 'build.ninja': No such file or directory
How can I proceed now? @midzer @Alex313031
The general process of compilation:
-
Get full Chromium code checkout
-
Get the complete Thorium code and submodules
-
Make sure the system meets the requirements for compiling Chromium
-
Use trunk.sh to update code checkout
-
Use version.sh to switch to the correct code branch
-
Use setup.sh --mac to copy the files required by Thorium to the Chromium code
-
Execute the gn args out/thorium command in the chromium/src directory and fill in the correct args parameters to ensure that the target files required for compilation can be generated normally.
https://github.com/Alex313031/thorium/blob/main/other/Mac/mac_ARM_args.gn
https://github.com/Alex313031/thorium/blob/main/other/Mac/mac_args.gn
- Build Thorium using build_mac.sh
I don't know whether MacOS requires depot_tools. If you need depot_tools, you also need to obtain depot_tools in advance.
from thorium.
You need depot_tools, reference https://chromium.googlesource.com/chromium/src/+/main/docs/mac_build_instructions.md
from thorium.
@downlz I updated the docs, see > https://thorium.rocks/docs/building_mac.html
from thorium.
@Alex313031 ./setup.sh --mac-arm
does not exist in https://github.com/Alex313031/thorium/blob/main/setup.sh
I use ./setup.sh --mac
for ARM and x64. Works for me.
from thorium.
Related Issues (20)
- No #quick-commands flag found on chrome flags
- Can't create a new profile HOT 2
- Please add TouchpadOverscrollHistoryNavigation HOT 1
- Taskbar Shortcurt isn't working after update from 120.0.6099.235 to 121.0.6167.204 HOT 1
- FreeBSD Version? HOT 1
- Tab Search Removal Custom Flag
- update the test data HOT 1
- Option to remove "You are using an unsupported feature flag:" HOT 1
- PLEASE I LOVE THIS BROWSER AND IT DOESNT HAVE A FEATURE YOU CAN CLEAR ONLY THE BROWSING HISTORY ON EXIT PLEASE ADD THIS, THIS IS THE ONLY THING HOLDING ME BACK FROM USING IT UNTIL THEN IM STICKING WITH BRAVE HOT 2
- (possible) memory leak, confirmed behavior with task manager, could be an extension have installed misbehaving
- Repos for other Linux distros HOT 6
- Invalid 'Date' entry warning when updating sources on Ubuntu HOT 2
- Browser ignoring etc/hosts file HOT 2
- Side Panel Google Search Feature not available in newer builds
- Consider extentions support on Android version? HOT 1
- [Feature Request] Support Proper ICC Color Management
- Can't setup the repo
- Twitch not want to login HOT 1
- Thorium on musl linux systems
- Unexpired flags? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thorium.