nlprocby / RHVoice

Community fork of RHVoice speech synthesizer from Olga Yakovleva
GNU Lesser General Public License v3.0
6 stars 0 forks source link

OSX compile error: reference to non-static member function must be called #4

Closed yauhen-info closed 9 years ago

yauhen-info commented 9 years ago

3

localhost:RHVoice yauhen$ scons
scons: Reading SConscript files ...
Mkdir("build/darwin")
Checking whether the C compiler works... (cached) yes
Checking whether the C++ compiler works... (cached) yes
Checking for pkg-config... (cached) yes
Checking for libpulse-simple... (cached) no
Checking for ao... (cached) no
Checking for portaudio-2.0... (cached) no
Checking for giomm-2.4... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/darwin/lib/lib.os -c -std=c++03 -O2 -pthread -fPIC -DRHVOICE=1 -DPACKAGE=\"RHVoice\" -DVERSION=\"0.5.1\" -Ibuild/darwin/lib -Isrc/lib -Isrc/include -Isrc/third-party/utf8 -Isrc/third-party/tclap -Isrc/third-party/sonic -Isrc/third-party/rapidxml -Isrc/third-party/mage -Isrc/third-party/hts_engine src/lib/lib.cpp
In file included from src/lib/lib.cpp:23:
In file included from src/include/core/document.hpp:31:
In file included from src/include/core/ssml.hpp:22:
src/include/core/xml.hpp:361:15: error: reference to non-static member function must be called
      xml_doc.parse<rapidxml::parse_non_destructive>(&xml_text[0]);
      ~~~~~~~~^~~~~
src/include/core/document.hpp:577:12: note: in instantiation of function template specialization 'RHVoice::xml::parser<char>::parse<const char *>' requested here
    parser.parse(text_start,text_end,*doc_ptr);
           ^
src/lib/lib.cpp:223:25: note: in instantiation of function template specialization 'RHVoice::document::create_from_ssml<const char *>' requested here
      doc_ptr=document::create_from_ssml(engine_ptr,text,text+length,profile);
                        ^
src/lib/lib.cpp:119:17: note: in instantiation of function template specialization 'RHVoice_message_struct::RHVoice_message_struct<char>' requested here
    return (new RHVoice_message_struct(engine_ptr,callbacks,text,length,message_type,synth_params,user_data));
                ^
src/lib/lib.cpp:329:39: note: in instantiation of function template specialization 'RHVoice_tts_engine_struct::new_message<char>' requested here
      return (tts_engine?(tts_engine->new_message(text,length,message_type,synth_params,user_data)):0);
                                      ^
src/third-party/rapidxml/rapidxml/rapidxml.hpp:1381:14: note: possible target for call
        void parse(Ch *text)
             ^
In file included from src/lib/lib.cpp:23:
In file included from src/include/core/document.hpp:31:
In file included from src/include/core/ssml.hpp:22:
src/include/core/xml.hpp:361:15: error: reference to non-static member function must be called
      xml_doc.parse<rapidxml::parse_non_destructive>(&xml_text[0]);
 ~~~~~~~~^~~~~
src/include/core/document.hpp:577:12: note: in instantiation of function template specialization 'RHVoice::xml::parser<wchar_t>::parse<const wchar_t *>' requested here
    parser.parse(text_start,text_end,*doc_ptr);
           ^
src/lib/lib.cpp:223:25: note: in instantiation of function template specialization 'RHVoice::document::create_from_ssml<const wchar_t *>' requested here
      doc_ptr=document::create_from_ssml(engine_ptr,text,text+length,profile);
                        ^
src/lib/lib.cpp:119:17: note: in instantiation of function template specialization 'RHVoice_message_struct::RHVoice_message_struct<wchar_t>' requested here
    return (new RHVoice_message_struct(engine_ptr,callbacks,text,length,message_type,synth_params,user_data));
                ^
src/lib/lib.cpp:343:39: note: in instantiation of function template specialization 'RHVoice_tts_engine_struct::new_message<wchar_t>' requested here
      return (tts_engine?(tts_engine->new_message(text,length,message_type,synth_params,user_data)):0);
                                      ^
src/third-party/rapidxml/rapidxml/rapidxml.hpp:1381:14: note: possible target for call
        void parse(Ch *text)
             ^
2 errors generated.
scons: *** [build/darwin/lib/lib.os] Error 1
scons: building terminated because of errors.