Hi,

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 :
http://blog.ashodnakashian.com/2012/01/building-webkit-on-windows-7-with-vs2010/
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"
#TEMP="/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 http://builds.nightly.webkit.org/files/trunk/src/WebKit-r123220.tar.bz2 > 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 WebKit-r123220/Tools/Scripts/ORG_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
vs201x-build-env.cmd

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%" "C:\Developer\cygwin\home\Vincent\WebKit-r123220\WebKitLibraries\win"
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
1>  ou externe, un 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 (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(153,5): 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.

Thanks







_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to