Im unable to build wxPython from cvs for about a week.
First, compiler complains about line 958 in src/gtk/core_wrap.cpp:
src/gtk/core_wrap.cpp: In function `PyObject*
wxDropFilesEvent_GetFiles(wxDropFilesEvent*)':
src/gtk/core_wrap.cpp:958: error: cannot convert `*(files + (+(i * 4)))' from
type `wxString' to type `const char*'
error: command 'gcc' failed with exit status 1
But this is easy to fix by changing files[i] to files[i].c_str()
(advised by #wxwindows people).
Then there is a problem with contrib/ogl/gtk/ogl_wrap.cpp:
contrib/ogl/gtk/ogl_wrap.cpp: In function `PyObject*
_wrap_PyShape_NameRegions(PyObject*, PyObject*, PyObject*)':
contrib/ogl/gtk/ogl_wrap.cpp:5308: error: could not convert `""' to `const
wxString&'
error: command 'gcc' failed with exit status 1
This is easy to fix too by wrapping "" with _T().
And happiness was upon me. But not for too long...
icct@drumulator ..Windows/wxPython% cd demo
icct@drumulator ..ws/wxPython/demo% python demo.py
Traceback (most recent call last):
File "demo.py", line 3, in ?
import Main
File "/home/icct/cvs/wxWindows/wxPython/demo/Main.py", line 16, in ?
import wx # This module uses the new wx namespace
File "/usr/lib/python2.3/site-packages/wx/__init__.py", line 19, in ?
from wx.core import *
File "/usr/lib/python2.3/site-packages/wx/core.py", line 4, in ?
import _core
ImportError: /usr/lib/python2.3/site-packages/wx/_core.so: undefined symbol: _Z15wxPyMakeSwigPtrPvPKc
Im unable to build wxPython from cvs for about a week.
First, compiler complains about line 958 in src/gtk/core_wrap.cpp:
src/gtk/core_wrap.cpp: In function `PyObject* wxDropFilesEvent_GetFiles(wxDropFilesEvent*)':
src/gtk/core_wrap.cpp:958: error: cannot convert `*(files + (+(i * 4)))' from
type `wxString' to type `const char*'
I'm surprised this error hasn't shown up before... Fixed now.
error: command 'gcc' failed with exit status 1
But this is easy to fix by changing files[i] to files[i].c_str()
(advised by #wxwindows people).
Then there is a problem with contrib/ogl/gtk/ogl_wrap.cpp:
contrib/ogl/gtk/ogl_wrap.cpp: In function `PyObject* _wrap_PyShape_NameRegions(PyObject*, PyObject*, PyObject*)':
contrib/ogl/gtk/ogl_wrap.cpp:5308: error: could not convert `""' to `const
wxString&'
error: command 'gcc' failed with exit status 1
This is easy to fix too by wrapping "" with _T().
This too.
And happiness was upon me. But not for too long...
icct@drumulator ..Windows/wxPython% cd demo icct@drumulator ..ws/wxPython/demo% python demo.py Traceback (most recent call last):
File "demo.py", line 3, in ?
import Main
File "/home/icct/cvs/wxWindows/wxPython/demo/Main.py", line 16, in ?
import wx # This module uses the new wx namespace
File "/usr/lib/python2.3/site-packages/wx/__init__.py", line 19, in ?
from wx.core import *
File "/usr/lib/python2.3/site-packages/wx/core.py", line 4, in ?
import _core
ImportError: /usr/lib/python2.3/site-packages/wx/_core.so: undefined symbol: _Z15wxPyMakeSwigPtrPvPKc
I think I've fixed this one too. Please update from CVS and try again.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!