[PD] Re: (im)pd0.37.1-mingw

carmen ix at replic.net
Sat Mar 27 18:09:41 CET 2004


On Sat, Mar 27, 2004 at 05:52:40PM +0100, Tom Schouten wrote:

> did you by chance try a crosscompile from linux?
> maybe this is madness as the debian mingw packages i use are clearly
> marked experimental, but the first trials i did with the pdp core seem to
> build, including dlls (standalone pdp though, no pd)

havent tried that, my mac is running debian though so thx for the tip, could be interesting to have a script spit out fresh builds for all 3 platforms at once...

i relaly dont know much about C or makefiles/autoconf etc, but there appears to be a sort of chicken & egg situation with the linking, whereby youll need to change the pd.a and ptdcl.a to pd.lib and pdtcl.lib left over from previous windows compiles the first time you run it. this could absolutely just be me not knowing how to properly arrange stuff in the makefile though.

attached is the difff between the current -r impd_0_37 cvs and the mingw-happy version, if you feel like giving it a shot...
-------------- next part --------------
Index: d_soundfile.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/d_soundfile.c,v
retrieving revision 1.1.1.2.2.1
diff -r1.1.1.2.2.1 d_soundfile.c
20a21
> #include "pthread.h"
Index: m_sched.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/m_sched.c,v
retrieving revision 1.1.1.2.2.7.2.1
diff -r1.1.1.2.2.7.2.1 m_sched.c
20c20
< #include <pthread.h>
---
> #include "pthread.h"
Index: s_entry.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/s_entry.c,v
retrieving revision 1.1.1.2
diff -r1.1.1.2 s_entry.c
12,14d11
< #ifdef MSW
< #if 0
< #incldue "winbase.h"
16,46d12
< LONG NTAPI VectoredExceptionHandler(void *PEXCEPTION_POINTERS)
< {
< 	fprintf(stderr, "caught exception\n");
< 	return(EXCEPTION_CONTINUE_SEARCH);
< }
< 
< 
< int main(int argc, char **argv)
< {
<     printf("Pd entry point\n");
<     AddVectoredExceptionHandler(
<     ULONG FirstHandler,
<     PVECTORED_EXCEPTION_HANDLER VectoredHandler );
< 
< 
< #endif
< 
< #if 1
< int main(int argc, char **argv)
< {
<     __try
<     {
<         sys_main(argc, argv);
<     }
<     __finally
<     {
<         printf("caught an exception; stopping\n");
<     }
< }
< #endif
< #else /* not MSW */
51d16
< #endif
Index: s_inter.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/s_inter.c,v
retrieving revision 1.1.1.3.2.9
diff -r1.1.1.3.2.9 s_inter.c
56c56
< #define WISHAPP "wish83.exe"
---
> #define WISHAPP "wish85.exe"
Index: t_tkcmd.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/t_tkcmd.c,v
retrieving revision 1.1.1.4.4.4
diff -r1.1.1.4.4.4 t_tkcmd.c
37a38,43
> int
> main(int argc, char **argv)
> {
>     return 0;			/* Needed only to prevent compiler warning. */
> }
> 


More information about the Pd-list mailing list