[Libwebsockets] [libwebsockets] #78: does not cross compie with mingw on linux

Trac trac at libwebsockets.org
Tue Jul 15 03:05:51 CEST 2014

#78: does not cross compie with mingw on linux
 Reporter:  travnick               |      Owner:
     Type:  defect                 |     Status:  new
 Priority:  major                  |  Milestone:
Component:  libwebsockets library  |    Version:
 Keywords:  mingw                  |
 I'm trying to create mingw package for archlinux but while compiling with
 mingw there are many errors like using
 (const unsigned char *) since function expects (const char *) and so one.

 I'm not able to fix that, because simply casting things may destroy the
 world since I have no idea about internals of the project.

 I'm not giving full trace because it's reproducible. Just use mingw in
 your cmake.
 cmake arguments:

 # ...
 _architectures="i686-w64-mingw32 x86_64-w64-mingw32"
   # ...
   for _arch in ${_architectures}; do
     # ...
     ${_arch}-cmake \
       -DCMAKE_BUILD_TYPE:String=Release \

   # ...

Ticket URL: <http://libwebsockets.org/trac/libwebsockets/ticket/78>
libwebsockets <http://libwebsockets.org>
libwebsockets C library

More information about the Libwebsockets mailing list