Sorry, it doesn't. This is how you build an opcode in Windows
gcc –02 -shared opcode.c -DUSE_DOUBLE –I/usr/local/include –I./H -o
opcode.dll
of course, you have to install the compiler and tools (minGW and MSYS).
Victor
On 19 Jun 2010, at 13:29, Brian Wong wrote:
>
> Hmm, it also assumes I am using linux, as usual.
> Nonetheless, I did not use the -DUSE_DOUBLE, so that is surely part
> of the problem. Thanks Victor, I will see if I can figure out how to
> make it work.
> Brian
>
> ----------------------------------------
>> From: csound-devel-request@...
>> Subject: Csound-devel Digest, Vol 50, Issue 37
>> To: csound-devel@...
>> Date: Sat, 19 Jun 2010 12:06:34 +0000
>>
>> Send Csound-devel mailing list submissions to
>> csound-devel@...
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> or, via email, send a message with subject or body 'help' to
>> csound-devel-request@...
>>
>> You can reach the person managing the list at
>> csound-devel-owner@...
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Csound-devel digest..."
>>
>>
>> Today's Topics:
>>
>> 1. Re: Adding plugins (Victor Lazzarini)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Sat, 19 Jun 2010 10:49:36 +0100
>> From: Victor Lazzarini
>> Subject: Re: [Cs-dev] Adding plugins
>> To: Developer discussions
>> Message-ID:
>> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed;
>> delsp=yes
>>
>> There is no real need to touch SConstruct, you can build the opcode
>> with a single gcc command. I think it might have been the case that
>> you did not add -DUSE_DOUBLE to the command-line
>> gcc ?02 -shared opcode.c -DUSE_DOUBLE ?I/usr/local/include ?I./H -o
>> opcode.dll
>>
>> this assumes you are at the top level csound sources directory and
>> opcode.c is your source code.
>>
>> Victor
>>
>> On 19 Jun 2010, at 10:36, Brian Wong wrote:
>>
>>>
>>> Victor asked that I move my discussion over to this forum. I am
>>> trying to get plugin opcodes working on a Windows XP machine using
>>> Csound 5.11-d. John Ffitch was kind enough to provide a link to
>>> obtain the necessary sndfile.h, which was missing previously from my
>>> system and preventing any of the example Csound opcode projects from
>>> compiling. Now that I have that file such projects compile, but
>>> still do not get recognized by Csound as new opcodes.
>>> I have tried this with both the crossfm opcodes provided in the
>>> Csound Journal article by Francois Pinot, and the examplePlugin.c
>>> included with the Csound distribution. Both of them compile now, but
>>> neither of them show up when I try csound -z from the command line.
>>> Victor asked that I include my source code, so here is a link to the
>>> crossfm article http://www.csounds.com/journal/issue12/crossfm.html
>>> - I simply put crossfm.c and crossfm.h in a project and built it as
>>> a dynamic link library. It compiled as a .dll, but csound does not
>>> recognize the new opcodes.
>>> The other exampleplugin.c comes in the Csound\pluginSDK directory. I
>>> stuck exampleplugin.c in a project directory and similarly built
>>> a .dll from it. Similarly it now compiles, but the resulting .dll is
>>> not recognized by csound.
>>> Now that I read the SCONSTUCT file, it seems maybe I should have
>>> been using this with custom.py, Msys shell and Python? This
>>> documentation is VERY unclear to me as a beginner. Is SCONSTRUCT the
>>> same as scons? Is that run before or after custom.py? SCONSTRUCT
>>> appears to be a python file from the syntax, so why would it be run
>>> from Msys? Why is it not a .py file? What are scons "tools" and
>>> where would I get them? And most pertinently, why did I think I
>>> would be able to quit smoking and attempt this?? ;) Brian Wong
>>>
>>> _________________________________________________________________
>>> MSN Dating: Find someone special. Start now.
>>> http://go.microsoft.com/?linkid=9734384
>>> ------------------------------------------------------------------------------
>>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>>> lucky parental unit. See the prize list and enter to win:
>>> http://p.sf.net/sfu/thinkgeek-promo
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@...
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>>
>>
>> ------------------------------
>>
>> ------------------------------------------------------------------------------
>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>> lucky parental unit. See the prize list and enter to win:
>> http://p.sf.net/sfu/thinkgeek-promo
>>
>> ------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@...
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> End of Csound-devel Digest, Vol 50, Issue 37
>> ********************************************
>
> _________________________________________________________________
> Turn down-time into play-time with Messenger games
> http://go.microsoft.com/?linkid=9734385
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel
|