Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] compiling again

Date2007-10-21 09:26
FromVictor Lazzarini
SubjectRe: [Cs-dev] compiling again
I had this error, this is because SConstruct
can't find the VST headers. It's actually
what I would describe as a PITA. I alerted the list,
but none cared to do anything about it.
You can do two things:
(a) don't compile with FLTK
(b) if you need FLTK, go and comment out
the following lines in H/widglobals.h:
(c) install the VST SDK where Michael Gogins
tells you to.

#ifdef CS_VSTHOST
/* for the moment, to be able to build FLTK
   without VST, until a fix is found */
/* #include "Opcodes/vst4cs/src/vsthost.h" */
#endif

I think this needs to be sorted out better, I
am really unhappy about it. This has to do with
the FLTK panel for VST host opcodes. But even if
you don't build with these, when scons reads
widglobals.h it tries to find all header files
listed there (and ignores #ifdefs). Then fails
because it can't find it.

But I think it's just a mess.

Victor

>
> I got one step further by installing an older version of
> scons that I had lying around (version 0.96). This gets me
> through to the actual building stag, but stops on this
> error:
>
> scons: done reading SConscript files.
> scons: Building targets ...
> scons: building terminated because of errors.
> scons: *** ParentOfRoot instance has no attribute
> 'must_be_a_Dir'
>
> What version of scons do you use ? Should it work with
> 0.96 ? >From a quick web search it seems that "older
> versions" (whatever that is) did not allow relative paths
> like ../ I would use the newest scons, but that one gives
> the UnicodeDecode errors for me.
>
> Oeyvind
>
> ----------------------------------------------------------
> --------------- This SF.net email is sponsored by: Splunk
> Inc. Still grepping through log files to find problems?
> Stop. Now Search log events and configuration files using
> AJAX and a browser. Download your FREE copy of Splunk now
> >> http://get.splunk.com/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-10-21 12:38
From"Oeyvind Brandtsegg"
SubjectRe: [Cs-dev] compiling again
AttachmentsNone  

Date2007-10-27 14:55
FromRory Walsh
Subject[Cs-dev] pointers in python? Csound API...
I'm trying to get my head around using Victors pvsOutGet() and 
pvsGenIn() API functions in python. As far as I can make out by calling 
pvsOutGet() the freq/amp pairings for a particular window are stored in 
a pointer to a PVSDATEXT data structure. The pvsOutGet() function id 
defined as

   virtual int PvsoutGet(PVSDATEXT* value, int n)
   {
     return csoundPvsoutGet(csound, value, n);
   }

in csound.hpp If I do something like this in my python code:

(...)
pvsData = csnd.PVSDATEXT
pvsData.N = 1024;
pvsData.format = 0;
pvsData.overlap = 256;
pvsData.winsize = 1024;
pvsData.frame = arange(1026);

csndInstance = csnd.CppSound()
csndInstance.setPythonMessageCallback()
csndInstance.Compile("pvsbus.csd")
perf = csnd.CsoundPerformanceThread(csndInstance)
perf.Play()
csndInstance.PvsoutGet(pvsData,0)
(...)

Passing pvsData to PvsoutGet results in the following error:

TypeError:in method 'Csound_PvsoutGet', argument 2 of type 'PVSDATEXT *'

In C/C++ I would use the address operator and do something like this:

csound->PvsoutGet(&pvsData, 0);

Can anyone help me with this? I'm sure there is a relatively easy way to 
do this, I just can't seem to find it. Cheers,

Rory.





-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net