Page 1 of 1

Problems compiling MusE from git

Posted: Fri Feb 08, 2019 10:03 am
by emillo
Hello, I'm trying to compile MusE from git but I get an error:

Code: Select all

[ 55%] Building CXX object muse/components/CMakeFiles/components.dir/view.o
/home/emillo/src/muse/muse3/muse/components/view.cpp: In member function ‘void MusEGui::View::mapDev(const QRegion&, QRegion&) const’:
/home/emillo/src/muse/muse3/muse/components/view.cpp:1095:7: error: ‘const_iterator’ is not a member of ‘QRegion’
   for(QRegion::const_iterator i = rg_in.begin(); i != rg_in.end(); ++i)
       ^~~~~~~
/home/emillo/src/muse/muse3/muse/components/view.cpp:1095:50: error: ‘i’ was not declared in this scope
   for(QRegion::const_iterator i = rg_in.begin(); i != rg_in.end(); ++i)
                                                  ^
/home/emillo/src/muse/muse3/muse/components/view.cpp:1095:61: error: ‘const class QRegion’ has no member named ‘end’
   for(QRegion::const_iterator i = rg_in.begin(); i != rg_in.end(); ++i)
                                                             ^~~
/home/emillo/src/muse/muse3/muse/components/view.cpp: In member function ‘void MusEGui::View::map(const QRegion&, QRegion&) const’:
/home/emillo/src/muse/muse3/muse/components/view.cpp:1233:7: error: ‘const_iterator’ is not a member of ‘QRegion’
   for(QRegion::const_iterator i = rg_in.begin(); i != rg_in.end(); ++i)
       ^~~~~~~
/home/emillo/src/muse/muse3/muse/components/view.cpp:1233:50: error: ‘i’ was not declared in this scope
   for(QRegion::const_iterator i = rg_in.begin(); i != rg_in.end(); ++i)
                                                  ^
/home/emillo/src/muse/muse3/muse/components/view.cpp:1233:61: error: ‘const class QRegion’ has no member named ‘end’
   for(QRegion::const_iterator i = rg_in.begin(); i != rg_in.end(); ++i)
                                                             ^~~
muse/components/CMakeFiles/components.dir/build.make:3428: set di istruzioni per l'obiettivo "muse/components/CMakeFiles/components.dir/view.o" non riuscito
make[2]: *** [muse/components/CMakeFiles/components.dir/view.o] Errore 1
CMakeFiles/Makefile2:1682: set di istruzioni per l'obiettivo "muse/components/CMakeFiles/components.dir/all" non riuscito
make[1]: *** [muse/components/CMakeFiles/components.dir/all] Errore 2
Makefile:149: set di istruzioni per l'obiettivo "all" non riuscito
make: *** [all] Errore 2



I'm on debian stable. For the record, I'm able to succesfully compile the 3.0.2 tag


Thanks!

Re: Problems compiling MusE from git

Posted: Fri Feb 08, 2019 4:37 pm
by Tim E. Real
Hello. Sorry about that.
QRegion stl features are too new, introduced at Qt 5.8

Fixed in git master now.
Try again.

Thanks.

Re: Problems compiling MusE from git

Posted: Fri Feb 08, 2019 10:23 pm
by emillo
Thanks, now it works fine!