El 30.04.2017 a las 10:24, Kornel Benko escribió:

Am Sonntag, 30. April 2017 um 09:37:37, schrieb Kornel Benko <kor...@lyx.org>
I found now the problem: configuring CMake the fist time will set
PYTHON_EXECUTABLE and LYX_PYTHON_EXECUTABLE to the python library found
in the specified GNUWIN32_DIR:
D:/LyXGit/Master/lyx-windows-deps-msvc2015/Python/python.exe


So you have there a python executable?

Yes, this is the Python delivered with the installer.

However, I found now out that Python is not to blame here. I cannot explain why but deleting the build folder again and starting from scratch (one again) solved the problem. So it seems to be quite random because it suddenly appears also when compiling master or the 2.2.x branch also if I don't call the CMake GUI.

Attached is a patch for CMake. Does it make sense? I thing we should use Qt5 as default for LyX 2.3. One can still override it with Qt 4 if one likes.

I am a step further but not yet ready because there is one issue:
The installed LyX creates its appdata folder without a version suffix. For LyX 2.2.x the appdata folder is
C:\Users\<username>\AppData\Roaming\LyX2.2
For LyX 2.1.x the appdata folder is
C:\Users\<username>\AppData\Roaming\LyX2.1
etc.
But for LyX 2.3.x it is currently only
C:\Users\<username>\AppData\Roaming\LyX

Do I need to specify the version suffix in CMake? If so where and where is this set in LyX 2.2.x?
If I specify "2.3" for LYX-SUFFIX-VALUE I get this error:
CMake Error at development/cmake/modules/LyXMacros.cmake:270 (message):
  Invalid string for lyx suffix (.2.3)
Call Stack (most recent call first):
  CMakeLists.txt:133 (LYX_STRING)


thanks and regards
Uwe
diff --git 
"a/C:\\Users\\Usti\\AppData\\Local\\Temp\\TortoiseGit\\CMakeLists-4a42a71.000.txt"
 "b/D:\\LyXGit\\Master\\CMakeLists.txt"
index da0776eb2f..07195938d0 100644
--- 
"a/C:\\Users\\Usti\\AppData\\Local\\Temp\\TortoiseGit\\CMakeLists-4a42a71.000.txt"
+++ "b/D:\\LyXGit\\Master\\CMakeLists.txt"
@@ -2,7 +2,7 @@
 # Licence details can be found in the file COPYING.
 #
 # Copyright (c) 2006-2011 Peter Kümmel, <syntheti...@gmx.net>
-# Copyright (c) 2008-2011 Kornel Benko, <kornel.be...@berlin.de>
+# Copyright (c) 2008-2017 Kornel Benko, <kornel.be...@berlin.de>
 
 cmake_minimum_required(VERSION 2.6.4)
 
@@ -141,7 +141,7 @@ LYX_OPTION(ENABLE_URLTESTS  "Enable for URL tests" OFF ALL)
 LYX_OPTION(ENABLE_EXPORT_TESTS "Enable for export tests" OFF ALL)
 LYX_OPTION(ENABLE_KEYTESTS  "Enable for keytests" OFF ALL)
 LYX_OPTION(ASAN             "Use address sanitizer" OFF ALL)
-LYX_COMBO(USE_QT            "Use Qt version as frontend" QT4 QT5)
+LYX_COMBO(USE_QT            "Use Qt version as frontend" QT5 QT4)
 #LYX_OPTION(3RDPARTY_BUILD   "Build 3rdparty libs" OFF ALL)
 LYX_OPTION(EXTERNAL_Z       "OFF := Build 3rdparty lib zlib" ON ALL)
 LYX_OPTION(EXTERNAL_ICONV   "OFF := Build 3rdparty lib iconvlib" ON ALL)
@@ -996,7 +996,7 @@ if(LYX_ASAN)
     message(STATUS "Address sanitizer enabled. Usage:")
     message(STATUS "    wget 
https://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/asan/scripts/asan_symbolize.py";)
     message(STATUS "    chmod  +x ./asan_symbolize.py")
-    message(STATUS "    ./bin/lyx2.2 2>&1 | ./asan_symbolize.py  | c++filt ")
+    message(STATUS "    ./bin/lyx2.3 2>&1 | ./asan_symbolize.py  | c++filt ")
     message(STATUS)
 endif()
 

Reply via email to