On Sat, Feb 21, 2004 at 07:45:38PM -0800, stevenyi wrote:
I downloaded Miller Puckette's pd-0.37-0 from his site just now and there was no pthread.h in the src directory, and also no pthread.h in the src directory on the pure-data.sf.net's cvs (browsing cvs web online). Maybe this is the problem?
That was one of the problem; I removed pthread.h from the source of pd-0.37-1test6 and it compiled. When I added "-mno-cygwin" to CFLAGS it complained that it was not possible to determine the operating system, so I added "#define FLEXT_OS FLEXT_OS_WIN" in flext.h and it compiled (there must be a better way).
Now I'd like to build a DLL instead of static libraries, but I can't replace "CFLAGS_T=-DFLEXT_THREADS" with "CFLAGS_T=-DFLEXT_SHARED", as instructed by Thomas, because this flag is for the msvc makefile, not the cygwin makefile. There's special tools included with Cygin to create DLLs, but I don't understand (yet) how to use them. Any help would be appreciated.
If I eventually succeed, I should be able to cross compile externals for Windows (and maybe MacOSX) directly from Linux. Am I too ambitious? -- Marc