The majority of the problems highlighted in the previous post have been
fixed and the Qt5 branch now compiles on Windows. Travis is also working
and can run the tests.
* MuseScore now use a name space Ms:: it solved the problem with Chord
since it's also declared as a function in wingdi.h and this header is
included by Qt, and so by us in all.h
* For name clash issue out of the name space, like frameshadow, or aeolus,
especially for constants, the names has been changed or undefined before
being declared again.
* Precompiled header is used, QT_NO_DEBUG was inserted in the mscore
Cmakefiles by the magic macro qt5_use_modules. Apparently this macro is not
needed.
* The last item of the list remains. The menus are darker.
Werner and I want to move forward and merge the qt5 branch in master as
soon as possible. In the meantime, any feedback is welcome!
lasconic
2013/5/9 Lasconic <[email protected]>
> I tried today to compile the qt5 branch under windows and it's working!
> Here are some remarks and remaining issues.
> I used Qt 5.0.2 from Qt-project and the mingw toolchain provided with it.
>
> 1/ Qt Single app is not compatible with Qt5. I updated it.
>
> 2/ Several class names, or constants are defined in windows headers and
> these headers are included by Qt headers. I cannot find a good way to
> workaround this issue, so help is welcome.
> I currently commented out a line in one of the system header (for Chord)
> and change variable names in MuseScore source code...
>
> * Chord is defined in wingdi.h as a function and wingdi.h is included
>
> *
> D:\GIT\MuseScore-qt5\build.release\mstyle\../../mstyle/frameshadow.h:38:7:
> error: conflicting declaration 'Unknown'
>
> In file included from
> c:\qt\qt5.0.2\tools\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/winscard.h:11:0,
> from
> c:\qt\qt5.0.2\tools\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/windows.h:97,
> from
> C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtCore/qt_windows.h:66,
> from
> C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtCore/qwineventnotifier.h:48,
> from
> C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtCore/QtCore:76,
> from C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtGui/QtGui:4,
> from all.h:32:
> c:\qt\qt5.0.2\tools\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/winioctl.h:492:3:
> error: 'Unknown' has a previous declaration as '_MEDIA_TYPE Unknown'
>
> * aeolus/model.cpp int Model::read_instr()
> GCC not happy with the enum DONE and ERROR already used somewhere probably
> enum { CONT, DONE1, ERROR1,
>
> * in freeverb "SIZE" is defined elsewhere.
>
> * in diff
> enum Operation {
> DELETE, INSERT, EQUAL
> };
>
> 3/ arpeggio.h, two virtual function declarations missing
> drop()
> acceptDrop()
>
> 4/ QT_NO_DEBUG is used for mscore compilation but not for all.h in Release
> mode. So the precompiled header is not used.
>
> 5/ Menus are darker
> https://www.dropbox.com/s/5vvrhjt6zklyqbj/shot_130509_144342.png
>
> lasconic
>
>
>
>
> 2013/2/19 Werner Schweer <[email protected]>
>
>> For windows the CMake files are not adapted as i cannot test this.
>> If you manage to hack them it should also work on windows.
>>
>> /Werner
>>
>> On 19.02.2013 08:05, Maurizio M. Gavioli wrote:
>> > Werner Schweer wrote
>> >> Thank you for testing. The linker rpath was set wrong. I could not find
>> >> out
>> >> the "official" way to determine the qt5 library install path and used
>> an
>> >> "hardwired"
>> >> path into my local environment. I replaced it with i believe is an
>> >> intern cmake variable
>> >> from the qt5 cmake scripts. It works at least for qt5.0.1.
>> > It works! For qt 5.0.0 too (I haven't updated yet): the source compiled
>> and
>> > linked; the app run and displayed correctly a 'real' score (not a simple
>> > test score).
>> >
>> > So, it seems the transition is complete. Do you want me to test it under
>> > Windows too or you already know it is not going to work?
>> >
>> > Maurizio
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://dev-list.musescore.org/MuseScore-and-Qt5-tp7577788p7577834.html
>> > Sent from the MuseScore Developer mailing list archive at Nabble.com.
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Everyone hates slow websites. So do we.
>> > Make your web apps faster with AppDynamics
>> > Download AppDynamics Lite for free today:
>> > http://p.sf.net/sfu/appdyn_d2d_feb
>> > _______________________________________________
>> > Mscore-developer mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/mscore-developer
>> >
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb
>> _______________________________________________
>> Mscore-developer mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>>
>
>
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Mscore-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mscore-developer