How do I successfully build wxPython 2.9.2 on Mac OSX?

I've tried a few different solutions, and they've all failed. See the
attachments.

I did successfully build wxWidgets. I'm using Python 2.7, OS X 10.6
and would like to build a Cocoa port of wxPython. The SVN (trunk)
revision I've been using is from last week.

Every build seems to fail in the same place:
src/osx_cocoa/_controls_wrap.cpp: In function ‘void init_controls_()’:
src/osx_cocoa/_controls_wrap.cpp:56039: error: ‘wxST_MARKUP’ was not
declared in this scope
error: command 'gcc' failed with exit status 1
ERROR: failed building wxPython.

Attachments:
https://docs.google.com/leaf?id=0B9E2Q7PcWJ_8NzhlOWE2YjktMDMzMy00NWIzLTllOWItMWI0YWZlYWM0MmE3&hl=en&authkey=CMLp1ccB
https://docs.google.com/leaf?id=0B9E2Q7PcWJ_8NWFlMWQyYmYtYjI0MC00MTZmLTliYjUtMjBhOWRjMTg4NjRi&hl=en&authkey=CPOH2ZkC
https://docs.google.com/leaf?id=0B9E2Q7PcWJ_8ZWYwZGNlNWQtNmFmMC00M2NjLTljYjQtNThjZjc5NDYxNjlh&hl=en&authkey=CI6hrOMK

Hi Lassi,

Robin doesn't keep up with SVN trunk, since it changes quite frequently and requires frequent updates to the wrappers (and sometimes APIs get added, then removed a week later or replaced, etc.). Do you need to build off of trunk for some reason, or would using the latest wxPython-src tarball work for you?

Regards,

Kevin

···

On Mar 27, 2011, at 12:20 PM, Lassi Paavolainen wrote:

I've tried a few different solutions, and they've all failed. See the
attachments.

I did successfully build wxWidgets. I'm using Python 2.7, OS X 10.6
and would like to build a Cocoa port of wxPython. The SVN (trunk)
revision I've been using is from last week.

Every build seems to fail in the same place:
src/osx_cocoa/_controls_wrap.cpp: In function ‘void init_controls_()’:
src/osx_cocoa/_controls_wrap.cpp:56039: error: ‘wxST_MARKUP’ was not
declared in this scope
error: command 'gcc' failed with exit status 1
ERROR: failed building wxPython.

Attachments:
https://docs.google.com/leaf?id=0B9E2Q7PcWJ_8NzhlOWE2YjktMDMzMy00NWIzLTllOWItMWI0YWZlYWM0MmE3&hl=en&authkey=CMLp1ccB
https://docs.google.com/leaf?id=0B9E2Q7PcWJ_8NWFlMWQyYmYtYjI0MC00MTZmLTliYjUtMjBhOWRjMTg4NjRi&hl=en&authkey=CPOH2ZkC
https://docs.google.com/leaf?id=0B9E2Q7PcWJ_8ZWYwZGNlNWQtNmFmMC00M2NjLTljYjQtNThjZjc5NDYxNjlh&hl=en&authkey=CI6hrOMK

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Hi Kevin,

The reason why I tried to get code from SVN was that I had a problem
which Robin told me was fixed in 2.9.2. This thread is:
http://groups.google.com/group/wxpython-users/browse_thread/thread/e4fb41329570da27#

Latest wxPython-src tarball seems to be 2.9.1.1. So would it be better
just to wait until 2.9.2 is released (seems its not released for wx
yet) or try to hack source myself?

Best regards,
Lassi

···

On Mar 27, 11:09 pm, Kevin Ollivier <kevin-li...@theolliviers.com> wrote:

Hi Lassi,

Robin doesn't keep up with SVN trunk, since it changes quite frequently and requires frequent updates to the wrappers (and sometimes APIs get added, then removed a week later or replaced, etc.). Do you need to build off of trunk for some reason, or would using the latest wxPython-src tarball work for you?

Regards,

Kevin

On Mar 27, 2011, at 12:20 PM, Lassi Paavolainen wrote:

> I've tried a few different solutions, and they've all failed. See the
> attachments.

> I did successfully build wxWidgets. I'm using Python 2.7, OS X 10.6
> and would like to build a Cocoa port of wxPython. The SVN (trunk)
> revision I've been using is from last week.

> Every build seems to fail in the same place:
> src/osx_cocoa/_controls_wrap.cpp: In function ‘void init_controls_()’:
> src/osx_cocoa/_controls_wrap.cpp:56039: error: ‘wxST_MARKUP’ was not
> declared in this scope
> error: command 'gcc' failed with exit status 1
> ERROR: failed building wxPython.

> Attachments:
>https://docs.google.com/leaf?id=0B9E2Q7PcWJ_8NzhlOWE2YjktMDMzMy00NWIz
>https://docs.google.com/leaf?id=0B9E2Q7PcWJ_8NWFlMWQyYmYtYjI0MC00MTZm
>https://docs.google.com/leaf?id=0B9E2Q7PcWJ_8ZWYwZGNlNWQtNmFmMC00M2Nj

> --
> To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
> or visithttp://groups.google.com/group/wxPython-users?hl=en

You might try downloading Robin’s workspace:

https://groups.google.com/forum/#!topic/wxpython-dev/3X_537XZloY

The last time that I downloaded this was back in December, but at that point, he was working with 2.9.2 of wxwidgets.

Hi dhyams,

I downloaded Robin's workspace and building of wxPython went without
problems this time. Great!
Unfortunately this scrollpane error, why I originally started to build
it myself, is in that workspace as well.
Here is an image to show the problem:
https://picasaweb.google.com/lh/photo/JfLGj1uKIpkMC3eGXcKCZMaLVIsjScRalOwro1oBJDs?feat=directlink
Link to earlier thread where this problem is referenced:
http://www.google.com/url?sa=D&q=http://groups.google.com/group/wxpython-users/browse_thread/thread/e4fb41329570da27%23

Regards,
Lassi

···

On Mar 28, 5:05 pm, dhyams <dhy...@gmail.com> wrote:

You might try downloading Robin's workspace:

Redirecting to Google Groups

The last time that I downloaded this was back in December, but at that
point, he was working with 2.9.2 of wxwidgets.

For some reason I thought that this ticket had been closed:
http://trac.wxwidgets.org/ticket/12363

You may want to add a comment there to bring it back into Stefan's attention and so he knows that the problem still exists.

···

On 3/30/11 6:26 AM, Lassi Paavolainen wrote:

Hi dhyams,

I downloaded Robin's workspace and building of wxPython went without
problems this time. Great!
Unfortunately this scrollpane error, why I originally started to build
it myself, is in that workspace as well.
Here is an image to show the problem:
https://picasaweb.google.com/lh/photo/JfLGj1uKIpkMC3eGXcKCZMaLVIsjScRalOwro1oBJDs?feat=directlink
Link to earlier thread where this problem is referenced:
Redirecting

--
Robin Dunn
Software Craftsman