473,385 Members | 1,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Embed+extend+port

Vio
My story: I played with a little embedded python
piece of code (python interpreter embedded in wxWidgets app),
and used SWIG to extend this embedded py interpreter.
I did it in Linux, after some ironing all builds and runs as expected.

On a particularily lazy day, I pasted these same wrapper sources to
Win32 (cygnus). After fiddling with the Makefile to point in the right
directions, compilation seems to go ok (give or take a couple of
warnings). But then the linking step chokes with unfriendly messages
like "undefined reference to _PyExit, _Py_Initialize, etc.".

Could someone tell me what this mean? My guess is that my linker is not
pointed at the right Python library, but could someone confirm/rebute
this? I'm pointing the linker (on win32) to -L"/Python23/libs" where
lives "python23.lib", as presumably I need an equivalent to Linux's
"/usr/local/lib/python2.3/config/libpython2.3.a", so I'm wondering if
I'm pointing at the right place on the win32 side, or even if I'd need
to compile Python on win32 (currently using some precompiled distro on
win32, while I recompiled Py on Linux). In other words, I'd like to do
all my development on Linux, and not have to redo the work on win32
(besides some cut&paste). If I sound like a win32 newbie, well, I also
like like one:)

Cheers,
Vio

PS I just read on the list some comments that wxWidgets+Python mix is
kinda slow. Bummer.

Jul 18 '05 #1
1 1578
Vio <vm*******@sympatico.ca> wrote in
news:ma**************************************@pyth on.org:
My story: I played with a little embedded python
piece of code (python interpreter embedded in wxWidgets app),
and used SWIG to extend this embedded py interpreter.
I did it in Linux, after some ironing all builds and runs as expected.
why someone would embedd a python interpreter but write the gui code some
some other language escapes me, but well ;-)
On a particularily lazy day, I pasted these same wrapper sources to
Win32 (cygnus). After fiddling with the Makefile to point in the right
directions, compilation seems to go ok (give or take a couple of
warnings). But then the linking step chokes with unfriendly messages
like "undefined reference to _PyExit, _Py_Initialize, etc.".

Could someone tell me what this mean? My guess is that my linker is not
pointed at the right Python library,
right. you need to create an import lib for gcc. thats done with pexports
and dlltool:

http://docs.python.org/inst/tweak-fl...00000000000000

also remember to use -mno-cygwin for gcc if you want to make native win32
apps with cygwin.
PS I just read on the list some comments that wxWidgets+Python mix is
kinda slow. Bummer.


is it too slow for _you_?
there are always people that say something is slow, even if it isn't
relevant in real world applications...

chris

--
Chris <cl******@gmx.net>

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.