I found a lot of information on the Internet and finally compiled the chromium browser. Now I want to write down the compilation steps for you to share.
1, go here to download the tarball code: http://chromium-browser-source.commondatastorage.googleapis.com/chromium_tarball.html, this is not the latest code, whether not to update the code is up to you to decide, our company is using a proxy service, update the code will encounter timeout problem, therefore, gclient is not used.
The sync -- force command is used to update the chromium code. It is more convenient to obtain the tarball package. When I obtained the source code in May, I often encounter network disconnection problems in the next day. (Note: Run gclient sync -- force after depot_tool is installed ).
2. Download The depot_tool.
3. Install Python and SVN tools without updating the Code.
Run Python "XXX \ depot_tools \ gclient. py" runhooks under SRC to generate chrome. sln.
4. Install vs2008 + SP1
5. Install the Windows 7 SDK
6. Let vs use the new SDK,Start> All Programs> Microsoft Windows SDK> Visual Studio registration> Windows SDK Configuration tool.
7. install the DirectX SDK. Here the Microsoft DirectX SDK (June 2010) version of direct SDK is selected. d3dx9 will be used during GL compilation. h. in msvc | tools | options | projects and solutions | VC ++ directories, include: C: \ Program Files \ Microsoft
DirectX SDK (June 2010) \ include and Lib:C:\Program Files\Microsoft DirectX SDK (June 2010)\Lib\x86.
8. now I can re-compile the Chrome project. It took about five hours to compile the project. Some of the test cases have not been completed yet. When I compile the project, about 570 projects need to be compiled, have a cup of tea. Please wait. After compilation
Chrome.exe will be generated under build \ debug \ directory. There is a chrome. dll file on it, and it will be OK!
Compilation result:
Run chrome.exe.
Everyting is OK!
Thanks to genesisbible's article http://blog.csdn.net/genesisbible/article/details/6191540.
For more information about vs2005 compilation, see:
Http://www.cnblogs.com/maconel/archive/2010/09/29/1838744.html.