[PD-dev] cross-compiling w32-externals

Hans-Christoph Steiner hans at eds.org
Wed Jan 25 19:01:08 CET 2006


On Jan 25, 2006, at 4:20 AM, IOhannes m zmoelnig wrote:

> hi.
>
> yesterday i finally managed to cross-compile zexy for w32 on my  
> debian/gnu-linux system using the MinGW32 cross-compiler.
>
> while cross-compilation of other libraries (namely: iemmatrix) has  
> worked for quite a while, i ran into a problem which i don't really  
> understand:
> when compiling zexy with "-O2", pd cannot load the library and bails  
> out with "pd_new: apparently called before setup routine"
> iirc, this happens at loading time (i am loading the library with  
> "-lib zexy") and NOT when an object is created.
> when i compile zexy without optimizations, it loads fine.
>
> i haven't yet found time to track down the error to a special  
> optimization that is turned with "-O2".
>
> however, the same optimization-level (O2) with (say) "iemmatrix" does  
> not yield an error.
>
> turning on other optimizations (like SSE) is unproblematic.
>
> i am using pd-0.39-2.msw as found on miller's website. (actually it is  
> the mirror on ftp.iem.at that i use, but they should be identical (as  
> in "mirror"))
>
>
> does anybody has an idea what might be the cause of this behaviour?
>
>
> mfg.asd.r
> IOhannes
>
> PS: looking forward to the time where i can compile everything without  
> having to switch to w32.
> btw, is there a w32 cross-compiler setup at sourceforge?

I don't know what's on SourceForge, but it should be relatively easy to  
set up on Debian, I believe its all packaged:

http://rooster.stanford.edu/~ben/linux/cross.php

.hc

________________________________________________________________________ 
____

  As we enjoy great advantages from inventions of others, we should be  
glad of an opportunity to serve others by any invention of ours; and  
this we should do freely and generously.
                                                   - Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2353 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20060125/01be162a/attachment.bin>


More information about the Pd-dev mailing list