Hi Robin,
Hai Nguyen wrote:
Hello All,
So after some updates to distutils - I’ve successfully built wxPython
2.8.7.1 using vs2005 on WindowsXP 64bit. I also built a
corresponding Python 2.5 to go along with it.
Please submit a patch with your changes.
Let me clean up the files a bit and I’ll subtmit a patch. Also think there’s some changes that are going into 2.6 or 3.0 that have similar changes for distutils.
The other things I had to change was this ScintillaWX.h( around line 114 ):
virtual long DefWndProc(unsigned int iMessage, unsigned long wParam, long lParam);
to:
virtual sptr_t DefWndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam);
and wxactivex.h and wxactivex.cpp:
long MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
to:
WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
The compiler had some problems matching the virtual function signatures because of the type differences. I didn’t spend a whole lot of time tracking down all the typedefs and defines to find out exactly what was causing it. I imagine there’s some 32bit vs 64bit difference on the long/int types that’s throwing compiler off - that’s just a guess though.
I’m having this weird issue that crashes when I mouse over my window.
The problem traces back to here:
window.cpp, line 5171
which reads:
wxMouseEvent
event(wxEVT_ENTER_WINDOW);
Has anyone ran into this before and can give me a hint as to where to
start looking for the problem?
That is definitely a strange place to crash, it’s a pretty simple
constructor. Have you tried building any of the wxWidgets C++ samples?
I was able to build and run minimal and aui from the C++ samples without problems.
I don’t know if this matters…but my installation of VS2005 had a problem converting the .dsp files that come in the wxPython source tree due to the line endings. I basically had to unix2dos them all via Cygwin.
I was also curious to if there’s any effort into building a Visual Studio project for building wxPython. If there is - where could I find any information about it? If there isn’t - is anyone interested in starting one? I am willing to put some time and energy into doing it - if it’s possible.
I work for a visual fx company and we use wxPython for a lot of our pipeline applications including tying it into Maya and Softimage’s XSI. It would’ve been nice if we could’ve just recompile for 64bit via Visual Studio. But - the command line way wasn’t so bad either.
···
On 2/15/08, Robin Dunn robin@alldunn.com wrote: