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
>From e4550389ff162473cd53ee0ef039a6dea79d6447 Mon Sep 17 00:00:00 2001
From: Tommaso Cucinotta <tommaso.cucino...@gmail.com>
Date: Mon, 2 Apr 2018 03:20:04 +0200
Subject: [PATCH] tolerate empty CMAKE_BUILD_TYPE
---
CMakeLists.txt | 2 +-
mscore/CMakeLists.txt | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
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
--
2.14.1
------------------------------------------------------------------------------
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