Re: [Hamlib-developer] How to build latest sources using Cygwin
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Bill S. <g4...@cl...> - 2013-07-22 01:52:32
|
On 22/07/2013 02:08, Nate Bargmann wrote: Hi Nate, thanks for the quick reply. Sorry for the duplicate replies, I forgot to reply to the list. > * On 2013 21 Jul 19:43 -0500, Bill Somerville wrote: >> Hi, >> >> I have cloned the latest sources and want to build in Cygwin. >> >> I have the Cygwin mingw32 cross tools installed and expect to: >> >> ./configure --prefix=<my-install-dir> --host=i686-pc-mingw32 >> make >> make install >> >> Can someone enlighten me as to how I get to the point I can run >> configure please. > You should just need to run the autogen.sh script first. It's been a > couple of months since I tested on Cygwin (native, not using MinGW as I > use it from Linux) but so long as the Autotools are installed (Autoconf, > Automake, and Libtool) of the later versions it should work. > > While I did not use MinGW from within Cygwin, I was able to build in > Msys from a daily snapshot tarball. Ok I got passed the initial problems - was my fault - stupid Windoze line endings which I have now banished. Now I have a problem with the generated config.h ------------------------------------------------------------------------------------------- $ make Making all in libltdl make[1]: Entering directory `/cygdrive/c/Cygwin/home/bill/src/hamlib-code/libltdl' make all-am make[2]: Entering directory `/cygdrive/c/Cygwin/home/bill/src/hamlib-code/libltdl' CC loadlibrary.lo In file included from ../include/config.h:578:0, from libltdl/lt__private.h:35, from loaders/loadlibrary.c:32: /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 ../include/config.h:578:0, from libltdl/lt__private.h:35, from loaders/loadlibrary.c:32: /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, from ../include/config.h:491, from libltdl/lt__private.h:35, from loaders/loadlibrary.c:32: /usr/i686-pc-mingw32/sys-root/mingw/include/winsock.h:315:8: note: originally defined here Makefile:746: recipe for target `loadlibrary.lo' failed make[2]: *** [loadlibrary.lo] Error 1 make[2]: Leaving directory `/cygdrive/c/Cygwin/home/bill/src/hamlib-code/libltdl' Makefile:491: recipe for target `all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory `/cygdrive/c/Cygwin/home/bill/src/hamlib-code/libltdl' Makefile:511: recipe for target `all-recursive' failed make: *** [all-recursive] Error 1 ---------------------------------------------------------------------------------- Looks like including both windows.h and ws2tcpip.h is not valid unless WIN32_LEAN_AND_MEAN is defined. I get this info from http://msdn.microsoft.com/en-us/library/windows/desktop/ms738562%28v=vs.85%29.aspx I'm no autotools expert so not sure what to do here, any ideas? > > 73, de Nate >> > 73 Bill. |