Hi!
I'm very new with Clam-1.4.0!
I followed the Devel/Mac OSX build wiki to install CLAM on a 10.9 OSX. But it 
fails to build with the following error:

##############################################
### BUILDING CLAM LIBRARIES                ###
##############################################
scons: done reading SConscript files.
scons: Building targets ...
== Compiling shared scons/libs/processing/src/SpectralEnvelopeExtract.cxx
In file included from scons/libs/processing/src/SpectralEnvelopeExtract.cxx:23:
In file included from 
scons/libs/processing/include/CLAM/SpectralEnvelopeExtract.hxx:25:
In file included from scons/libs/core/include/CLAM/Processing.hxx:32:
In file included from scons/libs/core/include/CLAM/ProcessingConfig.hxx:25:
In file included from scons/libs/core/include/CLAM/DynamicType.hxx:28:
scons/libs/core/include/CLAM/XMLAdapter.hxx:109:13: warning: comparison between 
NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
                return str!=NULL;
                       ~~~^ ~~~~
scons/libs/processing/src/SpectralEnvelopeExtract.cxx:56:88: error: addition of 
default argument on redeclaration makes this constructor a default constructor
        SpectralEnvelopeExtract::SpectralEnvelopeExtract(const 
SpectralEnvelopeExtractConfig &c = SpectralEnvelopeExtractConfig())
                                                                                
              ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scons/libs/processing/include/CLAM/SpectralEnvelopeExtract.hxx:66:3: note: 
previous declaration is here
                SpectralEnvelopeExtract(const SpectralEnvelopeExtractConfig &c);
                ^
In file included from scons/libs/processing/src/SpectralEnvelopeExtract.cxx:23:
In file included from 
scons/libs/processing/include/CLAM/SpectralEnvelopeExtract.hxx:25:
In file included from scons/libs/core/include/CLAM/Processing.hxx:32:
In file included from scons/libs/core/include/CLAM/ProcessingConfig.hxx:25:
In file included from scons/libs/core/include/CLAM/DynamicType.hxx:28:
scons/libs/core/include/CLAM/XMLAdapter.hxx:109:13: warning: comparison between 
NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
                return str!=NULL;
                       ~~~^ ~~~~
scons/libs/core/include/CLAM/DynamicType.hxx:323:32: note: in instantiation of 
member function 'CLAM::XMLAdapter<int>::XMLContent' requested here
                CLAM::XMLAdapter<AttribType> adapter(object, name, true);
                                             ^
scons/libs/processing/include/CLAM/SpectralEnvelopeExtractConfig.hxx:39:3: 
note: in instantiation of function template specialization
      'CLAM::DynamicType::StoreAttribute<int>' requested here
                DYN_ATTRIBUTE (1, public, int, MaxPeaks);
                ^
scons/libs/core/include/CLAM/DynamicTypeMacros.hxx:333:4: note: expanded from 
macro 'DYN_ATTRIBUTE'
                        StoreAttribute((CLAM::TypeInfo<TYPE 
>::StorableAsLeaf*)NULL, s, Get##NAME(), #NAME); \
                        ^
In file included from scons/libs/processing/src/SpectralEnvelopeExtract.cxx:23:
In file included from 
scons/libs/processing/include/CLAM/SpectralEnvelopeExtract.hxx:25:
In file included from scons/libs/core/include/CLAM/Processing.hxx:32:
In file included from scons/libs/core/include/CLAM/ProcessingConfig.hxx:25:
In file included from scons/libs/core/include/CLAM/DynamicType.hxx:28:
scons/libs/core/include/CLAM/XMLAdapter.hxx:109:13: warning: comparison between 
NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
                return str!=NULL;
                       ~~~^ ~~~~
scons/libs/core/include/CLAM/DynamicType.hxx:323:32: note: in instantiation of 
member function 'CLAM::XMLAdapter<float>::XMLContent' requested here
                CLAM::XMLAdapter<AttribType> adapter(object, name, true);
                                             ^
scons/libs/processing/include/CLAM/Spectrum.hxx:53:2: note: in instantiation of 
function template specialization 'CLAM::DynamicType::StoreAttribute<float>' 
requested
      here
        DYN_ATTRIBUTE (1, public, TData, SpectralRange);
        ^
scons/libs/core/include/CLAM/DynamicTypeMacros.hxx:333:4: note: expanded from 
macro 'DYN_ATTRIBUTE'
                        StoreAttribute((CLAM::TypeInfo<TYPE 
>::StorableAsLeaf*)NULL, s, Get##NAME(), #NAME); \
                        ^
In file included from scons/libs/processing/src/SpectralEnvelopeExtract.cxx:23:
In file included from 
scons/libs/processing/include/CLAM/SpectralEnvelopeExtract.hxx:25:
In file included from scons/libs/core/include/CLAM/Processing.hxx:32:
In file included from scons/libs/core/include/CLAM/ProcessingConfig.hxx:25:
In file included from scons/libs/core/include/CLAM/DynamicType.hxx:28:
scons/libs/core/include/CLAM/XMLAdapter.hxx:109:13: warning: comparison between 
NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
                return str!=NULL;
                       ~~~^ ~~~~
scons/libs/core/include/CLAM/DynamicType.hxx:323:32: note: in instantiation of 
member function 'CLAM::XMLAdapter<bool>::XMLContent' requested here
                CLAM::XMLAdapter<AttribType> adapter(object, name, true);
                                             ^
scons/libs/processing/include/CLAM/SpectralPeakArray.hxx:79:2: note: in 
instantiation of function template specialization 
'CLAM::DynamicType::StoreAttribute<bool>'
      requested here
        DYN_ATTRIBUTE (7, public, bool, MinimizeResizes);
        ^
scons/libs/core/include/CLAM/DynamicTypeMacros.hxx:333:4: note: expanded from 
macro 'DYN_ATTRIBUTE'
                        StoreAttribute((CLAM::TypeInfo<TYPE 
>::StorableAsLeaf*)NULL, s, Get##NAME(), #NAME); \
                        ^
In file included from scons/libs/processing/src/SpectralEnvelopeExtract.cxx:23:
In file included from 
scons/libs/processing/include/CLAM/SpectralEnvelopeExtract.hxx:25:
In file included from scons/libs/core/include/CLAM/Processing.hxx:32:
In file included from scons/libs/core/include/CLAM/ProcessingConfig.hxx:25:
In file included from scons/libs/core/include/CLAM/DynamicType.hxx:28:
scons/libs/core/include/CLAM/XMLAdapter.hxx:109:13: warning: comparison between 
NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
                return str!=NULL;
                       ~~~^ ~~~~
scons/libs/core/include/CLAM/Array.hxx:322:24: note: in instantiation of member 
function 'CLAM::XMLAdapter<unsigned int>::XMLContent' requested here
                XMLAdapter<unsigned> sizeAdapter(Size(),"size");
                                     ^
scons/libs/core/include/CLAM/Array.hxx:283:3: note: in instantiation of member 
function 'CLAM::Array<float>::StoreBufferOn' requested here
                StoreBufferOn((typename TypeInfo<T>::StorableAsLeaf *)NULL, 
mpData, storage);
                ^
scons/libs/processing/include/CLAM/Spectrum.hxx:59:28: note: in instantiation 
of member function 'CLAM::Array<float>::StoreOn' requested here
        DYN_ATTRIBUTE (4, public, DataArray, MagBuffer);
                                  ^
scons/libs/core/include/CLAM/DynamicTypeMacros.hxx:329:34: note: expanded from 
macro 'DYN_ATTRIBUTE'
        __COMMON_DYN_ATTRIBUTE(N,ACCESS,TYPE,NAME) \
                                        ^
scons/libs/core/include/CLAM/DynamicTypeMacros.hxx:226:37: note: expanded from 
macro '__COMMON_DYN_ATTRIBUTE'
                return static_cast<void*> (new(p) TYPE());\
                                                  ^
In file included from scons/libs/processing/src/SpectralEnvelopeExtract.cxx:23:
In file included from 
scons/libs/processing/include/CLAM/SpectralEnvelopeExtract.hxx:25:
In file included from scons/libs/core/include/CLAM/Processing.hxx:32:
In file included from scons/libs/core/include/CLAM/ProcessingConfig.hxx:25:
In file included from scons/libs/core/include/CLAM/DynamicType.hxx:28:
scons/libs/core/include/CLAM/XMLAdapter.hxx:109:13: warning: comparison between 
NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
                return str!=NULL;
                       ~~~^ ~~~~
scons/libs/core/include/CLAM/Array.hxx:365:18: note: in instantiation of member 
function 'CLAM::XMLAdapter<CLAM::ComplexTmpl<float> >::XMLContent' requested 
here
                        XMLAdapter<T> adapter(elem);
                                      ^
scons/libs/core/include/CLAM/Array.hxx:287:3: note: in instantiation of member 
function 'CLAM::Array<CLAM::ComplexTmpl<float> >::LoadBufferFrom' requested here
                LoadBufferFrom((typename TypeInfo<T>::StorableAsLeaf *)NULL, 
mpData, storage);
                ^
scons/libs/processing/include/CLAM/Spectrum.hxx:61:28: note: in instantiation 
of member function 'CLAM::Array<CLAM::ComplexTmpl<float> >::LoadFrom' requested 
here
        DYN_ATTRIBUTE (6, public, Array<Complex>, ComplexArray);
                                  ^
scons/libs/core/include/CLAM/DynamicTypeMacros.hxx:329:34: note: expanded from 
macro 'DYN_ATTRIBUTE'
        __COMMON_DYN_ATTRIBUTE(N,ACCESS,TYPE,NAME) \
                                        ^
scons/libs/core/include/CLAM/DynamicTypeMacros.hxx:226:37: note: expanded from 
macro '__COMMON_DYN_ATTRIBUTE'
                return static_cast<void*> (new(p) TYPE());\
                                                  ^
In file included from scons/libs/processing/src/SpectralEnvelopeExtract.cxx:23:
In file included from 
scons/libs/processing/include/CLAM/SpectralEnvelopeExtract.hxx:25:
In file included from scons/libs/core/include/CLAM/Processing.hxx:32:
In file included from scons/libs/core/include/CLAM/ProcessingConfig.hxx:25:
In file included from scons/libs/core/include/CLAM/DynamicType.hxx:28:
scons/libs/core/include/CLAM/XMLAdapter.hxx:109:13: warning: comparison between 
NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
                return str!=NULL;
                       ~~~^ ~~~~
scons/libs/core/include/CLAM/Array.hxx:365:18: note: in instantiation of member 
function 'CLAM::XMLAdapter<CLAM::PolarTmpl<float> >::XMLContent' requested here
                        XMLAdapter<T> adapter(elem);
                                      ^
scons/libs/core/include/CLAM/Array.hxx:287:3: note: in instantiation of member 
function 'CLAM::Array<CLAM::PolarTmpl<float> >::LoadBufferFrom' requested here
                LoadBufferFrom((typename TypeInfo<T>::StorableAsLeaf *)NULL, 
mpData, storage);
                ^
scons/libs/processing/include/CLAM/Spectrum.hxx:62:28: note: in instantiation 
of member function 'CLAM::Array<CLAM::PolarTmpl<float> >::LoadFrom' requested 
here
        DYN_ATTRIBUTE (7, public, Array<Polar>, PolarArray);
                                  ^
scons/libs/core/include/CLAM/DynamicTypeMacros.hxx:329:34: note: expanded from 
macro 'DYN_ATTRIBUTE'
        __COMMON_DYN_ATTRIBUTE(N,ACCESS,TYPE,NAME) \
                                        ^
scons/libs/core/include/CLAM/DynamicTypeMacros.hxx:226:37: note: expanded from 
macro '__COMMON_DYN_ATTRIBUTE'
                return static_cast<void*> (new(p) TYPE());\
                                                  ^
In file included from scons/libs/processing/src/SpectralEnvelopeExtract.cxx:23:
In file included from 
scons/libs/processing/include/CLAM/SpectralEnvelopeExtract.hxx:25:
In file included from scons/libs/core/include/CLAM/Processing.hxx:32:
In file included from scons/libs/core/include/CLAM/ProcessingConfig.hxx:25:
In file included from scons/libs/core/include/CLAM/DynamicType.hxx:28:
scons/libs/core/include/CLAM/XMLAdapter.hxx:109:13: warning: comparison between 
NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
                return str!=NULL;
                       ~~~^ ~~~~
scons/libs/core/include/CLAM/Array.hxx:365:18: note: in instantiation of member 
function 'CLAM::XMLAdapter<CLAM::PointTmpl<float, float> >::XMLContent' 
requested here
                        XMLAdapter<T> adapter(elem);
                                      ^
scons/libs/core/include/CLAM/Array.hxx:287:3: note: in instantiation of member 
function 'CLAM::Array<CLAM::PointTmpl<float, float> >::LoadBufferFrom' 
requested here
                LoadBufferFrom((typename TypeInfo<T>::StorableAsLeaf *)NULL, 
mpData, storage);
                ^
scons/libs/core/include/CLAM/BPFTmplDec.hxx:40:37: note: in instantiation of 
member function 'CLAM::Array<CLAM::PointTmpl<float, float> >::LoadFrom' 
requested here
        template <class TX,class TY> class BPFTmpl:public Component
                                           ^
8 warnings and 1 error generated.
scons: *** [scons/libs/processing/src/SpectralEnvelopeExtract.os] Error 1
scons: building terminated because of errors.


Please, can you help me? Tnx in advance!
Alessandra

ps: I hope this is not a duplicate! If it is so, I'm really sorry!!!!
_______________________________________________
clam-devel mailing list
clam-devel@lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org

Reply via email to