[PD-dev] cross-compiling linus-to-windows 64 bit using automake

IOhannes m zmölnig zmoelnig at iem.at
Wed Feb 21 09:51:34 CET 2018


On 02/19/2018 10:42 PM, Miller Puckette wrote:
> 'libtool' has a library dependency, -lmsvcrt , which breaks compilation.  It
> works just to delete it.
> 
> Somehow a 32-bit version of libwinpthread-1.dll gets installed - I have to
> manually replace it with a 64-bit one.

could it be (as lucas suspected) that both problems come from the 32bit
libraries embedded in the msw/pdprototype.tgz?

or put otherwise: when do the problems occur? during the `make` step or
during the `msw-app.sh` step?
> 
> When I try this for 8.6.8 I change the configuration line as follws:
> $s/configure --host=x86_64-w64-mingw32 \
>     --with-wish=wish86.exe \
>     CPPFLAGS='-DPD_LONGINTTYPE=__int64 -DWISH=\"wish86.exe\"'
> 
> It all builds fine and I'm able to run wish86.exe all right; but when I try
> to test it as in:
> 
> wine pd-0.48-1test2-ia64/bin/wish86.exe `pwd`/pd-0.48-1test2-ia64/tcl/pd-gui.tcl

how about "wine pd-0.48-1test2-ia64/bin/pd.exe"?

> 
> I get signs of memory corruption that I haven't been able to track down (my
> debugging statements in pd-gui.tcl generate binary garbage).  This seems to
> be an interaction between wine and tcl/tk and is almost certainly too deep
> for me to figure out.

"puts" never really worked for me on windows (not even in a proper VM).
i think this is related to char/widechar.
you might have more luck with logging to a file, something like

~~~
set logfile [open "pd-gui.log" "w" ]

# ...

puts $logfile "foo"
# ...
puts $logfile "bar"

~~~


fgmsadr
IOhannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20180221/073f1834/attachment.sig>


More information about the Pd-dev mailing list