How is the non-official version of GoogleChromeforLinux made?
Source: Internet
Author: User
How is the non-official version of GoogleChromeforLinux made? -- Linux general technology-Linux programming and kernel information. The following is a detailed description. We know that the linux version of google chrome is working overtime. We can see from the update of Chromium svn that the code is changing every day. (Chromium is the open source code version of chrome)
To run the chrome browser on linux, the traditional method is nothing more than wine or virtual machine. At present, I still need to wait to truly implement native running. Of course, we can initially experience chrome's compilation process on the linux platform and conduct a comprehensive module test. The current Code is nothing more than integrating functions into a visible browser. Let's talk about compilation, and then provide the implementation method of wine.
Compile chromium
Prerequisites
Subversion> = 1.4 (Note: if you are using the tarball (compressed package format), it is difficult to pay attention to code changes. You need version 1.5 and we will fix it later: subversion is a version control software that is more advanced than CVS)
Pkg-config> = 0.20 (TRANSLATOR: pkg-config is a library Configuration tool for development)
Python> = 2.4 (TRANSLATOR: Python programming language, which refers to the Python environment and Tool)
Perl> 5.x
Gcc/g ++> = 4.2
Bison> = 2.3 (TRANSLATOR: GNU bison syntax analysis Conversion Tool ?)
Flex> = 2.5.34
Gperf> = 3.0.3
Libnss3-dev> = 3.12
Then download the build tool:
Svn co http://src.chromium.org/svn/trunk/depot_tools/linux depot_tools
Configure the build tool again:
$ Export LANG = C
$./Depot_tools/gclient config http://src.chromium.org/svn/trunk/src
The release folder is displayed.
$./Depot_tools/gclient sync
It takes a long time to get src. I haven't synchronized it yet. It is said that the entire Build Environment + chromium source code occupies a total space of 1 GB.
After compilation, compile the subset program.
Third_party/scons. py Hammer
After the program is completed, the executable program is placed in the Hammer directory.
Suggestion: Let's take a look at the source code structure. What a large company does is meticulous. Although it was developed by a few cool people, it is definitely an unimaginable huge project for us.
Wine simulation:
Instead of using wine directly, I use CrossOver. Select install third-party software, and select chrome install program. It went quite well, but it was not easy to use.
In short, we are looking forward to the official version released by google.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service