Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1050

Compile failure in qsoundeffect_pulse_p under Maemo5 target

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 1.1.1
    • 1.1.0
    • Multimedia
    • None
    • Ubuntu Lucid 10.04, 32bit, Fremantle PR1.3 scratchbox
    • 236eb8538d6635d8b14bef96de832b763d2187c7

    Description

      An error within a maemo #ifdef prevents compilation:

      compiling effects/qsoundeffect_pulse_p.cpp
      effects/qsoundeffect_pulse_p.cpp: In static member function 'static void<unnamed>::PulseDaemon::context_state_callback(pa_context*, void*)':
      effects/qsoundeffect_pulse_p.cpp:197: error: ISO C++ forbids taking the address of a bound member function to form a pointer to member function.  Say '&<unnamed>::PulseDaemon::stream_restore_monitor_callback'
      effects/qsoundeffect_pulse_p.cpp:197: error: cannot convert 'void (<unnamed>::PulseDaemon::*)(pa_context*, void*)' to 'void (*)(pa_context*, void*)' for argument '2' to 'void pa_ext_stream_restore_set_subscribe_cb(pa_context*, void (*)(pa_context*, void*), void*)'
      effects/qsoundeffect_pulse_p.cpp: In member function 'void<unnamed>::PulseDaemon::stream_restore_monitor_callback(pa_context*, void*)':
      effects/qsoundeffect_pulse_p.cpp:212: error: ISO C++ forbids taking the address of an unqualified or parenthesized non-static member function to form a pointer to member function.  Say '&<unnamed>::PulseDaemon::stream_restore_info_callback'
      effects/qsoundeffect_pulse_p.cpp:212: error: cannot convert 'void (<unnamed>::PulseDaemon::*)(pa_context*, const pa_ext_stream_restore2_info*, int, void*)' to 'void (*)(pa_context*, const pa_ext_stream_restore2_info*, int, void*)' for argument '2' to 'pa_operation* pa_ext_stream_restore2_read(pa_context*, void (*)(pa_context*, const pa_ext_stream_restore2_info*, int, void*), void*)'
      effects/qsoundeffect_pulse_p.h: In constructor 'QSoundEffectPrivate::QSoundEffectPrivate(QObject*)':
      effects/qsoundeffect_pulse_p.h:143: warning: 'QSoundEffectPrivate::m_runningCount' will be initialized after
      effects/qsoundeffect_pulse_p.h:133: warning:   'bool QSoundEffectPrivate::m_playing'
      effects/qsoundeffect_pulse_p.cpp:245: warning:   when initialized here
      effects/qsoundeffect_pulse_p.h:149: warning: 'QSoundEffectPrivate::m_stream' will be initialized after
      effects/qsoundeffect_pulse_p.h:129: warning:   'pa_stream* QSoundEffectPrivate::m_pulseStream'
      effects/qsoundeffect_pulse_p.cpp:245: warning:   when initialized here
      effects/qsoundeffect_pulse_p.h:148: warning: 'QSoundEffectPrivate::m_waveDecoder' will be initialized after
      effects/qsoundeffect_pulse_p.h:130: warning:   'pa_stream* QSoundEffectPrivate::m_writeCallbackPulseStream'
      effects/qsoundeffect_pulse_p.cpp:245: warning:   when initialized here
      effects/qsoundeffect_pulse_p.cpp: At global scope:
      effects/qsoundeffect_pulse_p.cpp:626: warning: unused parameter 'userdata'
      make[3]: *** [../../build/Debug/QtMultimediaKit/qsoundeffect_pulse_p.o] Error 1
      

      Attachments

        Activity

          People

            ling.hu@nokia.com Ling Hu (closed Nokia identity) (Inactive)
            achipa Attila Csipa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: