Python embedded - linking problem on Linux - trying again

Kim Petersen kp at kyborg.dk
Mon Aug 12 10:37:36 EDT 2002


Gerhard Häring wrote:
> In article <3D57BD22.8090305 at kyborg.dk>, Kim Petersen wrote:
> 
>>When creating an embedded python in an RM/Cobol-85 interpretor, i have the
>>following problem:
>>
>>It seems that i have to link all the modules (the .so's) that i need with the
>>new dynamic link library, isn't it at all possible to make it (the python
>>embedded interpretor) just find the .so's like the regular interpretor does?
> 
> 
> What is your problem?
> 
> If it is finding which libraries to link against when embedding Python, does
> this FAQTS entry help?
> 
> http://www.faqts.com/knowledge_base/view.phtml/aid/11864/fid/606

unfortunatly not ;(

My problem is that i'm embedding - not extending. And when doing so, i 
miss the references to the dynamic linked modules (like _tkinter.so) 
_unless_ i specifically link them with the new .so (the embedded 
interpretor) - from my point of view i cannot understand why the 
embedded python doesn't look at the running standard interpretors path 
and setup - and use those modules (just like it does with the .py[c] 
modules.....

What i do at the moment is to just add all the .so's in lib-dynload to 
the linking process - but this doesn't capture all the .so's that are in 
site-python (and will never do so - since these may have been installed 
later than my compilation of the embedded interpretor)

Hopefully this clears up my question a bit?




>  
> Gerhard



-- 
Med Venlig Hilsen / Regards

Kim Petersen - Kyborg A/S
IT - Innovationshuset
Havnepladsen 2
7100 Vejle
Tlf. +4576408183 || Fax. +4576408188




More information about the Python-list mailing list