[Mono-dev] Building mono on Windows issues.
Alex J Lennon
ajlennon at dynamicdevices.co.uk
Thu Oct 16 06:45:30 UTC 2014
On 16/10/2014 00:17, Chris Eelmaa wrote:
> Hello all,
>
> I have question regarding building mono on windows,
> namely I've tried a lot of times, and had a lot of different
> problems(such as missing some dependencies, git converting *.sh files
> to CRLF ending and cygwin not being able to interpret them, etc..)
>
> however I've reached now to a point where I can run `make` for a little while,
> and then receive the error:
>
> In file included from socket-io.c:30:0:
> /usr/i686-pc-mingw32/sys-root/mingw/include/ws2tcpip.h:38:2: error:
> #error "ws2tcpip.h is not compatible with winsock.h. Include
> winsock2.h instead."
> In file included from socket-io.c:30:0:
> /usr/i686-pc-mingw32/sys-root/mingw/include/ws2tcpip.h:147:8: error:
> redefinition of 'struct ip_mreq'
> In file included from
> /usr/i686-pc-mingw32/sys-root/mingw/include/windows.h:93:0,
>
>
> As you can see, winsock.h doesn't play well with ws2tcpip.h. I ran a
> grep to look for winsock.h from mono dir, but there's nothing about
> that. That file seems to be crawling in from some arbitrary place?!
>
>
> After that, I tried to compile with DISABLE_SOCKETS, and then I
> arrived to this place:
>
> ./.libs/libmini.a(libmini_la-debugger-agent.o): In function
> `socket_transport_connect':
> /cygdrive/c/GITHUB/mono/mono/mini/debugger-agent.c:1236: undefined
> reference to `mono_network_init'
>
>
>
> At this point, I have no idea what to do. Is mono master branch
> broken, or is it possible to actually build it with Windows from
> there? Can anyone confirm? Do I have messed up Windows SDK or
> something similiar?
>
Hi Chris,
I put this together precisely because it's such a problem -
http://www.codeproject.com/Articles/815565/How-to-build-Mono-on-Windows
I've tested various iterations and had feedback that others have found
it doesn't work.
Periodically git master doesn't build but I don't have the time to track
that. I will be updating
next time I discover there's a new release.
Cheers,
Alex
More information about the Mono-devel-list
mailing list