| One point Istvan is making, but only implicitly, is that if your plugin has only one source code file, you do not need a makefile or a build system. You just need the right compiler commands, which you can put into a short shell script.
Regards,
Mike
-----Original Message-----
From: Istvan Varga
Sent: Sep 3, 2005 1:29 PM
To: csound-devel@lists.sourceforge.net
Subject: Re: [Cs-dev] adding plugin opcodes
Iain Duncan wrote:
> Great to hear Victor. That paper is so well done it really should be the
> basis for the users guide to adding opcodes! Thanks again. = )
>
> I'm going to experiment with adding one using mingw at work. Perhaps the
> results of that should be added as well. I think for windows, it would
> be good to have a guide to adding an opcode using free tools *without*
> having to recompile csound ( an arduous process on windoze! )
You can use the Csound 5 packages at http://csound.sourceforge.net/.
While these are not as up to date as CVS sources, but allow building
plugins or even host applications with MinGW without having to compile
Csound or any of the dependencies yourself.
For example, if you download and unpack csound5-2005-08-27.zip in C:\,
and cd to the top-level 'csound5' directory, then you can build and test
the attached simple plugin with the following commands:
set OPCODEDIR=C:\csound5\lib
set OPCODEDIR=C:\csound5\lib64
gcc -shared -Wall -O2 -I./src/H -o ./lib/myop.dll myop.c
or, for double precision
gcc -shared -Wall -O2 -I./src/H -DUSE_DOUBLE -o ./lib64/myop.dll myop.c
.\bin\csound32.exe -z
or, for double precision
.\bin\csound.exe -z
should list the new opcode.
To build a host application, include csound.h instead of csdl.h, and
link against bin/csound32.dll (or bin/csound64.dll if you want to use
double precision; do not forget -DUSE_DOUBLE then), and any other required
libraries (see src/Makefile-win32). -shared is not needed when linking
a host.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |