[webkit-dev] Errors during Windows Cairo compile

Bailey, Richard richbail at amazon.com
Wed Mar 5 13:06:03 PST 2008


Thanks Brent,

I originally followed the install steps on the building/tools.htm page.  By Apple Installer are you referring to the cygwin-downloader.zip from webkit.org?  I did use that.  Also I verified I have gperf accessible from my cygwin window.

I am missing the WebKitBuild directory.

Also, I may be having a svn problem as I keep finding vcproj files that look like they have merge conflicts.

For instance WebCore.vcproj has this line:
                                                <File
<<<<<<< .mine
                                                                RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\kjs_css.lut.h"

Is this a conflict caused on my side or is it coming in from elsewhere?

Richard

From: Brent Fulgham [mailto:bfulgham at gmail.com]
Sent: Wednesday, March 05, 2008 12:01 PM
To: Bailey, Richard
Cc: webkit-dev at lists.webkit.org; Daniel Zucker
Subject: Re: [webkit-dev] Errors during Windows Cairo compile

Richard,

The current error message looks like the generated files are not being built.  This might be due to missing Cygwin tools.

If you had Cygwin installed before trying to build WebKit, you might have been tempted to avoid using the Apple Installer (I know I was!).  The problem is that there are certain tools required that you might not have installed.

For me, the problem was that I had not installed gperf (the perfect hash generator), so some of the auto-generated files were not being created.

An annoying problem is that sometimes a "build-webkit --clean" does not get rid of everything necessary.  In those cases you will be forced to delete the WebKitBuild directory.

In your case, the complaints about "WebCore/COMPtr.h" missing are confusing because you can probably see it in "platform/win/COMPtr.h".  So what gives?

The build is actually looking in WebKitBuild/include/WebCore for COMPtr.h, so the fact that it is missing indicates that the post-build step that copies things from WebCore/platform/* to WebKitBuild/include failed.

Scour the build logs and you will find enlightenment!

-Brent
On Wed, Mar 5, 2008 at 11:16 AM, Bailey, Richard <richbail at amazon.com<mailto:richbail at amazon.com>> wrote:

Yes, my code was out of sync.  I've done update-webkit and rebuilt.



I now get the following errors suggesting that WebCore did not build?  I see no BuildLog.htm for   WebCore.

JavaScriptCore BuildLog.htm looks fine.



Also, is there a way to build everything cleanly?  I tried -clean flag without success. (it seemed like a noop)



Thanks for all the help,

Richard





Performing Pre-Build Event...

Compiling...

DebuggerClient.cpp

c:\cygwin\webkit\webkit\webkittools\drosera\win\DebuggerClient.h(35) : fatal error C1083: Cannot open include file: 'WebCore/COMPtr.h': No such file or directory

DebuggerDocument.cpp

c:\cygwin\WebKit\WebKit\WebKitTools\Drosera\win\ServerConnection.h(34) : fatal error C1083: Cannot open include file: 'WebCore/COMPtr.h': No such file or directory

DebuggerDocumentPlatform.cpp

c:\cygwin\webkit\webkit\webkittools\drosera\win\ServerConnection.h(34) : fatal error C1083: Cannot open include file: 'WebCore/COMPtr.h': No such file or directory

Drosera.cpp

c:\cygwin\webkit\webkit\webkittools\drosera\win\Drosera.h(34) : fatal error C1083: Cannot open include file: 'WebCore/COMPtr.h': No such file or directory

ServerConnection.cpp

c:\cygwin\webkit\webkit\webkittools\drosera\win\ServerConnection.h(34) : fatal error C1083: Cannot open include file: 'WebCore/COMPtr.h': No such file or directory

Generating Code...

Project : warning PRJ0018 : The following environment variables were not found:

$(PRODUCTION)





From: Brent Fulgham [mailto:bfulgham at gmail.com<mailto:bfulgham at gmail.com>]
Sent: Tuesday, March 04, 2008 8:27 PM
To: Bailey, Richard
Cc: webkit-dev at lists.webkit.org<mailto:webkit-dev at lists.webkit.org>; Daniel Zucker

Subject: Re: [webkit-dev] Errors during Windows Cairo compile



Richard,



Problem #1:  It looks like your source is out of date.  platform/win/PlatformScrollBarWin.cpp has been in the SVN archive for a few days now.

Problem #2:  There's something weird about the 'jmorecfg.h' file.  It's trying to define some basic Windows types needed for compiling.  It's acting like it doesn't recognize your development environment as Windows.



-Brent







On Mar 4, 2008, at 5:15 PM, Bailey, Richard wrote:



I deleted WebKit/Output and WebKit/WebKitBuild and reran build-webkit



I then search for all the build.htm and sorted in time and backtracked to earliest one showing errors.



Attached is BuildLog from WebCore

And below are the errors.





PlatformScrollBarWin.cpp

c1xx : fatal error C1083: Cannot open source file: '..\platform\win\PlatformScrollBarWin.cpp': No such file or directory



JPEGImageDecoder.cpp

c:\graphics_formats\jpeg-6b\jmorecfg.h(161) : error C2371: 'INT32' : redefinition; different basic types

        C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\basetsd.h(62) : see declaration of 'INT32'

c:\graphics_formats\jpeg-6b\jmorecfg.h(215) : warning C4005: 'FAR' : macro redefinition

        C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\windef.h(145) : see previous definition of 'FAR'

c:\graphics_formats\jpeg-6b\jmorecfg.h(227) : error C2371: 'boolean' : redefinition; different basic types

        c:\program files\microsoft platform sdk for windows server 2003 r2\include\rpcndr.h(147) : see declaration of 'boolean'

..\platform\image-decoders\jpeg\JPEGImageDecoder.cpp(166) : warning C4611: interaction between '_setjmp' and C++ object destruction is non-portable

PNGImageDecoder.cpp

..\platform\image-decoders\png\PNGImageDecoder.cpp(100) : warning C4611: interaction between '_setjmp' and C++ object destruction is non-portable







From: webkit-dev-bounces at lists.webkit.org<mailto:webkit-dev-bounces at lists.webkit.org> [mailto:webkit-dev-bounces at lists.webkit.org] On Behalf Of Bailey, Richard
Sent: Tuesday, March 04, 2008 4:10 PM
To: Brent Fulgham
Cc: webkit-dev at lists.webkit.org<mailto:webkit-dev at lists.webkit.org>; Daniel Zucker
Subject: Re: [webkit-dev] Errors during Windows Cairo compile



Hi Brent,



Here is the buildlog from javascriptcore.

No errors but a bunch of 0 Files copied in the post-build step.



Also, I do not have a JavaScriptCoreGlue or a JavaScriptGlue in my Output/obj path



Thanks,

Richard





From: Brent Fulgham [mailto:bfulgham at gmail.com]
Sent: Tuesday, March 04, 2008 4:00 PM
To: Bailey, Richard
Cc: Daniel Zucker; webkit-dev at lists.webkit.org<mailto:webkit-dev at lists.webkit.org>
Subject: Re: [webkit-dev] Errors during Windows Cairo compile



Hi Richard,

These errors indicates than an earlier build step failed.  Take a look at the JavaScriptCore or other build logs to see which one failed first.

The usual build order is something like:

JavaScriptCore
JavaScriptCoreGlue
WebCore
WebKit


-Brent

On Tue, Mar 4, 2008 at 3:21 PM, Bailey, Richard <richbail at amazon.com<mailto:richbail at amazon.com>> wrote:




Compiling...

MarshallingHelpers.cpp

..\MarshallingHelpers.cpp(31) : fatal error C1083: Cannot open include file: 'WebCore/IntRect.h': No such file or directory

WebCoreLocalizedStrings.cpp

..\WebCoreLocalizedStrings.cpp(28) : fatal error C1083: Cannot open include file: 'WebCore/IntSize.h': No such file or directory

WebInspectorClient.cpp



c:\cygwin\webkit\webkit\webkit\win\WebDatabaseManager.h(32) : fatal error C1083: Cannot open include file: 'WebCore/DatabaseTrackerClient.h': No such file or directory

WebKitDLL.cpp






<BuildLog.htm>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.webkit.org/pipermail/webkit-dev/attachments/20080305/7c329532/attachment-0001.html 


More information about the webkit-dev mailing list