how to build wxpython from svn?

Hi,

I have a Mac OS X Lion laptop. wxpython 2.9.2.4 doesn’t build. I see changes for Lion compatibility were checked in two days ago (./src/osx/utils_osx.cpp; ./src/osx/window_osx.cpp). I’d like to build wxpython from SVN sources, but I couldn’t find instructions for checking out svn working copies. Are the commands posted somewhere?

Thanks in advance,

Ralf

http://wxwidgets.org/develop/svn.htm

Gadget/Steve

···

On 18/10/2011 11:16 PM, Ralf Grosse-Kunstleve wrote:

Hi,
I have a Mac OS X Lion laptop. wxpython 2.9.2.4 doesn't build. I see
changes for Lion compatibility were checked in two days ago
(./src/osx/utils_osx.cpp; ./src/osx/window_osx.cpp). I'd like to build
wxpython from SVN sources, but I couldn't find instructions for
checking out svn working copies. Are the commands posted somewhere?
Thanks in advance,
Ralf

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

Hi,
I have a Mac OS X Lion laptop. wxpython 2.9.2.4 doesn't build.

What errors are you getting?

I see
changes for Lion compatibility were checked in two days ago
(./src/osx/utils_osx.cpp; ./src/osx/window_osx.cpp). I'd like to build
wxpython from SVN sources, but I couldn't find instructions for checking
out svn working copies. Are the commands posted somewhere?

http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk/
http://svn.wxwidgets.org/svn/wx/wxPython/trunk/

Check those out in folders named wxWidgets and wxPython located next to each other, and read the instructions at http://wxpython.org/builddoc.php

Note that wxPython's trunk may or may not build at any given moment, as it's not always kept up to date with respect to changes in the wxWidgets tree.

···

On 10/18/11 3:16 PM, Ralf Grosse-Kunstleve wrote:

--
Robin Dunn
Software Craftsman

Thanks, this is very helpful.

I’m trying to build with this command:

…/…/bintbx_py272/base/bin/python ./build-wxpython.py --osx_cocoa --build_dir=…/bld

after making this change:

wxWidgets % svn diff

Index: build/tools/build-wxwidgets.py

···

===================================================================

— build/tools/build-wxwidgets.py (revision 69473)

+++ build/tools/build-wxwidgets.py (working copy)

  •                "--with-macosx-sdk=/Developer/SDKs/MacOSX10.5.sdk")
    
  •                "--with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk")
    

It succeeds building wxWidgets, but fails building wxPython:

src/osx_cocoa/_core_wrap.cpp: In function ‘PyObject* _wrap_SettableHeaderColumn_SetAsSortKey(PyObject*, PyObject*, PyObject*)’:

src/osx_cocoa/_core_wrap.cpp:69013: error: ‘class wxSettableHeaderColumn’ has no member named ‘SetAsSortKey’

Is there a way to say “keep going”, to get an idea how many more errors there are?

Ralf

On Wed, Oct 19, 2011 at 9:34 AM, Robin Dunn robin@alldunn.com wrote:

On 10/18/11 3:16 PM, Ralf Grosse-Kunstleve wrote:

Hi,

I have a Mac OS X Lion laptop. wxpython 2.9.2.4 doesn’t build.

What errors are you getting?

I see

changes for Lion compatibility were checked in two days ago

(./src/osx/utils_osx.cpp; ./src/osx/window_osx.cpp). I’d like to build

wxpython from SVN sources, but I couldn’t find instructions for checking

out svn working copies. Are the commands posted somewhere?

http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk/

http://svn.wxwidgets.org/svn/wx/wxPython/trunk/

Check those out in folders named wxWidgets and wxPython located next to each other, and read the instructions at http://wxpython.org/builddoc.php

Note that wxPython’s trunk may or may not build at any given moment, as it’s not always kept up to date with respect to changes in the wxWidgets tree.

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

Update your wxPython workspace and try again. I've just committed a bunch of changes including updates to the SWIG generated source files.

Robin Dunn
Software Craftsman

···

On 10/19/11 12:48 PM, Ralf Grosse-Kunstleve wrote:

Thanks, this is very helpful.
I'm trying to build with this command:

../../bintbx_py272/base/bin/python ./build-wxpython.py --osx_cocoa
--build_dir=../bld

after making this change:

wxWidgets % svn diff
Index: build/tools/build-wxwidgets.py

--- build/tools/build-wxwidgets.py(revision 69473)
+++ build/tools/build-wxwidgets.py(working copy)
...
- "--with-macosx-sdk=/Developer/SDKs/MacOSX10.5.sdk")
+ "--with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk")

It succeeds building wxWidgets, but fails building wxPython:

src/osx_cocoa/_core_wrap.cpp: In function �PyObject*
_wrap_SettableHeaderColumn_SetAsSortKey(PyObject*, PyObject*, PyObject*)�:
src/osx_cocoa/_core_wrap.cpp:69013: error: �class
wxSettableHeaderColumn� has no member named �SetAsSortKey�

Is there a way to say "keep going", to get an idea how many more errors
there are?

svn update got revision 69479.

With this the build ran to completion.

After seeing PYTHONPATH and DYLD_LIBRARY_PATH as shown at the end of the build output:

% …/…/bintbx_py272/base/bin/python demo/demo.py

Traceback (most recent call last):

File “demo/demo.py”, line 3, in

import Main

File “/Users/rwgk/wxsrc/wxPython/demo/Main.py”, line 60, in

import wx.aui

File “/Users/rwgk/wxsrc/wxPython/wx/aui.py”, line 1068, in

class AuiNotebookEvent(object):

File “/Users/rwgk/wxsrc/wxPython/wx/aui.py”, line 1088, in AuiNotebookEvent

OldSelection = property(GetOldSelection,SetOldSelection,doc="See `GetOldSelection` and `SetOldSelection`") 

NameError: name ‘GetOldSelection’ is not defined

(This may not actually be a problem for us.)

Thanks!

Ralf

···

On Wed, Oct 19, 2011 at 2:00 PM, Robin Dunn robin@alldunn.com wrote:

On 10/19/11 12:48 PM, Ralf Grosse-Kunstleve wrote:

Thanks, this is very helpful.

I’m trying to build with this command:

…/…/bintbx_py272/base/bin/python ./build-wxpython.py --osx_cocoa

–build_dir=…/bld

after making this change:

wxWidgets % svn diff

Index: build/tools/build-wxwidgets.py

===================================================================

— build/tools/build-wxwidgets.py(revision 69473)

+++ build/tools/build-wxwidgets.py(working copy)

  • “–with-macosx-sdk=/Developer/SDKs/MacOSX10.5.sdk”)
  • “–with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk”)

It succeeds building wxWidgets, but fails building wxPython:

src/osx_cocoa/_core_wrap.cpp: In function ‘PyObject*

_wrap_SettableHeaderColumn_SetAsSortKey(PyObject*, PyObject*, PyObject*)’:

src/osx_cocoa/_core_wrap.cpp:69013: error: ‘class

wxSettableHeaderColumn’ has no member named ‘SetAsSortKey’

Is there a way to say “keep going”, to get an idea how many more errors

there are?

Update your wxPython workspace and try again. I’ve just committed a bunch of changes including updates to the SWIG generated source files.

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

Update your wxPython workspace again and rebuild. I had to rearrange some things to accommodate some changes in wxAUI and some other things.

···

On 10/19/11 2:57 PM, Ralf Grosse-Kunstleve wrote:

svn update got revision 69479.
With this the build ran to completion.
After seeing PYTHONPATH and DYLD_LIBRARY_PATH as shown at the end of the
build output:

% ../../bintbx_py272/base/bin/python demo/demo.py
Traceback (most recent call last):
   File "demo/demo.py", line 3, in <module>
     import Main
   File "/Users/rwgk/wxsrc/wxPython/demo/Main.py", line 60, in <module>
     import wx.aui
   File "/Users/rwgk/wxsrc/wxPython/wx/aui.py", line 1068, in <module>
     class AuiNotebookEvent(object):
   File "/Users/rwgk/wxsrc/wxPython/wx/aui.py", line 1088, in
AuiNotebookEvent
     OldSelection = property(GetOldSelection,SetOldSelection,doc="See
`GetOldSelection` and `SetOldSelection`")
NameError: name 'GetOldSelection' is not defined

(This may not actually be a problem for us.)

--
Robin Dunn
Software Craftsman

Yes, success with the demo!

Thanks a lot!

For the record: wxWidgets svn rev. 69473, wxPython svn rev. 69484

When I add --install to the same command that successfully builds the demo I get errors. The command is:

…/…/bintbx_py272_fw/base/bin/python ./build-wxpython.py --osx_cocoa --build_dir=…/bld --prefix=…/…/bintbx_py272_fw/base --install

The full log is here:

http://cci.lbl.gov/~rwgk/tmp/wxpython_install_log_2011_10_19

···

On Wed, Oct 19, 2011 at 9:41 PM, Robin Dunn robin@alldunn.com wrote:

On 10/19/11 2:57 PM, Ralf Grosse-Kunstleve wrote:

svn update got revision 69479.

With this the build ran to completion.

After seeing PYTHONPATH and DYLD_LIBRARY_PATH as shown at the end of the

build output:

% …/…/bintbx_py272/base/bin/python demo/demo.py

Traceback (most recent call last):

File “demo/demo.py”, line 3, in

 import Main

File “/Users/rwgk/wxsrc/wxPython/demo/Main.py”, line 60, in

 import wx.aui

File “/Users/rwgk/wxsrc/wxPython/wx/aui.py”, line 1068, in

 class AuiNotebookEvent(object):

File “/Users/rwgk/wxsrc/wxPython/wx/aui.py”, line 1088, in

AuiNotebookEvent

 OldSelection = property(GetOldSelection,SetOldSelection,doc="See

GetOldSelection and SetOldSelection")

NameError: name ‘GetOldSelection’ is not defined

(This may not actually be a problem for us.)

Update your wxPython workspace again and rebuild. I had to rearrange some things to accommodate some changes in wxAUI and some other things.

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en