cannot build nightlies on Linux (Ubuntu)

• Feb 6, 2015 - 14:33

I was building nightlies sporadically from the git source (git pull, then make). A couple weeks ago, it started failing. Note that I can't say exactly when this might have started, since I only build sporadically. I can say for sure that my setup used to work. I'm running Ubuntu 14.10.

Here is the failure I am currently seeing:

:
:
Generating moc_uploadscoredialog.cpp
Generating moc_voltaproperties.cpp
Generating moc_waveview.cpp
Generating moc_workspace.cpp
make[3]: Leaving directory '/home/dcarson/src/MuseScore/build.release'
[  4%] Built target mscore_automoc
In file included from /usr/include/i386-linux-gnu/qt5/QtQuickWidgets/QQuickWidget:1:0,
                 from all.h:159:
/usr/include/i386-linux-gnu/qt5/QtQuickWidgets/qquickwidget.h:101:40: error: ‘QQuickWindow::SceneGraphError’ has not been declared
     void sceneGraphError(QQuickWindow::SceneGraphError error, const QString &message);
                                        ^
In file included from /usr/include/i386-linux-gnu/qt5/QtQuickWidgets/QQuickWidget:1:0,
                 from /home/dcarson/src/MuseScore/build.release/all.h:159,
                 from :0:
/usr/include/i386-linux-gnu/qt5/QtQuickWidgets/qquickwidget.h:101:40: error: ‘QQuickWindow::SceneGraphError’ has not been declared
     void sceneGraphError(QQuickWindow::SceneGraphError error, const QString &message);
                                        ^
In file included from /usr/include/i386-linux-gnu/qt5/QtQuickWidgets/QQuickWidget:1:0,
                 from /home/dcarson/src/MuseScore/build.release/all.h:159,
                 from :0:
/usr/include/i386-linux-gnu/qt5/QtQuickWidgets/qquickwidget.h:101:40: error: ‘QQuickWindow::SceneGraphError’ has not been declared
     void sceneGraphError(QQuickWindow::SceneGraphError error, const QString &message);
                                        ^
manual/CMakeFiles/genManual.dir/build.make:75: recipe for target 'manual/CMakeFiles/genManual.dir/genManual_automoc.cpp.o' failed
make[3]: *** [manual/CMakeFiles/genManual.dir/genManual_automoc.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
manual/CMakeFiles/genManual.dir/build.make:53: recipe for target 'manual/CMakeFiles/genManual.dir/genManual.cpp.o' failed
make[3]: *** [manual/CMakeFiles/genManual.dir/genManual.cpp.o] Error 1
make[3]: Leaving directory '/home/dcarson/src/MuseScore/build.release'
CMakeFiles/Makefile2:5660: recipe for target 'manual/CMakeFiles/genManual.dir/all' failed
make[2]: *** [manual/CMakeFiles/genManual.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/mops2.dir/build.make:51: recipe for target 'all.h.gch' failed
make[3]: *** [all.h.gch] Error 1
make[3]: Leaving directory '/home/dcarson/src/MuseScore/build.release'
CMakeFiles/Makefile2:184: recipe for target 'CMakeFiles/mops2.dir/all' failed
make[2]: *** [CMakeFiles/mops2.dir/all] Error 2
make[2]: Leaving directory '/home/dcarson/src/MuseScore/build.release'
Makefile:133: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/dcarson/src/MuseScore/build.release'
Makefile:34: recipe for target 'release' failed
make: *** [release] Error 2
(2)[dcarson@eagle MuseScore] 

--
~David


Comments

Have you tried

make clean

"Also, during compilation, a lot of intermediate object files are created in the source code folder, and used to produce the final code. These files can be deleted (and sometimes must be deleted if errors occurred during the compilation) with this command:

make clean"

In reply to by underquark

Yes, I did 'make clean' right away. I was a bit surprised by how little it does:

(0)[dcarson@eagle MuseScore] make clean
rm -rf build.debug build.release
rm -rf win32build win32install

Maybe there is a more complete 'clean' target.

Also, do I have to have Qt 5? Even the latest Ubuntu is at Qt 4.

In reply to by Marc Sabatella

Ah, my mistake. I misread the 'rm' command, thinking build.debug and build.release were individual objects.

Update on Qt. Seems I have a mixture of 4 and 5. Here is some output from dpkg:

(1)[dcarson@eagle MuseScore] dpkg -l 'qt4*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                       Version            Architecture       Description
+++-==========================-==================-==================-==========================================================
un  qt4-default                                          (no description available)
ii  qt4-designer               4:4.8.6+git49-gbc6 i386               graphical designer for Qt 4 applications
ii  qt4-dev-tools              4:4.8.6+git49-gbc6 i386               Qt 4 development tools
ii  qt4-doc                    4:4.8.6+git49-gbc6 all                Qt 4 API documentation
un  qt4-doc-html                                         (no description available)
ii  qt4-linguist-tools         4:4.8.6+git49-gbc6 i386               Qt 4 Linguist tools
ii  qt4-qmake                  4:4.8.6+git49-gbc6 i386               Qt 4 qmake Makefile generator tool
un  qt4-qmlviewer                                        (no description available)
rc  qt4-qtconfig               4.5.3really4.5.2-0 i386               Qt 4 configuration tool
un  qt4-x11                                              (no description available)
(0)[dcarson@eagle MuseScore] 
(0)[dcarson@eagle MuseScore] 
(0)[dcarson@eagle MuseScore] 
(0)[dcarson@eagle MuseScore] dpkg -l 'qt5*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                       Version            Architecture       Description
+++-==========================-==================-==================-==========================================================
ii  qt5-default:i386           5.3.0+dfsg-2ubuntu i386               Qt 5 development defaults package
ii  qt5-qmake:i386             5.3.0+dfsg-2ubuntu i386               Qt 5 qmake Makefile generator tool
(0)[dcarson@eagle MuseScore] 

Am I missing something from Qt 5 or is the mixture of the two possibly causing a problem?

Do you still have an unanswered question? Please log in first to post your question.