Compilation errors since moved to Qt 5

• Jul 26, 2013 - 15:54

Would someone please help me with this?

Since the MuseScore code moved to using Qt5 I have not been able to compile. I am getting errors related to Qstring. See attached copy of output from the make.

I am using Linux Opensuse 12.3 upgraded to Qt5.

output from qmake:
/home/turtle/MuseScore$ qmake -version
QMake version 3.0
Using Qt version 5.0.2 in /usr/lib64

I thought I had all the Qt5 header files installed, but am I missing something?

I also noticed that the PATH environment variable is being set incorrectly by the make script:

export PATH=/home/turtle/Qt5.1.0/5.1.0/gcc_64/bin:/home/turtle/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/opt/real/RealPlayer;

MuseScore Revision: 4495b25

there is no directory "/home/turtle/Qt5.1.0/5.1.0/gcc_64/bin" yet the script has "BINPATH = ${HOME}/Qt5.1.0/5.1.0/gcc_64/bin:${PATH}" hard coded in it.

One of the errors is because /home/turtle/MuseScore/build.release/fluid/ui_fluid_gui.h specifies on line 14:
#include QtGui/QAction (I dropped the angle brackets so you could see this!!)

but on my system QAction is actually in:
/usr/include/QtWidgets/QAction

Thank you for your help.

Attachment Size
makelog.txt 43.93 KB

Comments

I made some progress... I renamed the QtGui 'include' file and created a new empty one. I then copied the contents of the renamed one AND the contents of QtWidgets into it.

Got me a lot further down the compilations.

Now I have failures:

[ 65%] Building CXX object mscore/CMakeFiles/mscore.dir/pianoroll.cpp.o
cc1plus: warning: /home/turtle/MuseScore/build.release/all.h.gch: created and used with different settings of -fpie [enabled by default]
/home/turtle/MuseScore/mscore/synthcontrol.cpp: In constructor ‘Ms::SynthControl::SynthControl(QWidget*)’:
/home/turtle/MuseScore/mscore/synthcontrol.cpp:62:37: error: ‘createWindowContainer’ is not a member of ‘QWidget’
/home/turtle/MuseScore/mscore/synthcontrol.cpp:69:37: error: ‘createWindowContainer’ is not a member of ‘QWidget’
[ 65%] Building CXX object mscore/CMakeFiles/mscore.dir/pianoview.cpp.o
cc1plus: warning: /home/turtle/MuseScore/build.release/all.h.gch: created and used with different settings of -fpie [enabled by default]
make[3]: *** [mscore/CMakeFiles/mscore.dir/synthcontrol.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/home/turtle/MuseScore/build.release'
make[2]: *** [mscore/CMakeFiles/mscore.dir/all] Error 2
make[2]: Leaving directory `/home/turtle/MuseScore/build.release'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/turtle/MuseScore/build.release'
make: *** [release] Error 2

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