GNOME Bugzilla – Bug 392112
[rfbsrc] doesn't build with MinGW
Last modified: 2007-01-05 14:06:05 UTC
See below for a patch that make rfbdecoder.c compile with MinGW For the link, -lwsock32 -lws2_32 are needed. I don't really know what is the best way to to that in configure.ac
Created attachment 79234 [details] [review] patch for the compilation of rfbdecoder.c with MinGW
in fact, only -lws2_32 is needed. If AC_CHECK_LIB is used, then the function to check is WSAStringToAddressA (for example)
> See below for a patch that make rfbdecoder.c compile with MinGW It's good that it compiles, but have you actually tested whether it works? :) For one, there seems to be WSAStartup() missing - is that not required for WSAStringToAddress() and connect() etc.? > For the link, -lwsock32 -lws2_32 are needed. I don't really know what is the > best way to to that in configure.ac The configure.ac in gst-plugins-good does this for example. For now I've only disabled compilation of rfbsrc if it can't find sys/socket.h. Hope that unbreaks compilation of gst-plugins-bad on MingW: 2007-01-05 Tim-Philipp Müller <tim at centricular dot net> * configure.ac: Don't compile rfbsource if we don't have sys/socket.h. Should fix compilation on MingW. If you have a patch to port rfbdecoder.c to winsock2 that you've tested and that works, please open a new bug report for that (or re-open this one).