Make Errors

• Dec 28, 2014 - 14:01

I am having a lot of trouble building from source. I have QT 5.4 installed and am using Ubuntu 14.10. I have downloaded the latest source from Git as well as downloading the v2 beta 2. When I try to make in either directory, they both give the following errors.

In file included from /usr/include/x86_64-linux-gnu/qt5/QtQuickWidgets/QQuickWidget:1:0,
from /home/brian/MuseScore-2.0b2/build.release/all.h:159,
from :0:
/usr/include/x86_64-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/x86_64-linux-gnu/qt5/QtQuickWidgets/QQuickWidget:1:0,
from all.h:159:
/usr/include/x86_64-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: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/brian/MuseScore-2.0b2/build.release'
CMakeFiles/Makefile2:4808: 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/brian/MuseScore-2.0b2/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/brian/MuseScore-2.0b2/build.release'
Makefile:133: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/brian/MuseScore-2.0b2/build.release'
Makefile:34: recipe for target 'release' failed
make: *** [release] Error 2

If anyone can help and tell me what I am missing, I will really appreciate it.


Comments

In reply to by amayorga

I have managed to solve the problem. I am sure this is not the best solution, but at least it works for now. In the build.release folder there is a file called CMakeCache.txt. I edited that file and changed all of the QT paths to point to my working 5.4 version of QT. Once I did that, the build started working.

Until someone else gives us the right solution, at least this should get you going.

In reply to by Jojo-Schmitz

Hello, thanks for your reply. I am sorry, but I am not a QT expert so please forgive me if I say something stupid. I went to the directory you mentioned and edited qtquickwidgetsversion.h and it indicated that the version string was 5.3.2., while I am running QT 5.4.0.

However, I am running QT from ~/Qt/5.4/gcc_64. In that directory, I went to Includes/QtQuickWidgets and here the qtquickwidgetsversion.h file says 5.4.0.

Is there something that needs to be pointed to this directory in order to work? For QT, the only thing in my $PATH is /home/brian/Qt/5.4/gcc_64/bin. Is there something else that should be added to the path? Or should this path be changed?

Thanks for your help.

In reply to by brianr0922

There is no such thing as "running" Qt. Well, there is QtCreator - do you mean that? But in any event, whether your running QtCreator or not, somehow it needs to find where the Qt libraries and header files are. And even though you have Qt installed, the error message you posted clearly indicates it is still trying to use the 5.3 version of that file - it specifically gives the lcoation as /usr/local, not your home directory. So somehow you need to sort that out. I generally just remove odler version of Qt to remove any possibiltiy of confusion.

i had the same problem (using a similar setup: Mint 17 (which is based on Ubuntu 14.04 i think), v2 beta2 source, QT5.4 in my home directory).

There was a 2nd version of Qt installed, which i got via the Synaptec package manager earlier. After removing it again via Synaptic the compilation worked (it's actually compiling right now).

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