Compile WebKit in XP

Source: Internet
Author: User
Finally download and compile WebKit. I did it in 32-bit XP. Below is the hand shun ============================== 1. Preliminary work1. Install vstudio 2005. I use the Chinese Professional Edition. Remember to install VISUAL C ++ as much as possible. Otherwise, the installation will suffer. 2 install the sp1package, vs80sp1-kb926604-x86-chs.exe. This is longer than installing. If you select to install all in step 1, this step takes 2-3 hours. If you only install the VC in the first step, this step will take about 20 minutes. 3. Install the vs patch. Otherwise, the Vs will easily die. VS80sp1-KB947315-X86-CHS.exe. If you do not install this patch, you must disable the intelliisense function, that is, delete the c: \ Program Files \ Microsoft Visual Studio 8 \ Vc \ vcpackages \ feacp. dll library, which is the intelliisense library. Or change the name. 4. Install quicktimesdk. Find it from the Internet and download it from the apple official website. Be sure not to change the default installation path. 5. Install directxsdk. Find it on the MS official website. But now it seems that you want to check whether your system is genuine. There are also cracking methods on the Internet. 6. Install the safari Win32 browser. ====================================== 2 download source code"1 download source tar package, 1.8g, http://nightly.webkit.org/files/WebKit-SVN-source.tar.bz2 do not use thunder, there will be problems. I directly use a browser. 2 download the cygwin package encapsulated by WebKit, The http://svn.webkit.org/repository/webkit/trunk/Tools/CygwinDownloader/cygwin-downloader.zip runs cygwin-downloader.exe ================== 3. Compile source code1 use vs to open the source code directory/source/WebKit/win/WebKit. vcproj/WebKit. sln. 30 projects in total. 2. Modify the debug configuration of each project/C ++ options/General/set the warning to false. 3. Open the WebKit source code directory \ webkitlibraries \ win \ tools \ vsprops \ in a text editor \ common. in the vsprops file, replace/safesh with/safeseh: No. This is related to links and security. Note: the link to the vcproject, compilation, and other attributes are all inherited from the vsprops in this folder. If necessary, you can change the attributes here. In Vs cannot be changed.4. After cygwin is installed, a terminal will be provided to enter the WebKit source code directory. First, execute the tools/script/update-WebKit script. Then execute the tools/script/update-WebKit-support-libs script. These two scripts need to download some dependent files to the source code directory. Note that it must be executed in the source code root directory. Because the compilation requires that the downloaded dependent files be placed in the root directory. 5. Add a system environment variable. The dxsdk_dir value is c: \ dxsdk. Add the bin directory of cygwin to the path variable. Run tools/script/build-WebKit -- debug, this script will compile the product of the debug version of WebKit 7 in the WebKit source code directory/webkitbuild \ debug. Package lib.dll.exe and other "8" may report an error during compilation. For example, winnt. h reports an error and can be queried online. The main reason is that the Location Order of the dependent header file is incorrect (the directsdk include location is incorrect), but it is not easy to change. The error is as follows: vs2005 \ Vc \ platformsdk \ include \ WINNT. H (222): Error c2146: syntax error: ";" missing (before the identifier "pvoid64 ). Solution: directly modify winnt. h and add the following line in the error area. # Define pointer_64 _ ptr64"9 and then compile it. There are about 2 k files, which is faster." 10 during compilation, d3d9 may not be found. lib, copy all the files in the directxsdk/lib directory to the WebKit source code directory \ webkitbuild \ debug \ Lib ============ ========== 4. Run the test"1 run webkitbuild \ debug \ bin \ minibrowser.exe and cfnetwork may be missing. DLL and other libraries, then you need to install the C: \ Program Files \ common files \ Apple application support all DLL files to the WebKit source code directory \ webkitbuild \ debug/bin, Note that some databases should not be overwritten. If you want to overwrite the data, you can choose whether to overwrite the data."2 You can also debug tools/minbrowser ====================== to this point in, compilation of WebKit has come to an end. Some files are still problematic during compilation. Manual modification is required, which is relatively simple.

For more information, see:

Http://www.webkit.org/building/build.html

 

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.