Question

I am using CYGWIN as a platform and would like to use wxPython. Is there a way to get the source compiled and working in cygwin?

Was it helpful?

Solution

I found this link to build wxPython under Cygwin. To me this is a much better option than installing all the X11 stuff. I tried it out using wxPython-src-2.8.12.1, and following the instructions to a tee, it worked perfectly.

OTHER TIPS

You would need a full working X environment to get it to work. It would be much easier to just use Python and wxPython under plain vanilla Windows. Do you have a special case?

Isn't the whole point of using wxPython being to use WxWidgets? Isn't the whole point of using THAT being to have a cross platform GUI library?

In other words, forget about X11, and just use the native wxPython on windows.

If you want to avoid requiring the user to install wxPython and its dependencies, consider writing an installer. Alternatively, investigate py2exe to "compile" python to an .exe file (plus supporting .zip and .dll files), which is much more ammendable to "installing by merely copying files".

I tried another solution for using wxPython in cygwin:

  1. I installed python27 and wxPython in Windows7
  2. Did "echo 'export PATH=/cygdrive/c/Python27/:$PATH'>>~/.bashrc"
  3. Restart cygwin

It works. Cheer!

I don't know if any other Path should be added, but my program was executed on Fedora and it works on there.  

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top