[webkit-qt] QtWebKit visual studio solution

Baldeva, Arpit abaldeva at ea.com
Fri Dec 3 14:28:46 PST 2010


Hi,

Got around to try it. Worked really well. Thanks. May be these instructions should replace the one on the Wiki as they are more clear/not error prone.

Other than that, I noticed following which may be related to outdated instructions.

1) The instructions reference QtLauncher but I only saw QtTestBrowser. May be QtLauncher does not exist anymore.
2) The Qt installation directory structure(downloaded from http://qt.nokia.com/downloads) is different depending upon whether you are downloading the full QT SDK or Qt libraries. I found (and noticed some other postings) that the build instructions work correctly if I installed Qt libraries. It is possible that different people have different experience here.

Thanks again for your help.



-----Original Message-----
From: webkit-qt-bounces at lists.webkit.org [mailto:webkit-qt-bounces at lists.webkit.org] On Behalf Of Jocelyn Turcotte
Sent: Wednesday, November 24, 2010 1:09 AM
To: webkit-qt at lists.webkit.org
Subject: Re: [webkit-qt] QtWebKit visual studio solution

Hello,

Normally --qmakearg has no "s" at the end and that you have to add "=" 
between --qmakearg and its value.
I corrected the doc on the wiki.
The results should end up by default in WebKitBuild/Release, and 
WebKit.sln should be there.

If you still have difficulties, here is part of a batch file I use to 
generate VS files outside the source tree. The result will end in the 
current directory. You might have to tweak it but this should give you 
an idea:

qmake -r <RelativePathToWebKitSources>\DerivedSources.pro -o 
Makefile.DerivedSources
nmake -f Makefile.DerivedSources generated_files
qmake -r -tp vc <RelativePathToWebKitSources>\WebKit.pro

Please note as well that dependencies between projects in the solution 
aren't always generated correctly from the qmake files. You might have 
to right-click and build the QtWebKit project first in the solution and 
then building the whole solution should work.

Jocelyn


On 11/24/2010 2:12 AM, ext Baldeva, Arpit wrote:
>
> Hi,
>
> I am able to build QtWebKit successfully using the instructions 
> provided here - http://trac.webkit.org/wiki/BuildingQtOnWindows . 
> Thanks for the detailed instructions.
>
> I am currently building through the scripts but would like to generate 
> a visual studio solution.  I tried the instructions from the link 
> mentioned above (pasted below) but did not succeed. Worst, I ended up 
> corrupting something in the WebKit source copy on my machine and I 
> could no longer build(running in some strange errors). The workaround 
> for me was to download the WebKit code to a new location on my hard 
> drive and build from there.
>
> Instructions -
>
> >>If you want to generate MSVC project files (e.g. so that you can 
> debug/work from within MSVC) you can do it with the following steps
>
>    1. Run perl WebKitTools\Scripts\build-webkit --qt and cancel the
>       script after the derived sources are all generated
>    2. Run perl WebKitTools\Scripts\build-webkit --qt --qmakeargs "-tp
>       vc". This will generate MSVC project files and than it will fail
>    3. Open WebKit.sln from MSVC and build from MSVC. Build should
>       succeed and you should be able to debug and work from within MSVC.
>
> <<
>
> I did 1. The step 2 did not do anything I believe because it failed to 
> recognize "-qmakeargs" option. There is also no indication of where I 
> should look for WebKit.sln. The output directory seems the obvious 
> place but I did not find it. So seems like something did not go right 
> in step 1 or 2.
>
> Is there an easier way to achieve this?
>
> I appreciate any help.
>
> Thanks.
>
_______________________________________________
webkit-qt mailing list
webkit-qt at lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt



More information about the webkit-qt mailing list