![]() Run update-webkit and build-webkit at least once.(Express version needs a bit of a push to work. Install VS2008 with all Service Packs and updates.If you have 6.0 or 6.0A you should have no problems building. Note: If you already have SDK 6.0, 6.0A, 7.0, 7.0A or 7.1, you should be fine, but be warned: DirectX conflicts with 7.x SDKs, so make sure DirectX headers come after Windows SDK. Print $fh "IF EXIST \"\%VSINSTALLDIR\%\\Common7\\IDE\\\" ( /useenv ". Print $fh "Set Path=%MSSdk%\\Bin %MSSdk%\\Bin\\WinNT %path%\n\n" Print $fh "Set Include=%MSSdk%\\Include %Include%\n\n" Print $fh "Set Lib=%MSSdk%\\Lib %Lib%\n\n" Print $fh "Set MSSdk=C:\\Program Files\\Microsoft Platform SDK for Windows Server 2003 R2\n\n" Don't call its own SetEnv as it doesn't detect VS2008 or newer. ![]() Print $fh "set PATH=$vcBin $scriptsPath \%PATH\%\n\n" # Comment the following to see the environment variables used. Print "Please ensure that \$VS80COMNTOOLS or \$VS90COMNTOOLS\n" Print "Cannot find Visual Studio tools dir.\n" # Reverse the order of these if you prefer to use VS2008. My ($fh, $path) = tempfile(UNLINK => 0, SUFFIX => '.cmd') or die Ĭhomp(my $vcBin = `cygpath -w "$FindBin::Bin/./vcbin"`) Ĭhomp(my $scriptsPath = `cygpath -w "$FindBin::Bin"`) Here is an example of a modified pdevenv script that sets up the SDK: #!/usr/bin/perl -w The reason for this is because Bash can’t execute the scripts necessary for setting up Visual Studio’s environment. This Perl script is responsible for creating a Windows CMD file which ultimately runs Visual Studio. In the Tools/Scripts folder of WebKit there is a script called pdevenv. This is relatively easy and convenient, but will require scripting. We can change the environment variables in a shell instance and pass them on to Visual Studio. The second method is much less intrusive. So don’t make this change if other projects depend on your current settings, unless you care more about WebKit, of course. Note: This will change the Visual Studio paths for all instances. Where %SDK% is the installation path of the SDK. From Tools > Options menu, from Projects and Solutions > VC++ Directories page, set the Executable files‘s top entry to %SDK%\bin folder, the %SDK%\lib at the top of the Library files entries and %SDK%\include to the top of the Include files‘s entries. ![]() The first method is to change the BIN, INCLUDE and LIB directories from the Visual Studio Options dialog. If you have multiple Windows SDKs (as is typically the case when installing multiple Visual Studio versions) then you will have to setup your target Visual Studio to use the SDK of choice. If you don’t want to change you system-wide path, skip this and see the script below. The values must be fully-qualified Windows paths and not Cygwin/unix paths. Create WEBKITLIBRARIESDIR and WEBKITOUTPUTDIR environment variables.Copy the file (don’t extract, just copy the zip) into the WebKit source folder. Download the Support Libraries from Apple.Install Windows SDK for Server 2003 R2 or newer.Personally, I suggest sticking with 2008. For VS2005 please refer to the updates listed here. Install Visual Studio 2005 or 2008 with all updates and Service Packs.It’s worth noting that the August 2007 version builds WebKit just fine (as of r95358 with default flags). However, if you’ll build with VS2005, don’t install anything newer than February 2010. Install QuickTime SDK in the default location.Never to a path with spaces! Make sure you install: svn, curl, unzip, make, perl, python, gcc, gcc-g++, gcc4, gcc4-g++, bison, flex, gperf. Preferably install to C:\cygwin (I’ll assume that’s where it is). Unless you want to build using VS2005, ignore the instructions on VS2005. You may follow the instructions described here. There are some common requirements, so first and foremost make sure these are setup correctly. Here I’ll cover Apple Windows and WinCairo. I have no experience building the Qt and GTK flavors. All four require external libraries to be present for the build to succeed. There are essentially 4 different flavors: Apple Windows, WinCairo, Qt and GTK. The differences are important, because one must setup the build system slightly differently for each flavor. WebKit can be built in different flavors. At any rate, these notes are up-to-date as of September 2011, I hope you find them helpful.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |