#212 Compilation problem on trunk

closed
nobody
None
5
2011-10-12
2011-10-11
Collette
No

Hello,

I use mageia 1 32 bits.
I compiled the trunk and I've got an error:

Scanning dependencies of target mplugins
[ 55%] Building CXX object muse/mplugins/CMakeFiles/mplugins.dir/midiitransform.o
[ 55%] Building CXX object muse/mplugins/CMakeFiles/mplugins.dir/mitplugin.o
/home/collette/repositories/lmuse/muse2/muse/mplugins/mitplugin.cpp: In member function ‘void MusEGui::MusE::startMidiInputPlugin(int)’:
/home/collette/repositories/lmuse/muse2/muse/mplugins/mitplugin.cpp:89:55: erreur: invalid use of incomplete type ‘struct MusEGui::RhythmGen’
/home/collette/repositories/lmuse/muse2/muse/app.h:86:7: erreur: forward declaration of ‘struct MusEGui::RhythmGen’
/home/collette/repositories/lmuse/muse2/muse/mplugins/mitplugin.cpp:91:53: erreur: no matching function for call to ‘MusEGui::MusE::connect(MusEGui::RhythmGen*&, const char [14], const char [27])’
/usr/lib/qt4/include/QtCore/qobject.h:198:17: note: candidats sont: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
/usr/lib/qt4/include/QtCore/qobject.h:313:13: note: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
/home/collette/repositories/lmuse/muse2/muse/mplugins/mitplugin.cpp:93:17: erreur: cannot convert ‘MusEGui::RhythmGen*’ to ‘QWidget*’ in assignment
make[2]: *** [muse/mplugins/CMakeFiles/mplugins.dir/mitplugin.o] Erreur 1
make[1]: *** [muse/mplugins/CMakeFiles/mplugins.dir/all] Erreur 2

Best regards,

YC

Discussion

  • Robert Jonsson

    Robert Jonsson - 2011-10-12

    Hello YC,

    I believe this is an error in trunk when you add ENABLE_EXPERIMENTAL. Please turn it off in the cmake configuration.
    We'll fix the switch but there isn't anything interesting in the experimental build for the moment.

    Regards
    /Robert

     
  • Robert Jonsson

    Robert Jonsson - 2011-10-12
    • status: open --> pending
     
  • Collette

    Collette - 2011-10-12
    • status: pending --> closed
     
  • Collette

    Collette - 2011-10-12

    I didn't turn the EXPERIMENTAL flag on explicitely.
    But I tested the compilation this morning and it works for me now.
    I close the bug.

    YC