List Info

Thread: wxPython built on windows with GCC (cygwin/mingw)




wxPython built on windows with GCC (cygwin/mingw)
country flaguser name
France
2007-10-16 01:27:22
Hello.

I'm Edouard TISSERANT, from the wxSVG (www.wxsvg.org)
project (svg
renderer for wx with python bindings).
It works smoothly on Linux, and I've tried to port python
wrappers to
windows.

It is not possible to link C++ libraries from both VC++ and
GCC. In
other words to build C++ extensions for wxPython on windows
require
wxPython to be compiled with GCC, not visual studio.

This is the reason why I ported wxPython to mingw32 (using
cygwin as a
posix shell).

It is almost working but an important bug remain, and I
can't solve it :
It only works in python interactive mode ( python.exe -i ),
typing code
line one after the other...

I've written a wiki page for the whole procedure here :
http://www.mingw.org
/cms/node/17

I hope this port to mingw will contribute to the wxPython
project,
letting extensions be built for windows more easily and with
free tools.

Help would be very welcome.

Best regards

Edouard

-- 
LOLITech - TBI sarl
24, rue Pierre Evrat
88100 Saint-Dié des Vosges
tel: 03 29 52 95 67
fax: 03 29 58 93 16
http://www.lolitech.fr
	<http://www.lolitech.fr>





------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org


wxPython built on windows with GCC (cygwin/mingw)
country flaguser name
United States
2007-10-16 11:30:24
Hi Edouard,

On Oct 15, 2007, at 11:27 PM, Edouard TISSERANT wrote:

> Hello.
>
> I'm Edouard TISSERANT, from the wxSVG (www.wxsvg.org)
project (svg
> renderer for wx with python bindings).
> It works smoothly on Linux, and I've tried to port
python wrappers to
> windows.
>
> It is not possible to link C++ libraries from both VC++
and GCC.

What makes you think that? Have you read the Mingw FAQ on
this?

http:
//www.mingw.org/mingwfaq.shtml#faq-msvcdll

Regards,

Kevin

> In
> other words to build C++ extensions for wxPython on
windows require
> wxPython to be compiled with GCC, not visual studio.
>
> This is the reason why I ported wxPython to mingw32
(using cygwin as a
> posix shell).
>
> It is almost working but an important bug remain, and I
can't solve  
> it :
> It only works in python interactive mode ( python.exe
-i ), typing  
> code
> line one after the other...
>
> I've written a wiki page for the whole procedure here
:
> http://www.mingw.org
/cms/node/17
>
> I hope this port to mingw will contribute to the
wxPython project,
> letting extensions be built for windows more easily and
with free  
> tools.
>
> Help would be very welcome.
>
> Best regards
>
> Edouard
>
> -- 
> LOLITech - TBI sarl
> 24, rue Pierre Evrat
> 88100 Saint-Dié des Vosges
> tel: 03 29 52 95 67
> fax: 03 29 58 93 16
> http://www.lolitech.fr
	<http://www.lolitech.fr>

>
>
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: wx-dev-unsubscribelists.wxwidgets.org
> For additional commands, e-mail: wx-dev-helplists.wxwidgets.org
>


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org


wxPython built on windows with GCC (cygwin/mingw)
country flaguser name
United States
2007-10-16 14:03:21
Edouard TISSERANT wrote:
> Hello.
> 
> I'm Edouard TISSERANT, from the wxSVG (www.wxsvg.org)
project (svg
> renderer for wx with python bindings).
> It works smoothly on Linux, and I've tried to port
python wrappers to
> windows.
> 
> It is not possible to link C++ libraries from both VC++
and GCC. In
> other words to build C++ extensions for wxPython on
windows require
> wxPython to be compiled with GCC, not visual studio.
> 
> This is the reason why I ported wxPython to mingw32
(using cygwin as a
> posix shell).
> 
> It is almost working but an important bug remain, and I
can't solve it :
> It only works in python interactive mode ( python.exe
-i ), typing code
> line one after the other...
> 
> I've written a wiki page for the whole procedure here
:
> http://www.mingw.org
/cms/node/17
> 
> I hope this port to mingw will contribute to the
wxPython project,
> letting extensions be built for windows more easily and
with free tools.

Just a quick note to let you know I'm working on this,
hopefully more 
news later...

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java
give you jitters?  Relax with wxPython!


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org


wxPython built on windows with GCC (cygwin/mingw)
country flaguser name
United States
2007-10-16 19:02:55
Edouard TISSERANT wrote:
> Hello.
> 
> I'm Edouard TISSERANT, from the wxSVG (www.wxsvg.org)
project (svg
> renderer for wx with python bindings).
> It works smoothly on Linux, and I've tried to port
python wrappers to
> windows.
> 
> It is not possible to link C++ libraries from both VC++
and GCC. In
> other words to build C++ extensions for wxPython on
windows require
> wxPython to be compiled with GCC, not visual studio.
> 
> This is the reason why I ported wxPython to mingw32
(using cygwin as a
> posix shell).
> 
> It is almost working but an important bug remain, and I
can't solve it :
> It only works in python interactive mode ( python.exe
-i ), typing code
> line one after the other...
> 
> I've written a wiki page for the whole procedure here
:
> http://www.mingw.org
/cms/node/17

Well after waiting forever for the compiles to finish (now I
appreciate 
the speed of MSVC *much* more than before!) I'm not able to
duplicate 
the crash you are seeing.  Does it also crash if you do
"python 
sample.py" instead of using the execfile() from within
the interactive 
interpreter?  I'm able to run everything in the demo that I
tried, 
(except for the things that were automatically excluded by
configure or 
build options of course.)

My build is not an exact duplicate of yours.  I used the
current 2.8 
branch from the subversion repository, and I also changed
some of your 
instructions/patches along the way as I integrated them into
my sources 
to be more consistent and easier to coexist with the MSVC
build code. 
But I don't think I changed anything that would have changed
a crashing 
situation into a non-crashing one.

Anyway, I should have all this available in the 2.8.6.1
release in a few 
days, along with an updated BUILD.txt file.  Thanks a lot
for your work 
on this, I was a bit surprised that it required as few
changes to 
config.py as it does, and I was pleased to see that Python
2.5 already 
includes the libpython25.a file now instead of requiring us
to generate 
it as in earlier versions.  Now if it just didn't take 6
times as long 
(that's not an exaggeration, it's a very conservative guess)
to compile 
wx and wxPython as MSVC does it might actually be worth
using it.  

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java
give you jitters?  Relax with wxPython!


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )