[Libwebsockets] building libwebsockets for mingw (crossing from linux)

marty leisner maleisner at gmail.com
Mon Aug 3 01:57:22 CEST 2015


Not sure this matters much:

The documentation (README.build.md) says:
$ cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr \
     -DCMAKE_TOOLCHAIN_FILE=../cross-arm-linux-gnueabihf.cmake \
     -DWITHOUT_EXTENSIONS=1 -DWITH_SSL=0
```


In order ot make without SSL, I had to do:


 -DLWS_WITH_SSL=OFF


When I got past that problem, when I built I got:

[ 71%] Building C object
CMakeFiles/test-server-extpoll.dir/test-server/test-server.c.obj
/usr/local/src/network/git/libwebsockets/test-server/test-server.c: In
function 'callback_http':
/usr/local/src/network/git/libwebsockets/test-server/test-server.c:299:4:
warning: implicit declaration of function 'gettimeofday'
[-Wimplicit-function-declaration]
    gettimeofday(&tv, NULL);
    ^
/usr/local/src/network/git/libwebsockets/test-server/test-server.c:468:3:
error: invalid use of undefined type 'struct pollfd'
   pollfds[count_pollfds].fd = pa->fd;
   ^
/usr/local/src/network/git/libwebsockets/test-server/test-server.c:468:10:
error: dereferencing pointer to incomplete type
   pollfds[count_pollfds].fd = pa->fd;
          ^
/usr/local/src/network/git/libwebsockets/test-server/test-server.c:469:3:
error: invalid use of undefined type 'struct pollfd'
   pollfds[count_pollfds].events = pa->events;
   ^
/usr/local/src/network/git/libwebsockets/test-server/test-server.c:469:10:
error: dereferencing pointer to incomplete type
   pollfds[count_pollfds].events = pa->events;
          ^
/usr/local/src/network/git/libwebsockets/test-server/test-server.c:470:3:
error: invalid use of undefined type 'struct pollfd'
   pollfds[count_pollfds++].revents = 0;
   ^
/usr/local/src/network/git/libwebsockets/test-server/test-server.c:470:10:
error: dereferencing pointer to incomplete type
   pollfds[count_pollfds++].revents = 0;
          ^
/usr/local/src/network/git/libwebsockets/test-server/test-server.c:478:3:
error: invalid use of undefined type 'struct pollfd'
   pollfds[m] = pollfds[count_pollfds];
   ^
/usr/local/src/network/git/libwebsockets/test-server/test-server.c:478:10:
error: dereferencing pointer to incomplete type
   pollfds[m] = pollfds[count_pollfds];
          ^
/usr/local/src/network/git/libwebsockets/test-server/test-server.c:478:3:
error: invalid use of undefined type 'struct pollfd'
   pollfds[m] = pollfds[count_pollfds];

marty
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20150802/a30027ef/attachment.html>


More information about the Libwebsockets mailing list