David García Garzón
2014-02-12 19:53:56 UTC
This settings.cfg file is something from the past. And this message can
be considered a bug.
Provided that you are using SCons, you need to set with_sndfile flag on
the scons command line.
I recommend you to install such library (libsndfile) and set the flag to
1 unless you have strong reasons not to do so. That library provides the
ability to load and save many common audio file formats: WAV, AIFF, AU...
David.
including files that require this. Please fix your settings.cfg
http://clam-project.org/wiki/Constructing_and_playing_a_simple_network
--buildconfiguration=release --forcemodified test.cc .
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
call to non-static member function without an object argument
note: expanded from macro 'DYNAMIC_TYPE'
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
error: call to non-static member function without an object argument
0, ProcessingConfig);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE_USING_INTERFACE'
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReader.hxx:26:
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReaderConfig.hxx:41:3:
error: call to non-static member function without an object argument
MonoAudioFileReaderConfig, 3, ProcessingConfig );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE_USING_INTERFACE'
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
non-static member function without an object argument
note: expanded from macro 'DYNAMIC_TYPE_USING_INTERFACE'
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
error: USE_SNDFILE was not set to 1 in your settings.cfg file, but you
are including files that require this. Please fix your settings.cfg
you are including files that require this. Please fix your settings.cfg
call to non-static member function without an object argument
note: expanded from macro 'DYNAMIC_TYPE'
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
error: call to non-static member function without an object argument
note: expanded from macro 'DYNAMIC_TYPE'
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
instantiation of member function 'CLAM::XMLAdapter<int>::XMLContent'
requested here
instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<int>' requested here
note: expanded from macro 'DYN_ATTRIBUTE'
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
instantiation of member function
'CLAM::XMLAdapter<CLAM::AudioInFilename>::XMLContent' requested here
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReaderConfig.hxx:46:3:
note: in instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<CLAM::AudioInFilename>' requested here
note: expanded from macro 'DYN_ATTRIBUTE'
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
instantiation of member function 'CLAM::XMLAdapter<bool>::XMLContent'
requested here
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReaderConfig.hxx:57:3:
note: in instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<bool>' requested here
note: expanded from macro 'DYN_ATTRIBUTE'
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
instantiation of member function 'CLAM::XMLAdapter<float>::XMLContent'
requested here
instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<float>' requested here
note: expanded from macro 'DYN_ATTRIBUTE'
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
instantiation of member function 'CLAM::XMLAdapter<double>::XMLContent'
requested here
instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<double>' requested here
note: expanded from macro 'DYN_ATTRIBUTE'
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
instantiation of member function
'CLAM::XMLAdapter<CLAM::Text>::XMLContent' requested here
note: in instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<CLAM::Text>' requested here
note: expanded from macro 'DYN_ATTRIBUTE'
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
instantiation of member function 'CLAM::XMLAdapter<unsigned
int>::XMLContent' requested here
instantiation of member function 'CLAM::Array<float>::StoreBufferOn'
requested here
*)NULL, mpData, storage);
instantiation of member function 'CLAM::Array<float>::StoreOn' requested
here
note: expanded from macro 'DYN_ATTRIBUTE'
clam-devel mailing list
clam-devel at lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org
_______________________________________________
clam-devel mailing list
clam-devel at lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org
be considered a bug.
Provided that you are using SCons, you need to set with_sndfile flag on
the scons command line.
I recommend you to install such library (libsndfile) and set the flag to
1 unless you have strong reasons not to do so. That library provides the
ability to load and save many common audio file formats: WAV, AIFF, AU...
David.
Hi David,
thank you for your reply!
I'm using Xcode gcc, version 5.0 (clang 500.2.79). You were totally
right, I changed the file, it works. Now, I just had an error aboutthank you for your reply!
I'm using Xcode gcc, version 5.0 (clang 500.2.79). You were totally
In file included from
In file included from
USE_SNDFILE was not set to 1 in your settings.cfg file, but you areIn file included from
including files that require this. Please fix your settings.cfg
#error USE_SNDFILE was not set to 1 in your settings.cfg file, but you
are including files that require this. Please fix your settings.cfgI can't find this file under my workdir, just in the source file. Can
you help me with this too, please?Even if it's not a priority, there is a way to shutdown or solve the
annoying warnings?Il giorno 25/nov/2013, alle ore 02:15, David Garc?a Garz?n
http://clam-project.org/clam/trunk/CLAM/src/core/base/DynamicTypeMacros.hxxYour compiler (which one is it?) is right. That method, CheckAttribute,
should be static in order to be called without a 'this'.
Should be fixed on subversion revision 15443.
should be static in order to be called without a 'this'.
Should be fixed on subversion revision 15443.
Full CLAM recompilation required.
In Gcc, this template code is just instantiated when you set up a clam
dynamic type with bad indexes. Maybe your compiler is smarter or maybe
your testing code has a badly defined dynamic type, but, in the later
case, this error would avoid the proper error message to appear.
David.
In Gcc, this template code is just instantiated when you set up a clam
dynamic type with bad indexes. Maybe your compiler is smarter or maybe
your testing code has a badly defined dynamic type, but, in the later
case, this error would avoid the proper error message to appear.
David.
Hi!
I installed CLAM on a 10.9 OSX. I tried to compile this example
I installed CLAM on a 10.9 OSX. I tried to compile this example
SCons Build [prova] (started 2013-11-24 17:50:25)
/sw/bin/scons -j 1 --implicit-cache --verbosity=1
/sw/bin/scons -j 1 --implicit-cache --verbosity=1
scons: Reading SConscript files ...
checking for SconsBuilderDoxygen.py
checking for SconsBuilderDoxygen.py done
Building prova (release)
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: test.cc
scons: Nothing to be done for `test.cc'.
scons: building associated VariantDir targets: .build/release
Dependency test.cc is forced modified
Dependency test.cc is forced modified
SharedObject('.build/release/test.os')
In file included from
In file included from
In file included from
In file included from
checking for SconsBuilderDoxygen.py
checking for SconsBuilderDoxygen.py done
Building prova (release)
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: test.cc
scons: Nothing to be done for `test.cc'.
scons: building associated VariantDir targets: .build/release
Dependency test.cc is forced modified
Dependency test.cc is forced modified
SharedObject('.build/release/test.os')
In file included from
In file included from
In file included from
In file included from
return str!=NULL;
~~~^ ~~~~
In file included from
In file included from
In file included from
~~~^ ~~~~
In file included from
In file included from
In file included from
DYNAMIC_TYPE(Dummy, 1);
^~~~~~~~~~~~~~~~~~~~~~
^~~~~~~~~~~~~~~~~~~~~~
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
In file included from
^~~~~~~~~~~~~~
In file included from
In file included from
DYNAMIC_TYPE_USING_INTERFACE (NullProcessingConfig,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE_USING_INTERFACE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
^~~~~~~~~~~~~~
In file included from
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReaderConfig.hxx:41:3:
error: call to non-static member function without an object argument
DYNAMIC_TYPE_USING_INTERFACE(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE_USING_INTERFACE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
In file included from
/Applications/CLAM_dev/include/CLAM/Audio.hxx:49:3: error: call to
^~~~~~~~~~~~~~
In file included from
In file included from
/Applications/CLAM_dev/include/CLAM/Audio.hxx:49:3: error: call to
DYNAMIC_TYPE_USING_INTERFACE (Audio, 3, ProcessingData);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
In file included from
^~~~~~~~~~~~~~
In file included from
In file included from
are including files that require this. Please fix your settings.cfg
#error USE_SNDFILE was not set to 1 in your settings.cfg file, but
^
In file included from
In file included from
In file included from
In file included from
DYNAMIC_TYPE( AudioFileHeader, 7 );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
In file included from
^~~~~~~~~~~~~~
In file included from
In file included from
DYNAMIC_TYPE( AudioTextDescriptors, 6 );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
scons: building terminated because of errors.
In file included from
In file included from
In file included from
In file included from
^~~~~~~~~~~~~~
scons: building terminated because of errors.
In file included from
In file included from
In file included from
In file included from
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:456:2: note: in
^
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:456:2: note: in
'CLAM::DynamicType::StoreAttribute<int>' requested here
DYN_ATTRIBUTE(0, public, int, AnAttribute);
^
^
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
^
In file included from
In file included from
In file included from
In file included from
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
'CLAM::XMLAdapter<CLAM::AudioInFilename>::XMLContent' requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
^
note: in instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<CLAM::AudioInFilename>' requested here
DYN_ATTRIBUTE( 0, public, AudioInFilename, SourceFile );
^
^
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
^
In file included from
In file included from
In file included from
In file included from
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
^
note: in instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<bool>' requested here
DYN_ATTRIBUTE( 2, public, bool, Loop );
^
^
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
^
In file included from
In file included from
In file included from
In file included from
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/Audio.hxx:52:3: note: in
^
/Applications/CLAM_dev/include/CLAM/Audio.hxx:52:3: note: in
'CLAM::DynamicType::StoreAttribute<float>' requested here
DYN_ATTRIBUTE (0, public, TData, SampleRate);
^
^
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
^
In file included from
In file included from
In file included from
In file included from
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/Audio.hxx:54:3: note: in
^
/Applications/CLAM_dev/include/CLAM/Audio.hxx:54:3: note: in
'CLAM::DynamicType::StoreAttribute<double>' requested here
DYN_ATTRIBUTE (1, public, TTime, BeginTime);
^
^
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
^
In file included from
In file included from
In file included from
In file included from
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
'CLAM::XMLAdapter<CLAM::Text>::XMLContent' requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
^
'CLAM::DynamicType::StoreAttribute<CLAM::Text>' requested here
DYN_ATTRIBUTE( 0, public, Text, Artist );
^
^
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
^
In file included from
In file included from
In file included from
In file included from
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/Array.hxx:319:24: note: in
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/Array.hxx:319:24: note: in
int>::XMLContent' requested here
XMLAdapter<unsigned> sizeAdapter(Size(),"size");
^
/Applications/CLAM_dev/include/CLAM/Array.hxx:280:3: note: in
^
/Applications/CLAM_dev/include/CLAM/Array.hxx:280:3: note: in
requested here
StoreBufferOn((typename TypeInfo<T>::StorableAsLeaf
^
/Applications/CLAM_dev/include/CLAM/Audio.hxx:56:3: note: in
/Applications/CLAM_dev/include/CLAM/Audio.hxx:56:3: note: in
here
DYN_ATTRIBUTE (2, public, DataArray, Buffer);
^
^
TYPE obj; \
^
8 warnings and 7 errors generated.
scons: *** [.build/release/test.os] Error 1
SCons Build [prova](finished 2013-11-24 17:50:32)
I would really appreciate an help! Tnx very much!
Alessandra
_______________________________________________
clam-devel mailing list
clam-devel at lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org
_______________________________________________^
8 warnings and 7 errors generated.
scons: *** [.build/release/test.os] Error 1
SCons Build [prova](finished 2013-11-24 17:50:32)
I would really appreciate an help! Tnx very much!
Alessandra
_______________________________________________
clam-devel mailing list
clam-devel at lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org
clam-devel mailing list
clam-devel at lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org
clam-devel mailing list
clam-devel at lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org