[CLAM] Writing Control Data to a File in Network Editor

Uğur Güney ugurguney at gmail.com
Mon Jul 28 02:55:11 PDT 2008


> Suggested readings:
> http://iua-share.upf.edu/wikis/clam/index.php/Building_a_processing_library
> http://iua-share.upf.edu/wikis/clam/index.php/Creating_a_minimal_processing_object
> http://iua-share.upf.edu/wikis/clam/index.php/Processings_with_controls
> http://iua-share.upf.edu/wikis/clam/index.php/Processings_with_configuration

# Hi,
# I understand that I have to create processing libraries which
includes my own processing objects. If I successfully compile and
install that library (using that scons script) they appear in the
object list of the Network Editor. Am I right? Then is it possible
that turning a .network patch to an standalone executable?

# I created three files in a directory. SConstruct, MyProcessing.hxx
and MyProcessing.cxx in a directory. Copied the lines from the wiki
page. And run the script. But get the errors below.
# I think I have to declare my own DataTypes. But is there a working
example which uses a native DataType, like Audio or Spectrum?

sokratesla at dune:~/myprocessinglibrary$ scons clam_prefix=/usr/local
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o MyProcessing.os -c -g -O3 -Wall -fPIC -DCLAM_FLOAT
-DUSE_PTHREADS=1 -DUSE_XERCES=1 -DCLAM_USE_XML -DUSE_LADSPA=1
-DUSE_SNDFILE=1 -DUSE_OGGVORBIS=1 -DWITH_VORBIS=1 -DUSE_MAD=1
-DWITH_MAD=1 -DUSE_ID3=1 -DUSE_ALSA=1 -DUSE_JACK=1 -DUSE_PORTAUDIO=1
-DUSE_FFTW3=1 -I/usr/local/include -I/usr/include/alsa
MyProcessing.cxx
In file included from MyProcessing.cxx:1:
MyProcessing.hxx:10:31: error: MyInputDataType.hxx: No such file or directory
MyProcessing.hxx:11:32: error: MyOutputDataType.hxx: No such file or directory
In file included from MyProcessing.cxx:1:
MyProcessing.hxx:15: error: 'MyInputDataType' was not declared in this scope
MyProcessing.hxx:15: error: template argument 1 is invalid
MyProcessing.hxx:16: error: 'MyOutputDataType' was not declared in this scope
MyProcessing.hxx:16: error: template argument 1 is invalid
MyProcessing.hxx:35: error: expected ',' or '...' before '&' token
MyProcessing.hxx:35: error: ISO C++ forbids declaration of
'MyInputDataType' with no type
MyProcessing.hxx: In constructor 'MyProcessing::MyProcessing(const
CLAM::NullProcessingConfig&)':
MyProcessing.hxx:21: error: member initializer expression list treated
as compound expression
MyProcessing.hxx:21: warning: left-hand operand of comma has no effect
MyProcessing.hxx:21: error: invalid conversion from 'MyProcessing*
const' to 'int'
MyProcessing.hxx:21: error: member initializer expression list treated
as compound expression
MyProcessing.hxx:21: warning: left-hand operand of comma has no effect
MyProcessing.hxx:21: error: invalid conversion from 'MyProcessing*
const' to 'int'
MyProcessing.hxx: In member function 'virtual bool MyProcessing::Do()':
MyProcessing.hxx:28: error: request for member 'GetData' in
'((MyProcessing*)this)->MyProcessing::mIn', which is of non-class type
'int'
MyProcessing.hxx:28: error: request for member 'GetData' in
'((MyProcessing*)this)->MyProcessing::mOut', which is of non-class
type 'int'
MyProcessing.hxx:30: error: request for member 'Consume' in
'((MyProcessing*)this)->MyProcessing::mIn', which is of non-class type
'int'
MyProcessing.hxx:31: error: request for member 'Produce' in
'((MyProcessing*)this)->MyProcessing::mOut', which is of non-class
type 'int'
MyProcessing.hxx: In member function 'bool MyProcessing::Do(int)':
MyProcessing.hxx:38: warning: no return statement in function returning non-void
scons: *** [MyProcessing.os] Error 1
scons: building terminated because of errors.




More information about the clam-users mailing list