[webkit-dev] VS2010 compilation

Eric Fortin 2 eric.fortin at ubisoft.com
Mon Jul 23 06:05:59 PDT 2012


Make sure that your .bashrc file isn't setting(and exporting) TMP or TEMP either.


-----Original Message-----
From: webkit-dev-bounces at lists.webkit.org [mailto:webkit-dev-bounces at lists.webkit.org] On Behalf Of forumer at smartmobili.com
Sent: 21 juillet 2012 08:06
To: webkit-dev at lists.webkit.org
Subject: [webkit-dev] VS2010 compilation


I am trying to compile webkit on the following platform Windows 7 Pro x64 Intel i5 2500K - 3.3 GHz Microsoft Visual Studio 2010 Ultimate -ENU Version 10.0.30319 Microsoft Visual Studio 2010 Service Pack 1 Version 10.0.40219 Microsoft Visual Studio 2010 SDK SP1 Version 10.0.40219 Cygwin 1.7.15-1 installed in C:\Developer\cygwin

using VS2010 Ultimate with SP1 on a windows platform (Windows 7 x64 - Intel i5 2500K - 3.3 GHz) folllowing this blog :
but unfortunately it nevers succeeds.
I would be curious to know if you are using cygwin 1.5 or 1.7 and what version of gcc?
For people interested here is my personal investigations about how to progress on this subject :

0) Check you don't have any visual open and zombie process MSBuild.exe

1) Install cygwin 1.7 with the following packages (perl, python, make, curl, unzip).(Personaly I like to install it inside c:\Developer\cygwin)
    We need an additional perl dependency Http/Datep.pm so let's install it too:

    $ perl -MCPAN -e shell
    $ install 'Http::Date'

2) Edit /etc/profile and comment the 3 lines like this ORIGINAL_TMP=$TMP ORIGINAL_TEMP=$TEMP #unset TMP TEMP tmp=$(cygpath -w "$ORIGINAL_TMP" 2> /dev/null) temp=$(cygpath -w "$ORIGINAL_TEMP" 2> /dev/null) #TMP="/tmp"

3) Launch cygwin and enter the following commands (I have modified original script from ashodnakashian to allow
    more configurations ie check if cygwin is installed or not in the default path, ...)

$ mkdir tmp && cd tmp
$ curl -k
 > WebKit-r123220.tar.bz2
$ curl -k  http://www.smartmobili.com/downloads/WebKit-vs201x-Patch.zip
 > WebKit-vs201x-Patch.zip
$ tar xvf WebKit-r123220.tar.bz2
$ mv WebKit-r123220/Tools/Scripts/pdevenv
$ unzip -d WebKit-r123220 WebKit-vs201x-Patch.zip

Ok so now we are ready to launch the compilation, go to Start Menu\Microsoft Visual Studio 2010\Visual Studio Tools and right-click on Visual Studio Command Prompt (2010) and click on Run as Administrator

>cd C:\Developer\cygwin\home\Vincent\WebKit-r123220

If everything goes well you should see something like :

Setting up Cygwin directory...
Note: Using custom cygwin path
Lien symbolique créé pour C:\cygwin <<===>> C:\Developer\cygwin Setting up WebKit directory...
Exporting environment varibles...
Note: Remember to set devenv.exe to run as administrator!
Running Cygwin...

and now you are in cygwin.

$ build-webkit --wincairo 2>&1 | tee build.txt

And now I am a bit stuck with this error :
Microsoft (R) Visual Studio Version 10.0.40219.1.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Build started: Project: WTFGenerated, Configuration: 
Release_Cairo_CFLite Win32 ------
1>  /cygdrive/c/Developer/cygwin/bin/bash
1>  	touch "%ConfigurationBuildDir%\buildfailed"
1>  	bash build-generated-files.sh "%ConfigurationBuildDir%" 
1>  	bash -c "python work-around-vs-dependency-tracking-bugs.py"
1>  	copy-files.cmd
1>  Copying WTF headers...
1>  '#' n'est pas reconnu en tant que commande interne  ou externe, un 
1> programme ex‚cutable ou un fichier de commandes.
1>  Copying other files...
1>  	del "%ConfigurationBuildDir%\buildfailed"
2>------ Build started: Project: WTF (WTF\WTF), Configuration: 
Release_Cairo_CFLite Win32 ------
2>  /cygdrive/c/Developer/cygwin/bin/bash
2>C:\Program Files
error MSB6001: Invalid command line switch for "CL.exe". Item has already been added. Key in dictionary: 'TMP'  Key being added: 'tmp'
3>------ Build started: Project: JavaScriptCoreGenerated,
Configuration: Release_Cairo_CFLite Win32 ------

The first error is weird because when I have a look at 
Source\WTF\WTF.vcproj\copy-files.cmd I can see the following line 
starting by #

# FIXME: Why is WTF copying over create_hash_table?

The second error is about cl and duplicated key and I know it has 
something to do with cygwin way of declaring tmp and TMP and I thought
my modification would fix it but it seems it's not the case
Like suggested on the original blog I have also renamed 
Tools\vcbin\cl.exe and midl.exe to use the ones from Visual Studio, 
could it explain this problem ?

Any help would be appreciated.


webkit-dev mailing list
webkit-dev at lists.webkit.org

More information about the webkit-dev mailing list