Please submit a PR for that CMakeLists.txt change, the issue is indeed 
pestering us all since a while on every new setup of a QtCreator build.

-------- Originalmitteilung --------
Von:Tommaso Cucinotta <tommaso.cucino...@gmail.com>
Gesendet:Mon, 02 Apr 2018 03:26:18 +0200
An:Joachim Schmitz 
<j...@schmitz-digital.de>,mscore-developer@lists.sourceforge.net
Betreff:Re: AW: Re: [Mscore-developer] win32 - excluding jack, pulse, etc.

>On 01/04/2018 20:06, Joachim Schmitz wrote:
>> Mingw, QtCreator. As far as I know MSCV++ is not possible (but it would be 
>> great if it were!)
>
>trying again with QtCreator. Discovered that a full reboot of the laptop 
>allowed QtCreator to be useful, and 
>surprisingly it started to provide useful output, such as pointing out Issues 
>in the code.
>
>For example, it identified an issue with the default QtCreator configuration, 
>that seems to provide an empty string for 
>CMAKE_BUILD_TYPE, so we need a fix in CMakeLists.txt (attached). After this, I 
>COULD FINALLY COMPILE with QtCreator, BUT 
>the results is THE SAME AS WITH MINGW: a MuseScore.exe that refuses to run 
>with a dialog saying "Cannot start 
>application .... (0xc000002)".
>
>I mistakenly wrote previously I'm compiling on Windows 10, but it's actually a 
>Windows 8.1.
>
>Quick Q: may I run into problems due to the use of an Administrator type of 
>account ?
>
>Any further help would be greatly appreciated. Thanks again,
>
>       T.
>
>[1].
>
>$ git diff
>diff --git a/CMakeLists.txt b/CMakeLists.txt
>index 3d5beb0b3..90257a6bb 100644
>--- a/CMakeLists.txt
>+++ b/CMakeLists.txt
>@@ -621,7 +621,7 @@ subdirs(
>        )
>  #      thirdparty/xmlstream
>
>-string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE)
>+string(TOUPPER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE)
>  if (APPLE AND CMAKE_BUILD_TYPE MATCHES "DEBUG")
>  # With xcode, we need to have all the targets in the same project
>  add_subdirectory(mtest)
>diff --git a/mscore/CMakeLists.txt b/mscore/CMakeLists.txt
>index 6cbe87a5b..2751c6fb1 100644
>--- a/mscore/CMakeLists.txt
>+++ b/mscore/CMakeLists.txt
>@@ -437,7 +437,7 @@ if (MINGW)
>        ${PROJECT_BINARY_DIR}/resfile.o
>        PROPERTIES generated true
>        )
>-   string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE)
>+   string(TOUPPER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE)
>     # Windows: Add -mconsole to LINK_FLAGS to get a console window for debug 
> output
>     if(CMAKE_BUILD_TYPE MATCHES "DEBUG")
>       set_target_properties( mscore
>
>-- 
>Tommaso Cucinotta
>Home Page: http://retis.sssup.it/~tommaso
>LinkedIn: http://www.linkedin.com/in/tommasocucinotta
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
Mscore-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mscore-developer

Reply via email to