[Libwebsockets] Complilation aventures with i686-w64-mingw32 on Windows 7 (64bit)

Arokux B. arokux at gmail.com
Wed Feb 27 19:14:02 CET 2013


Hi,

here are the problems that I found while compiling libwebsockets with
CMake using as a generator MinGW Makefiles.

1. In http://git.warmcat.com/cgi-bin/cgit/libwebsockets/plain/win32port/win32helpers/gettimeofday.c

Remove spaces around time.h, otherwise it looks for " time.h " and
fails with "No such file ..."

I also needed to comment out

struct timezone
{
  int  tz_minuteswest; /* minutes W of Greenwich */
  int  tz_dsttime;     /* type of dst correction */
};

It is already declared in mingw's time.h

2.  Comment out this line

http://git.warmcat.com/cgi-bin/cgit/libwebsockets/tree/CMakeLists.txt#n279

the file websock-w32.c is already compiled indirectly from libwebsockets.c

3. If CMAKE_INSTALL_PREFIX is specified the
win32port\win32helpers\{gettimeofday.h,websock-w32.h} are not copied
and hence not found because these are included from libwebsockets.h
and it is now at different location.

Regards
Arokux



More information about the Libwebsockets mailing list