-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
rebranding does not work #230
Comments
Have you checked the compilation instructions in the docs directory? It looks like you didn't successfully apply the required files to Thorium. |
Yes, I have done, but I haven't seen any appling files |
Run setup.sh --help you will get more help |
OK, I have checked. I'm using the complete instructions of the building.md. That's why I know, that all sources should be in HOME folder |
OK, but now I'm getting a lot of compiler errors. like: |
Did you get the full chromium code checkout? Also, which chromium branch are you currently switching to? |
yes
It's what used automatically when running all points of building.md |
as I can see , the setup.sh --android is running into this issue: all other files are copied |
Thorium is built on the chromium stable branch, and you need to reprocess the code checkout according to the compilation guidelines. Using the version.sh script will help you switch to the correct branch, but there is still an issue where the version.sh script was updated a few days ago and the Thorium repo is not currently updated to branch 117, you will need to manually roll back the latest commit in the version.sh script. By the way, you also need to successfully introduce the libjxl submodule and the associated code before compiling. |
yes, I have just seen, that folder is empty in my sources |
Your code checkout path and Thorium repo storage path are not correct, you need to refer to the command inside the sh script to change the path again. |
and by the way, it would be nice, if these steps
|
all done, but as I have written above, the folder is empty in my local sources. It was not synced |
The approximate steps to compile Thorium are:
|
OK, thx, I will restart |
I have start from beginning on. All fresh synced.
so what's now wrong or missing ?? |
Execute git status and git log in the Chromium code checkout, and upload the output information of these two commands here. |
I have started once more.
|
You need to get the full Chromium code checkout (with full history, dependencies) Also, you should not run gn args out/leosium, but gn args out/thorium, because setup.sh automatically creates the out/thorium directory (the new out/thorium directory will contain some of the files needed for thorium and is a temporary measure to fix a compilation error). In the meantime, I took a look at the files you provided and realized that you still haven't switched to the chromium branch that thorium currently requires, so you'll need to redo that with reference to the build guidelines and what I mentioned in my previous reply. |
The complete steps (for Android version) should be:
umask 022
git clone --recursive https://github.com/Alex313031/thorium.git && Executing the fetch chromium command automatically configures the correct Chromium native code checkout, and you must ensure that all commands are executed successfully.
cd ~/chromium/src && . /build/install-build-deps.sh --android
cd ~/chromium && nano .gclient Add android in target_os =, e.g. target_os = [ 'linux', 'win', 'android' ]
cd ~/chromium/src && gclient sync && gclient runhooks
cd ~/thorium && nano version.sh Change 117.0.5938.144 to 116.0.5845.169 and save it. Then run . /trunk.sh && . /version.sh && . /setup.sh --android
cd ~/chromium/src && gn args out/thorium Fill in the args parameters you need and make sure the build target is generated successfully. 8.Run the build script to build the target. cd ~/thorium && . /build_android.sh 24 24 is the actual number of threads in the CPU, adjust it according to your own machine configuration. In addition, build_android.sh contains help information, run build_android.sh --help to see. |
Ok, I have done all the points several times. But OK, when I'm back home, I will try once more. But I still don't understand why I'm always getting different outputs for the args scripts |
OK I have checked. My .gclient is only using android ` |
I suggest you follow the steps I gave above to redo code pulling and other operations. Also, from your description, it looks like there should be no problem with your .gclient file. |
OK; I give up. I have deleted all 'old' folders and restarted. Used step by step from your above post. but at the end I'm getting this error:
In the last 2 days I have downloaded around 500gb chromium and Thorium sources. And I never get it running. So I will search for an other FOSS chromium build with working tutorial |
@LeOS-GSI One thing, I recently added to all the build scripts is to change the location of the chromium repo, to solve exactly the problem you are describing. Notice Line 30 in c0fdd16
it defaults to $HOME/chromium/src However, if you set the CR_DIR variable in your .bashrc to the absolute path of someplace else, it will work. The thorium repo must be cloned in $HOME, but it is not that large. For example, I build on an external SSD. SO in my bashrc i have |
I think you didn't do something right in some steps, or the code is not in the right place. |
OK, I have tried it once more with your all you have written. But nothing changed, same error:
|
Run git log in your local chromium code checkout and paste the output directly here |
Once more ? OK, I will post tommorow.
…On October 3, 2023 7:19:26 PM GMT+02:00, Ho Cheung ***@***.***> wrote:
Run git log in your local chromium code checkout and paste the output directly here
@LeOS-GSI
--
Reply to this email directly or view it on GitHub:
#230 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
sorry, but when running |
I only need the top one among the contents output by the git log command, and the others are not needed. |
How to seperate?
Sorry, I am not so familiar with git ( I hate git)
…On October 4, 2023 2:05:15 AM GMT+02:00, Ho Cheung ***@***.***> wrote:
I only need the top one among the contents output by the git log command, and the others are not needed.
@LeOS-GSI
--
Reply to this email directly or view it on GitHub:
#230 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
OK, I will stop for now. Android 14 sources will be available today and I hav3 to build A14 GSI. SO no time left for browser building. If needed, I will come back here |
Or you can use a screenshot to upload the output of the git log, like the image above. |
OK, I have deleted all related folders and have run to 100% all your above points. and ... ... same as before: ` |
Run the git status command and upload a screenshot here, also, please upload the args parameter you are currently using. |
https://github.com/Alex313031/thorium/blob/main/arm/android/android_ARM64_args.gn but I have also try with only the OS and CPU lines. Same result |
I noticed some files in the git status log you provided that won't be processed by the sh script, did you modify the Chromium code in addition to the Thorium files you applied? |
I have nothing modified. |
Can you upload the skia/BUILD.gn file you currently have here? Also, keeping the args parameter used the same, will the error message generated continue to change each time the gn args command is executed? |
BUILD.txt |
I have checked the file you provided and no problems have been found yet. Can you provide the BUILD.gn file located under the code root directory? It's in ~/chromium/src/BUILD.gn. Normally the error you encountered should not occur. Have you modified the files in the thorium repo? (I'm not sure if I've asked this question yet) |
Yes, you have asked. I don't have modified nothing |
I didn't find a problem with this file either, ping Alex to see if he has a solution |
System Details
Problem
you are writing 'chromium' and 'thorium' folder has to be located in HOME. I can't build in HOME folder because of less space. The sources are located on external SSD. So I have set in build_android.sh the HOME value to
HOME='/media/ich/exSSD3',
so my folder structure is
The builds is finishing successful, but no rebranding (all are still 'Chromium' labled and Chromeium icons are used)
So, what's wrong ? Why no rebranding and I thing none of the files in thorium folder is used.
The text was updated successfully, but these errors were encountered: