[webkit-dev] Cairo-build on Windows fails

Frank Thomsen fth at trifork.com
Tue Mar 17 00:21:55 PDT 2009


Hi Brent

That worked - thank you very much! Apparently the following code snippet from curl.h did not include winsock.h:

#if defined(WIN32) && !defined(_WIN32_WCE) && !defined(__GNUC__) && \
  !defined(__CYGWIN__) || defined(__MINGW32__)
#if !(defined(_WINSOCKAPI_) || defined(_WINSOCK_H))
/* The check above prevents the winsock2 inclusion if winsock.h already was
   included, since they can't co-exist without problems */
#include <winsock2.h>
#include <ws2tcpip.h>
#endif
#else

But I altered the code as you suggested:

#ifndef curl_socket_typedef
/* socket typedef */
#ifdef WIN32
#include <winsock2.h>
typedef SOCKET curl_socket_t;
#define CURL_SOCKET_BAD INVALID_SOCKET
#else

And that does the trick. Once again, thank you.

Regards,
Frank


From: Brent Fulgham [mailto:bfulgham at gmail.com]
Sent: 16. marts 2009 19:08
To: Frank Thomsen
Cc: Mital Vora; webkit-dev at lists.webkit.org
Subject: Re: [webkit-dev] Cairo-build on Windows fails

Hi Frank,

The compiler is unhappy with the SOCKET definition, most likely because the Windows networking header is not getting included.   You could try including <winsock2.h> in the curl.h header before this line just to see if that gets you any further.

I don't see this issue, and I don't believe Mital does either.  So perhaps there is something different in our build environments.

I will attempt a build today using current sources in case something has changed recently (i.e., since Thursday) that is complicating matters.

Thanks,

-Brent




On Mar 16, 2009, at 2:08 AM, Frank Thomsen wrote:


It still doesn't work, unfortunately. I even tried the following, out of desperation:
*         Deleted all code, and checked it out with svn again.
*         Ran ./update-webkit
*         Donwloaded the requirements zip package from http://trac.webkit.org/wiki/BuildingCairoOnWindows
*         Patched the code using patch #26992

The problems are the same. Something weird is wrong - the compiler complains about "missing ';' before indentifier curl_socket_t" in the following line:
typedef SOCKET curl_socket_t;


From: Mital Vora [mailto:mital.d.vora at gmail.com]
Sent: 13. marts 2009 16:58
To: Frank Thomsen
Cc: webkit-dev at lists.webkit.org<mailto:webkit-dev at lists.webkit.org>
Subject: Re: [webkit-dev] Cairo-build on Windows fails

try cleaning the solution and building it again.. remove the WebKitBuild directory completely.


Regeards,

Mital Vora.


On Fri, Mar 13, 2009 at 6:00 PM, Frank Thomsen <fth at trifork.com<mailto:fth at trifork.com>> wrote:

I applied the patch (#26992) and the error is still there, unfortunately. The next error in the list is:



error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\cygwin\home\fth\webkit\requirements\include\curl\curl.h 183



I hope you know what causes this problem.



Regards

Frank



From: Mital Vora [mailto:mital.d.vora at gmail.com<mailto:mital.d.vora at gmail.com>]
Sent: 13. marts 2009 12:55
To: Frank Thomsen
Cc: webkit-dev at lists.webkit.org<mailto:webkit-dev at lists.webkit.org>
Subject: Re: [webkit-dev] Cairo-build on Windows fails



cairo build is not fully checked in to the ToT
u need to apply the latest patch attached in the following bug...

https://bugs.webkit.org/show_bug.cgi?id=17484


Regeards,

Mital Vora.

On Fri, Mar 13, 2009 at 5:04 PM, Frank Thomsen <fth at trifork.com<mailto:fth at trifork.com>> wrote:

Hi



I am trying to build the Cairo port on a windows machine (building in Visual Studio) but it fails with the following error message (amongst others):



error C2146: syntax error : missing ';' before identifier 'curl_socket_t'                C:\cygwin\home\fth\webkit\requirements\include\curl\curl.h 183



I have checked out the source and done all the other stuff mentioned at webkit.org<http://webkit.org>. Furthermore I followed the guidelines athttp://trac.webkit.org/wiki/BuildingCairoOnWindows using the bundled version of the required libraries. Visual Studio is set up to have the following extra include libraries (from the requirements-package):

<somewhere>\requirements\include\cairo\

<somewhere>\requirements\include\



And the directory <somewhere> \requirements\lib\ is added to the library directories.



Can anyone see what my problem is? I am building using the "Release_Cairo" build target.



Regards, and thanks in advance

Frank

_______________________________________________
webkit-dev mailing list
webkit-dev at lists.webkit.org<mailto:webkit-dev at lists.webkit.org>
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev



_______________________________________________
webkit-dev mailing list
webkit-dev at lists.webkit.org<mailto:webkit-dev at lists.webkit.org>
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090317/80df9ef9/attachment.html>


More information about the webkit-dev mailing list