On Jan 22, 2007, at 9:13 AM, Frank Barknecht wrote:
Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote:
could someone give me a hint how to compile a single-file c-source external ("externals/vbap/rvbap.c" to be honest) on Debian for Windows? I installed the three mingw32 packages, but I'm not clear how to actually use these to compile rvbap.dll
Maybe someone has a Makefile-snippet somewhere and could post it.
Hm, I got a bit further along with this by using the Makefile from Guenther's build system (which looks a bit easier to exploit than the huge extended Makefiles for now).
Now I get this:
$ CC=i586-mingw32msvc-cc make -f Makefile.mingw rvbap.dll i586-mingw32msvc-cc -mms-bitfields -Wall -W -Wshadow -Wstrict- prototypes -Wno-unused -Wno-parentheses -Wno-switch -O3 -march=i686 -mfpmath=sse -msse -DPD -DNT -D'drand48()=((double)rand()/ RAND_MAX)' -D'srand48(n)=srand((n))' -D'O_NONBLOCK=1' -I. -I.. - I../../pd/src -IC:/msys/1.0/include \ -o "rvbap.o" -c "rvbap.c" i586-mingw32msvc-cc -shared -LC:/msys/1.0/lib -L../../pd/bin -lpd - o "rvbap.dll" "rvbap.o" \ `test -f rvbap.libs && cat rvbap.libs` \ `test -f rvbap.libs && cat rvbap.libs` /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/ bin/ld: cannot find -lpd collect2: ld returned 1 exit status make: *** [rvbap.dll] Error 1
Oops, do I read this correctly, that on Windows (or *for* Windows) I need to have some kind of pd.dll to compile an external? And that means, I need to cross-compile Pd first?
Now this sounds like a much bigger task. My first try failed at m_sched.c, which is not finding pthread.h
I configured Pd with "./configure --host=i586-mingw32msvc -- target=i586-mingw32msvc".
As the clock is ticking for me, I would be really thankful if someone with a working Windows-compilation-setup could compile rvbap.dll for me. I would offer a really big beer for this, if I can get a hold of rvbap.dll before tomorrow, tuesday, 15:00 GMT+1. ;)
vbap is already compiled on Windows using externals/Makefile, so you don't need to rewrite or change anything. If you need to change CFLAGS, then you can do that like this:
cd pure-data/externals make CFLAGS="-whatever -something else" vbap
.hc
Ciao
Frank Barknecht _ ______footils.org_ __goto10.org__
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
------------------------------------------------------------------------
I spent 33 years and four months in active military service and during that period I spent most of my time as a high class muscle man for Big Business, for Wall Street and the bankers. - General Smedley Butler