Hi all,
I’m having trouble building wxpython on cygwin 1.7.16, with python 2.6.8.
It’s failing due to a problem with W32 sockets. Something similar was mentioned at
https://groups.google.com/forum/#!topic/wx-users/J1mV98oTn5U[1-25] and
http://trac.wxwidgets.org/ticket/11626 , but both of those links indicated that it
has been resolved.
Relevant portions of build log are attached. Any advice would be greatly appreciated!
Thanks,
Matt
(apologies for the xpost to wx-dev; I sent it there by accident while searching the
mailing lists for similar problems)
cygwin_build.txt (5.08 KB)
Robin
August 20, 2012, 5:22pm
2
Based on the fixes that were done for wx you might want to try tweaking config.py so it adds a define for __USE_W32_SOCKETS to the compilation commands. You should be able to just add an entry to the defines list in the appropriate block of code.
OTOH, I see that we already have this in wx/defs.h:
#if defined(__CYGWIN__) && defined(__WXMSW__)
#define __USE_W32_SOCKETS
#endif
So I would think that it would already have the define set since defs.h is one of the first headers included. Unless perhaps __CYGWIN__ is not being defined for some reason...
···
On 8/20/12 12:51 AM, mkeeter wrote:
Hi all,
I'm having trouble building wxpython on cygwin 1.7.16, with python 2.6.8.
It's failing due to a problem with W32 sockets. Something similar was
mentioned at
https://groups.google.com/forum/#!topic/wx-users/J1mV98oTn5U[1-25] and
http://trac.wxwidgets.org/ticket/11626 , but both of those links
indicated that it
has been resolved.
Relevant portions of build log are attached. Any advice would be
greatly appreciated!
--
Robin Dunn
Software Craftsman
I got it to compile, though it’s a bit of an ugly hack. There are two changes to include files,
needed to avoid signature mismatches:
In /usr/include/std/unistd.h, replace gethostname with gethostnameHACK
In /usr/include/sys/select.h, replace select with selectHACK
I also turned off BUILD_GLCANVAS and BUILD_GIZMOS in config.py, then compiled with
build-wxpython.py.
This fix was inspired by the self-described “NASTY HACK” on line 2770 of include/wx/defs.h,
which didn’t go far enough in resolving those signature conflicts.
Obviously, remember to change the files back after building.
-Matt
···
On Monday, August 20, 2012 7:51:22 PM UTC+12, mkeeter wrote:
Hi all,
I’m having trouble building wxpython on cygwin 1.7.16, with python 2.6.8.
It’s failing due to a problem with W32 sockets. Something similar was mentioned at
https://groups.google.com/forum/#!topic/wx-users/J1mV98oTn5U[1-25] and
http://trac.wxwidgets.org/ticket/11626 , but both of those links indicated that it
has been resolved.
Relevant portions of build log are attached. Any advice would be greatly appreciated!
Thanks,
Matt
(apologies for the xpost to wx-dev; I sent it there by accident while searching the
mailing lists for similar problems)