[PD] External compilation linux->windows
alberto.zin at poste.it
alberto.zin at poste.it
Wed Apr 18 21:21:32 CEST 2007
Hi Nicolas,
I'm neither an expert of win compilation
(and do not have a direct answer to your question). Anyway
I found that the following commands in the
makefile usually works fine for building almost every
.dll on windows:
--------------
pd_win: $(NAME).dll
.SUFFIXES: .dll
WINCFLAGS = -DPD -DNT -W3 -WX -Werror -Wno-unused
-mms-bitfields\
-Wno-parentheses -Wno-switch -O6 -funroll-loops
-fomit-frame-pointer
WININCLUDE = -I../include
.c.dll:
gcc $(WINCFLAGS) $(WININCLUDE) -c -o $*.o $*.c
gcc $(LDFLAGS) -o $*.dll $*.o $(PDPATH)/bin/pd.dll
strip --strip-unneeded $*.dll
rm -f $*.o ../$*.dll
cp $*.dll $(DEST)
-----------------------------------------
of course change the path to your locations.
Note
1) the linker step is replaced by another call
to gcc.
2) everything is handled by MinGW gcc
hope that this can help...
Best,
Alberto Zin
http://puredata.org/Members/AlbertoZ
More information about the Pd-list
mailing list