Paul
Paul

Reputation: 198

How do you compile wxPython under cygwin?

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?

Upvotes: 4

Views: 3705

Answers (4)

cuble
cuble

Reputation: 306

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.  

Upvotes: 0

Jerry Penner
Jerry Penner

Reputation: 1359

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.

Upvotes: 5

Arafangion
Arafangion

Reputation: 11910

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".

Upvotes: 0

Sam Corder
Sam Corder

Reputation: 5422

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?

Upvotes: 3

Related Questions