Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#11867 closed build error (fixed)

Mac OS X 10.6 (snow leopard): building wxPython trunk 63782 fails on propgrid_wrap.cpp

Reported by: jjstickel Owned by:
Priority: normal Milestone:
Component: wxPython Version: stable-latest
Keywords: Mac, 10.6, propgrid Cc:
Blocked By: Blocking:
Patch: no

Description

I am attempt build wxpython, 64 bit, with coca, using SVN trunk. I configured, built, and installed wxwidgets with:

../configure --with-osx_cocoa --with-macosx-version-min=10.5 --with-libjpeg  --with-libtiff --with-libpng --with-zlib --with-opengl --enable-unicode  --enable-display --enable-monolithic 

When I try to build wxpython with:

python setup.py build WXPORT=osx_cocoa

I get the following error:

src/osx_cocoa/propgrid_wrap.cpp: In function ‘bool PyObject_to_wxVariant(PyObject*, wxVariant*)’:
src/osx_cocoa/propgrid_wrap.cpp:3173: warning: deprecated conversion from string constant to ‘char*’
src/osx_cocoa/propgrid_wrap.cpp:3173: warning: deprecated conversion from string constant to ‘char*’
src/osx_cocoa/propgrid_wrap.cpp: In function ‘PyObject* wxPGAttributeStorage_to_PyObject(const wxPGAttributeStorage*)’:
src/osx_cocoa/propgrid_wrap.cpp:3642: warning: unused variable ‘res’
src/osx_cocoa/propgrid_wrap.cpp: In function ‘PyObject* _wrap_PGProperty_HasFlag(PyObject*, PyObject*, PyObject*)’:
src/osx_cocoa/propgrid_wrap.cpp:18161: error: invalid conversion from ‘wxUint32’ to ‘wxPGPropertyFlags’
src/osx_cocoa/propgrid_wrap.cpp:18161: error:   initializing argument 1 of ‘wxUint32 wxPGProperty::HasFlag(wxPGPropertyFlags) const’
src/osx_cocoa/propgrid_wrap.cpp: In function ‘PyObject* _wrap_PGProperty_SetFlag(PyObject*, PyObject*, PyObject*)’:
src/osx_cocoa/propgrid_wrap.cpp:20082: error: invalid conversion from ‘wxUint32’ to ‘wxPGPropertyFlags’
src/osx_cocoa/propgrid_wrap.cpp:20082: error:   initializing argument 1 of ‘void wxPGProperty::SetFlag(wxPGPropertyFlags)’
src/osx_cocoa/propgrid_wrap.cpp: In function ‘PyObject* _wrap_PGProperty_ChangeFlag(PyObject*, PyObject*, PyObject*)’:
src/osx_cocoa/propgrid_wrap.cpp:20129: error: invalid conversion from ‘wxUint32’ to ‘wxPGPropertyFlags’
src/osx_cocoa/propgrid_wrap.cpp:20129: error:   initializing argument 1 of ‘void wxPGProperty::ChangeFlag(wxPGPropertyFlags, bool)’
src/osx_cocoa/propgrid_wrap.cpp: In function ‘PyObject* _wrap_PGProperty_SetFlagRecursively(PyObject*, PyObject*, PyObject*)’:
src/osx_cocoa/propgrid_wrap.cpp:20176: error: invalid conversion from ‘wxUint32’ to ‘wxPGPropertyFlags’
src/osx_cocoa/propgrid_wrap.cpp:20176: error:   initializing argument 1 of ‘void wxPGProperty::SetFlagRecursively(wxPGPropertyFlags, bool)’
error: command '/usr/bin/gcc-4.2' failed with exit status 1

Change History (3)

comment:1 Changed 10 years ago by robind

  • Resolution set to fixed
  • Status changed from new to closed

Newly swigged files committed.

comment:2 follow-up: Changed 10 years ago by arobson73

robind, does this mean wxPython now builds on snow leopard ?.

comment:3 in reply to: ↑ 2 Changed 10 years ago by jjstickel

Replying to arobson73:

robind, does this mean wxPython now builds on snow leopard ?.

I can confirm that I was able to build wxwidgets and wxpython from svn as of 3/30/10 on Snow Leopard using cocoa. However, I found the features to be buggy and am pursuing another solution for macports use. I will report on one or more of the macports tickets soon.

Note: See TracTickets for help on using tickets.