[Bf-python] Problems building Blender on Win32/gcc with EXPYTHON=true

Florian Eggenberger florian.eggenberger at o-x.ch
Thu Jun 26 10:23:57 CEST 2003


Hi Chris,

I should know that. :-) I didn't check the def file
because i was sure there is everything in... hmm.

Two symbols are missing in python.def:
PyTuple_GetItem
PyTuple_Type

Blender compiles fine now.
I don't have a problem with adding the symbols.
It's really easy and it works.

Thanks!

Florian

> -----Original Message-----
> From: Chris Want [mailto:cwant at ualberta.ca] 
> Sent: Wednesday, June 25, 2003 6:47 PM
> To: bf-python at blender.org
> Subject: Re: [Bf-python] Problems building Blender on 
> Win32/gcc with EXPYTHON=true
> 
> 
> Hi Florian,
> 
> Try adding 'PyTuple_GetItem' to dlltool/python.def
> -- if that works I'll commit it when I get home.
> 
> (Background: this dlltool stuff recreates a stub
> library so gcc can link blender with the msvc compiled
> python22.dll -- the msvc created stub library does
> not work with gcc. The file python.def basically
> supplies a list of symbols that the dll will export
> to our stub library, and then these symbols -- and
> only these symbols -- can be used in our application.
> Everytime the expython team add new python calls we
> have to add new symbols to this file... bit of a
> pain, but at least it's easy work.)
> 
> Regards,
> Chris
> 
> 
> Florian Eggenberger wrote:
> > Hi,
> > 
> > After a cvs update I had the linking problem below when 
> compiling with
> > EXPYTHON=true.
> > The problem exists now for some time. Building with EXPYTHON=false
> > works.
> > So far I checked only if the FREE_WINDOWS flag affects 
> EXPYTHON in any
> > way. But that
> > should be ok. Perhaps I missed something.
> > 
> > Any hint would be welcome!
> > 
> > Thanks!
> > Florian
> > 
> > PS. Hope this time I use the correct email address. previous mails
> > bounced. :-(
> > Sorry Ton!!!
> > 
> > 
> ==============================================================
> ==========
> > =========
> > ...
> > ...
> > 
> /cygdrive/c/dev/blender/bf-blender/blender/obj/windows/blender
> /python/li
> > bpython.a(Particle.o)(.text+
> > 0xf95):Particle.c: undefined reference to `_imp__PyTuple_GetItem'
> > 
> /cygdrive/c/dev/blender/bf-blender/blender/obj/windows/blender
> /python/li
> > bpython.a(Particle.o)(.text+
> > 0xfdd):Particle.c: more undefined references to 
> `_imp__PyTuple_GetItem'
> > follow
> > make[1]: ***
> > 
> [/cygdrive/c/dev/blender/bf-blender/blender/obj/windows/bin/bl
> ender.exe]
> > Error 1
> > make: *** [all] Error 1
> > _______________________________________________
> > Bf-python mailing list
> > Bf-python at blender.org
> > http://www.blender.org/mailman/listinfo/bf-python
> 
> 
> 
> -- 
> Chris Want
> Research Computing Support
> Computing & Network Services
> University of Alberta
> Tel: 1-780-492-9418
> 
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://www.blender.org/mailman/listinfo/bf-python
> 



More information about the Bf-python mailing list