Bug 7802

Summary: devenv.com not available in VC++ Express installations
Product: WebKit Reporter: Björn Graf (boki) <bjoern.graf>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-webkit, cryo, ddkilzer, gavin.sharp, hyatt, ian
Priority: P2    
Version: 420+   
Hardware: PC   
OS: Windows XP   
Attachments:
Description Flags
Utilize vcbuild.exe in webkit.pm
none
Utilize vcbuild.exe in webkit.pm with VCINSTALLDIR check
none
Updated patch with ChangeLog
none
Patch with no reviewer set
mjs: review-
Updated patch to default to $ProgramFiles if VCINSTALLDIR is not set
ddkilzer: review-
Final build fix patch
ddkilzer: review-
another attempt mjs: review+

Description Björn Graf (boki) 2006-03-16 03:27:06 PST
webkitdirs.pm uses devenv.com to build the projects on windows, but devenv.com is not available when using the Express version of VC++. Using vcbuild.exe instead is a better choice as it is installed with both, the full VS.NET and the Express version.
Comment 1 Björn Graf (boki) 2006-03-16 03:33:30 PST
Created attachment 7111 [details]
Utilize vcbuild.exe in webkit.pm
Comment 2 Björn Graf (boki) 2006-03-17 00:27:28 PST
Created attachment 7124 [details]
Utilize vcbuild.exe in webkit.pm with VCINSTALLDIR check
Comment 3 Darin Adler 2006-03-24 08:21:05 PST
Comment on attachment 7124 [details]
Utilize vcbuild.exe in webkit.pm with VCINSTALLDIR check

If this works, we should definitely do it! But I don't have a Windows machine to test on.
Comment 4 Maciej Stachowiak 2006-03-25 03:33:53 PST
Comment on attachment 7124 [details]
Utilize vcbuild.exe in webkit.pm with VCINSTALLDIR check

r=me but whoever lands this should test on windows to make sure it works ok with full VC
Comment 5 Darin Adler 2006-06-04 13:50:51 PDT
*** Bug 7871 has been marked as a duplicate of this bug. ***
Comment 6 David Kilzer (:ddkilzer) 2006-06-24 11:40:30 PDT
Committed revision 15015.

Watching buildbot for Windows build errors.  http://build.webkit.org/
Comment 7 David Kilzer (:ddkilzer) 2006-06-24 11:54:25 PDT
This patch did not work on the buildbot.

http://build.webkit.org/post-commit-win32/builds/1746/step-compile-release/0

Looks like vcvars32.bat needs to be run on the buildbot.  Hyatt, can you do this, or is this something that needs to be done every time the user logs in?

Run "<Program Files>\Microsoft Visual Studio 8\VC\bin\vcvars32.bat" to set VC variables at /cygdrive/c/WebKit-BuildSlave/post-commit-win32/build/WebKitTools/Scripts/webkitdirs.pm line 350.
program finished with exit code 2

I am backing out the patch for now.
Comment 8 David Kilzer (:ddkilzer) 2006-06-24 11:58:23 PDT
Created attachment 9007 [details]
Updated patch with ChangeLog 

If the vcvars32.bat script gets run on the Win32 buildbot, this patch may work again.
Comment 9 David Kilzer (:ddkilzer) 2006-06-24 12:00:13 PDT
(In reply to comment #8)
> Created an attachment (id=9007) [edit]
> Updated patch with ChangeLog 

I did not change anything in the patch itself, but the original patch applied with fuzz 1.
Comment 10 David Kilzer (:ddkilzer) 2006-06-24 12:01:43 PDT
Created attachment 9008 [details]
Patch with no reviewer set

Same as previous patch, but no reviewer set.  *sigh*
Comment 11 Darin Adler 2006-06-24 21:56:04 PDT
(In reply to comment #10)
> Same as previous patch, but no reviewer set.  *sigh*

The reason this had Maciej as a reviewer is that he long since said "r=me" (see comment #4 above).

But we need someone to test that this works on a system with Visual Studio before we land it. Sorry it's been sitting around so long.
Comment 12 David Kilzer (:ddkilzer) 2006-06-24 23:04:22 PDT
(In reply to comment #11)
> (In reply to comment #10)
> > Same as previous patch, but no reviewer set.  *sigh*
> 
> The reason this had Maciej as a reviewer is that he long since said "r=me" (see
> comment #4 above).

Actually, I was sighing at myself because I forgot to clear Maciej from previous patch as the reviewer before uploading it to this bug.  :)

As soon as this lands, I'll install VC++ Express on my Windows laptop so I can play with WebKit there, too.
Comment 13 Maciej Stachowiak 2006-07-04 01:42:35 PDT
This forces people with full visual studio to set VCINSTALLDIR, which hasn't been a requirement before. Probably it could just default to using "$programFilesPath/Microsoft Visual Studio 8/VC/" instead of VCINSTALLDIR if its not set, but r- for the technicality.
Comment 14 Björn Graf (boki) 2006-07-04 06:33:24 PDT
Created attachment 9189 [details]
Updated patch to default to $ProgramFiles if VCINSTALLDIR is not set
Comment 15 David Kilzer (:ddkilzer) 2006-07-09 07:48:47 PDT
Committed revision 15252.

Hopefully, the buildbot won't break this time.  :)

Comment 16 David Kilzer (:ddkilzer) 2006-07-09 08:20:18 PDT
(In reply to comment #15)
> Committed revision 15252.
> 
> Hopefully, the buildbot won't break this time.  :)

No such luck.   Attempted one build-fix in r15254.

Comment 17 David Kilzer (:ddkilzer) 2006-07-09 08:23:11 PDT
(In reply to comment #16)
> (In reply to comment #15)
> > Committed revision 15252.
> > Hopefully, the buildbot won't break this time.  :)
> No such luck.   Attempted one build-fix in r15254.

Okay, that worked.  If VC++ Express still isn't working, please open a new bug and file a new patch.  Thanks!  :)

Comment 18 David Kilzer (:ddkilzer) 2006-07-09 08:24:42 PDT
Created attachment 9298 [details]
Final build fix patch
Comment 19 David Kilzer (:ddkilzer) 2006-07-09 21:40:32 PDT
Reopening once again.  This broke the Windows buildbot yet again.  Will mark the patches r-.

Comment 20 Alexey Proskuryakov 2006-11-01 11:21:44 PST
Created attachment 11333 [details]
another attempt

Updates the earlier patches to use VCExpress.exe, which takes the same parameters as devenv.com.

Unfortunately, VCExpress.exe doesn't print anything to the console, saving its results to per-project HTML files. Still, this is hopefully slightly better than the current situation (and I suppose that everyone builds from VC Express IDE anyway).

Cmake apparently has a workaround, but I couldn't make it work: <http://www.cmake.org/pipermail/cmake/2006-February/008292.html>.
Comment 21 Maciej Stachowiak 2006-11-01 15:45:15 PST
Comment on attachment 11333 [details]
another attempt

r=me
Comment 22 Anders Carlsson 2006-11-02 19:16:33 PST
Committed revision 17551.