cannot build nightlies on Linux (Ubuntu)
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
during this period I successfully built (automated, by script), running Mint17 and Qt 5.3), and posted.
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 Have you tried make by underquark
Yes, I did 'make clean' right away. I was a bit surprised by how little it does:
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 Yes, I did 'make clean' right by dccarson
How little? "rm -rf build.debug" deletes virtually all the files MuseScore builds. That's as complete as one should ever need.
You do need Qt 5.3 at least, perhaps 5.4. 4.x is ancient.
In reply to How little? "rm -rf 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:
Am I missing something from Qt 5 or is the mixture of the two possibly causing a problem?
In reply to Ah, my mistake. I misread the by dccarson
Looks like you only have 5.3. Updating to 5.4 would be a good next step. Even if 5.3 is supposed to be supported (not sure about that), 5.4 is what we will be using. 5.4.1, actually, which will hoepfully be out next week.
In reply to Looks like you only have 5.3. by Marc Sabatella
Updating to Qt 5.4 and cleaning up my $PATH, which was still pointing to a 5.2 version, got me going again. Sorry for the trouble and thanks for the help.