Re: CMake fails on first configure
Am So., 22. Okt. 2023 um 21:36 Uhr schrieb Yu Jin: > It's this on Windows: > > > C:/Qt/6.6.0/msvc2019_64/include/QtCoreC:/Qt/6.6.0/msvc2019_64/includeC:/Qt/6.6.0/msvc2019_64/include/QtZlib$<$>:>$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0>$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0/QtZlib> > > > to be continued... > https://bugreports.qt.io/browse/QTBUG-118462 > It is actually fixed by Qt (wow that was fast). Version 6.7.0 will contain the fix. -- Eugene -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: CMake fails on first configure
Am So., 22. Okt. 2023 um 21:06 Uhr schrieb Kornel Benko: > Am Sun, 22 Oct 2023 20:48:38 +0200 > schrieb Yu Jin: > > > Am So., 22. Okt. 2023 um 17:32 Uhr schrieb Kornel Benko: > > > > > Am Sun, 22 Oct 2023 10:22:54 +0200 > > > schrieb Yu Jin: > > > > > > > Am Sa., 21. Okt. 2023 um 22:00 Uhr schrieb Yu Jin: > > > > > > > > > Am Sa., 21. Okt. 2023 um 19:42 Uhr schrieb Kornel Benko: > > > > > > > > > >> > > > > >> What bothers me, is that the following configure is OK. > > > > >> For me that implies that the first configure already created > > > > >> CMakeCache.txt. > > > > >> Could you compare the first CMakeCache.txt with later created > version? > > > > >> Normally I would > > > > >> expect they have same content. > > > > >> > > > > > > > > > > Well the following configure does not do any checks or > try_compile, so > > > it > > > > > can't run into this error . > > > > > > > > > > > > > I think it comes from here: > > > > > > > > https://git.lyx.org/?p=lyx.git;a=blob;f=development/cmake/ConfigureChecks.cmake;h=9062372c38e107156a7e561bce340045b0cd53e0;hb=0b5a9060c2afc3e68b3b055ec5b02db7d13458ab#l287 > > > > set(CMAKE_REQUIRED_INCLUDES ${${QtVal}Core_INCLUDE_DIRS}) > > > > > > > > I just added a message after this line for testing message(STATUS > > > "includes > > > > set: "${${QtVal}Core_INCLUDE_DIRS}) > > > > and it returns: > > > > includes set: > > > > > > > > C:/Qt/6.6.0/msvc2019_64/include/QtCoreC:/Qt/6.6.0/msvc2019_64/includeC:/Qt/6.6.0/msvc2019_64/include/QtZlib$<$>:>$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0>$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0/QtZlib> > > > > > > > > So exactly what is set in CMakeCache.txt of the try_compie project, > so in > > > > the end it's set in ${Qt6Core_INCLUDE_DIRS}, which comes from Qt I > > > suppose, > > > > I guess I can make a minimal example with this and ask on the Qt > forum... > > > > > > > > > > That asking the forum would be nice. And yes, Qt6Core_INCLUDE_DIRS > comes > > > from Qt, not our > > > > > > > What does it contain on Linux though? could you try with a simple > > message(STATUS ${Qt6Core_INCLUDE_DIRS}) > > ? > > Qt6Core_INCLUDE_DIRS = > /usr/include/x86_64-linux-gnu/qt6/QtCore;/usr/include/x86_64-linux-gnu/qt6 > > This is also with cmake3.28 > It's this on Windows: C:/Qt/6.6.0/msvc2019_64/include/QtCoreC:/Qt/6.6.0/msvc2019_64/includeC:/Qt/6.6.0/msvc2019_64/include/QtZlib$<$>:>$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0>$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0/QtZlib> to be continued... https://bugreports.qt.io/browse/QTBUG-118462 -- Eugene -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: CMake fails on first configure
Am Sun, 22 Oct 2023 20:48:38 +0200 schrieb Yu Jin : > Am So., 22. Okt. 2023 um 17:32 Uhr schrieb Kornel Benko: > > > Am Sun, 22 Oct 2023 10:22:54 +0200 > > schrieb Yu Jin: > > > > > Am Sa., 21. Okt. 2023 um 22:00 Uhr schrieb Yu Jin: > > > > > > > Am Sa., 21. Okt. 2023 um 19:42 Uhr schrieb Kornel Benko: > > > > > > > >> > > > >> What bothers me, is that the following configure is OK. > > > >> For me that implies that the first configure already created > > > >> CMakeCache.txt. > > > >> Could you compare the first CMakeCache.txt with later created version? > > > >> Normally I would > > > >> expect they have same content. > > > >> > > > > > > > > Well the following configure does not do any checks or try_compile, so > > it > > > > can't run into this error . > > > > > > > > > > I think it comes from here: > > > > > https://git.lyx.org/?p=lyx.git;a=blob;f=development/cmake/ConfigureChecks.cmake;h=9062372c38e107156a7e561bce340045b0cd53e0;hb=0b5a9060c2afc3e68b3b055ec5b02db7d13458ab#l287 > > > set(CMAKE_REQUIRED_INCLUDES ${${QtVal}Core_INCLUDE_DIRS}) > > > > > > I just added a message after this line for testing message(STATUS > > "includes > > > set: "${${QtVal}Core_INCLUDE_DIRS}) > > > and it returns: > > > includes set: > > > > > C:/Qt/6.6.0/msvc2019_64/include/QtCoreC:/Qt/6.6.0/msvc2019_64/includeC:/Qt/6.6.0/msvc2019_64/include/QtZlib$<$>:>$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0>$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0/QtZlib> > > > > > > So exactly what is set in CMakeCache.txt of the try_compie project, so in > > > the end it's set in ${Qt6Core_INCLUDE_DIRS}, which comes from Qt I > > suppose, > > > I guess I can make a minimal example with this and ask on the Qt forum... > > > > > > > That asking the forum would be nice. And yes, Qt6Core_INCLUDE_DIRS comes > > from Qt, not our > > > > What does it contain on Linux though? could you try with a simple > message(STATUS ${Qt6Core_INCLUDE_DIRS}) > ? Qt6Core_INCLUDE_DIRS = /usr/include/x86_64-linux-gnu/qt6/QtCore;/usr/include/x86_64-linux-gnu/qt6 This is also with cmake3.28 Kornel pgpSX3ivibE0c.pgp Description: Digitale Signatur von OpenPGP -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: CMake fails on first configure
Am So., 22. Okt. 2023 um 17:32 Uhr schrieb Kornel Benko: > Am Sun, 22 Oct 2023 10:22:54 +0200 > schrieb Yu Jin: > > > Am Sa., 21. Okt. 2023 um 22:00 Uhr schrieb Yu Jin: > > > > > Am Sa., 21. Okt. 2023 um 19:42 Uhr schrieb Kornel Benko: > > > > > >> > > >> What bothers me, is that the following configure is OK. > > >> For me that implies that the first configure already created > > >> CMakeCache.txt. > > >> Could you compare the first CMakeCache.txt with later created version? > > >> Normally I would > > >> expect they have same content. > > >> > > > > > > Well the following configure does not do any checks or try_compile, so > it > > > can't run into this error . > > > > > > > I think it comes from here: > > > https://git.lyx.org/?p=lyx.git;a=blob;f=development/cmake/ConfigureChecks.cmake;h=9062372c38e107156a7e561bce340045b0cd53e0;hb=0b5a9060c2afc3e68b3b055ec5b02db7d13458ab#l287 > > set(CMAKE_REQUIRED_INCLUDES ${${QtVal}Core_INCLUDE_DIRS}) > > > > I just added a message after this line for testing message(STATUS > "includes > > set: "${${QtVal}Core_INCLUDE_DIRS}) > > and it returns: > > includes set: > > > C:/Qt/6.6.0/msvc2019_64/include/QtCoreC:/Qt/6.6.0/msvc2019_64/includeC:/Qt/6.6.0/msvc2019_64/include/QtZlib$<$>:>$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0>$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0/QtZlib> > > > > So exactly what is set in CMakeCache.txt of the try_compie project, so in > > the end it's set in ${Qt6Core_INCLUDE_DIRS}, which comes from Qt I > suppose, > > I guess I can make a minimal example with this and ask on the Qt forum... > > > > That asking the forum would be nice. And yes, Qt6Core_INCLUDE_DIRS comes > from Qt, not our > What does it contain on Linux though? could you try with a simple message(STATUS ${Qt6Core_INCLUDE_DIRS}) ? -- Eugene -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: CMake fails on first configure
Am Sun, 22 Oct 2023 10:22:54 +0200 schrieb Yu Jin : > Am Sa., 21. Okt. 2023 um 22:00 Uhr schrieb Yu Jin : > > > Am Sa., 21. Okt. 2023 um 19:42 Uhr schrieb Kornel Benko: > > > >> > >> What bothers me, is that the following configure is OK. > >> For me that implies that the first configure already created > >> CMakeCache.txt. > >> Could you compare the first CMakeCache.txt with later created version? > >> Normally I would > >> expect they have same content. > >> > > > > Well the following configure does not do any checks or try_compile, so it > > can't run into this error . > > > > I think it comes from here: > https://git.lyx.org/?p=lyx.git;a=blob;f=development/cmake/ConfigureChecks.cmake;h=9062372c38e107156a7e561bce340045b0cd53e0;hb=0b5a9060c2afc3e68b3b055ec5b02db7d13458ab#l287 > set(CMAKE_REQUIRED_INCLUDES ${${QtVal}Core_INCLUDE_DIRS}) > > I just added a message after this line for testing message(STATUS "includes > set: "${${QtVal}Core_INCLUDE_DIRS}) > and it returns: > includes set: > C:/Qt/6.6.0/msvc2019_64/include/QtCoreC:/Qt/6.6.0/msvc2019_64/includeC:/Qt/6.6.0/msvc2019_64/include/QtZlib$<$>:>$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0>$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0/QtZlib> > > So exactly what is set in CMakeCache.txt of the try_compie project, so in > the end it's set in ${Qt6Core_INCLUDE_DIRS}, which comes from Qt I suppose, > I guess I can make a minimal example with this and ask on the Qt forum... > That asking the forum would be nice. And yes, Qt6Core_INCLUDE_DIRS comes from Qt, not our doing. Kornel pgpjFUz8ByY70.pgp Description: Digitale Signatur von OpenPGP -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: CMake fails on first configure
Am Sa., 21. Okt. 2023 um 22:00 Uhr schrieb Yu Jin : > Am Sa., 21. Okt. 2023 um 19:42 Uhr schrieb Kornel Benko: > >> >> What bothers me, is that the following configure is OK. >> For me that implies that the first configure already created >> CMakeCache.txt. >> Could you compare the first CMakeCache.txt with later created version? >> Normally I would >> expect they have same content. >> > > Well the following configure does not do any checks or try_compile, so it > can't run into this error . > I think it comes from here: https://git.lyx.org/?p=lyx.git;a=blob;f=development/cmake/ConfigureChecks.cmake;h=9062372c38e107156a7e561bce340045b0cd53e0;hb=0b5a9060c2afc3e68b3b055ec5b02db7d13458ab#l287 set(CMAKE_REQUIRED_INCLUDES ${${QtVal}Core_INCLUDE_DIRS}) I just added a message after this line for testing message(STATUS "includes set: "${${QtVal}Core_INCLUDE_DIRS}) and it returns: includes set: C:/Qt/6.6.0/msvc2019_64/include/QtCoreC:/Qt/6.6.0/msvc2019_64/includeC:/Qt/6.6.0/msvc2019_64/include/QtZlib$<$>:>$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0>$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0/QtZlib> So exactly what is set in CMakeCache.txt of the try_compie project, so in the end it's set in ${Qt6Core_INCLUDE_DIRS}, which comes from Qt I suppose, I guess I can make a minimal example with this and ask on the Qt forum... -- Eugene -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: CMake fails on first configure
Am Sa., 21. Okt. 2023 um 19:42 Uhr schrieb Kornel Benko: > > What bothers me, is that the following configure is OK. > For me that implies that the first configure already created > CMakeCache.txt. > Could you compare the first CMakeCache.txt with later created version? > Normally I would > expect they have same content. > Well the following configure does not do any checks or try_compile, so it can't run into this error . -- Eugene -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: CMake fails on first configure
Am Sat, 21 Oct 2023 13:47:13 +0200 schrieb Yu Jin : > Am Sa., 21. Okt. 2023 um 08:42 Uhr schrieb Yu Jin : > > > Am So., 15. Okt. 2023 um 22:32 Uhr schrieb Yu Jin > >: > > > >> Am Mo., 2. Okt. 2023 um 21:51 Uhr schrieb Yu Jin: > >> > >>> > >>> C:\Qt\6.5.2\msvc2019_64\include\QtGui\qtgui-config.h > >>> > >> > >> Ping... > >> I don't really understand what is wrong here, could some1 help out with a > >> minimal example so I can ask the Qt forum? > >> > >> Git bisect leads to this > > > > https://git.lyx.org/?p=lyx.git;a=commitdiff;h=ebe4834684a523de15f55068a32b487cae251bea > > > > I ran cmake with --debug-trycompile and found some more infos, here is > the error: > > -- Looking for C++ include QtGui/qtgui-config.h > CMake Debug Log at C:/Program > Files/CMake/share/cmake-3.26/Modules/CheckIncludeFileCXX.cmake:94 > (try_compile): > Executing try_compile (HAVE_QTGUI_CONFIG_H) in: > > C:/lyx/master-build-64/CMakeFiles/CMakeScratch/TryCompile-896vpl > Call Stack (most recent call first): > development/cmake/ConfigureChecks.cmake:290 (check_include_file_cxx) > CMakeLists.txt:1146 (include) > > > CMake Error at > C:/lyx/master-build-64/CMakeFiles/CMakeScratch/TryCompile-896vpl/CMakeLists.txt:12 > (include_directories): > Error evaluating generator expression: > > $ > > Target "Qt6::ZlibPrivate" not found. > > here is the File > C:/lyx/master-build-64/CMakeFiles/CMakeScratch/TryCompile-896vpl/CMakeLists.txt: > > cmake_minimum_required(VERSION 3.28.0.0) > set(CMAKE_MODULE_PATH > "C:/lyx/master/development/cmake/modules;C:/Qt/6.6.0/msvc2019_64/lib/cmake/Qt6;C:/Qt/6.6.0/msvc2019_64/lib/cmake/Qt6/3rdparty/extra-cmake-modules/find-modules;C:/Qt/6.6.0/msvc2019_64/lib/cmake/Qt6/3rdparty/kwin") > cmake_policy(SET CMP0091 OLD) > cmake_policy(SET CMP0141 OLD) > cmake_policy(SET CMP0126 OLD) > cmake_policy(SET CMP0128 OLD) > project(CMAKE_TRY_COMPILE CXX) > set(CMAKE_VERBOSE_MAKEFILE 1) > set(CMAKE_CXX_FLAGS "/DWIN32 /D_WINDOWS /W3 /GR /EHsc") > set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILE_DEFINITIONS}") > set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${EXE_LINKER_FLAGS}") > include_directories(${INCLUDE_DIRECTORIES}) > set(CMAKE_SUPPRESS_REGENERATION 1) > link_directories(${LINK_DIRECTORIES}) > cmake_policy(SET CMP0065 OLD) > cmake_policy(SET CMP0083 OLD) > cmake_policy(SET CMP0155 OLD) > include("${CMAKE_ROOT}/Modules/Internal/HeaderpadWorkaround.cmake") > set(CMAKE_RUNTIME_OUTPUT_DIRECTORY > "C:/lyx/master-build-64/CMakeFiles/CMakeScratch/ TryCompile-896vpl") > add_executable(cmTC_cde46) > target_sources(cmTC_cde46 PRIVATE > > "C:/lyx/master-build-64/CMakeFiles/CMakeScratch/TryCompile-896vpl/CheckIncludeFile.cxx" > ) > file(GENERATE OUTPUT > "${CMAKE_BINARY_DIR}/cmTC_cde46_$>_loc" > CONTENT $) > target_link_libraries(cmTC_cde46 ${LINK_LIBRARIES}) > > > So it fails on > include_directories(${INCLUDE_DIRECTORIES}) > I have checked the file > C:/lyx/master-build-64/CMakeFiles/CMakeScratch/TryCompile-896vpl/CMakeCache.txt: > > //No help, variable specified on the command line. > INCLUDE_DIRECTORIES:UNINITIALIZED=C:/Qt/6.6.0/msvc2019_64/include/QtCore;C:/Qt/6.6.0/msvc2019_64/include;C:/Qt/6.6.0/msvc2019_64/include/QtZlib;$<$>:>;$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0>;$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0/QtZlib> > > Is this something variable specified by CMake or can we affect it? Maybe > it's the same thing as in this thread? > https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg218586.html > For quick reminder we ended up doing this: > https://git.lyx.org/?p=lyx.git;a=commitdiff;h=26a3a085 What bothers me, is that the following configure is OK. For me that implies that the first configure already created CMakeCache.txt. Could you compare the first CMakeCache.txt with later created version? Normally I would expect they have same content. Kornel pgpECsqnVpJCH.pgp Description: Digitale Signatur von OpenPGP -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: CMake fails on first configure
Am Sa., 21. Okt. 2023 um 08:42 Uhr schrieb Yu Jin : > Am So., 15. Okt. 2023 um 22:32 Uhr schrieb Yu Jin >: > >> Am Mo., 2. Okt. 2023 um 21:51 Uhr schrieb Yu Jin: >> >>> >>> C:\Qt\6.5.2\msvc2019_64\include\QtGui\qtgui-config.h >>> >> >> Ping... >> I don't really understand what is wrong here, could some1 help out with a >> minimal example so I can ask the Qt forum? >> >> Git bisect leads to this > > https://git.lyx.org/?p=lyx.git;a=commitdiff;h=ebe4834684a523de15f55068a32b487cae251bea > > I ran cmake with --debug-trycompile and found some more infos, here is the error: -- Looking for C++ include QtGui/qtgui-config.h CMake Debug Log at C:/Program Files/CMake/share/cmake-3.26/Modules/CheckIncludeFileCXX.cmake:94 (try_compile): Executing try_compile (HAVE_QTGUI_CONFIG_H) in: C:/lyx/master-build-64/CMakeFiles/CMakeScratch/TryCompile-896vpl Call Stack (most recent call first): development/cmake/ConfigureChecks.cmake:290 (check_include_file_cxx) CMakeLists.txt:1146 (include) CMake Error at C:/lyx/master-build-64/CMakeFiles/CMakeScratch/TryCompile-896vpl/CMakeLists.txt:12 (include_directories): Error evaluating generator expression: $ Target "Qt6::ZlibPrivate" not found. here is the File C:/lyx/master-build-64/CMakeFiles/CMakeScratch/TryCompile-896vpl/CMakeLists.txt: cmake_minimum_required(VERSION 3.28.0.0) set(CMAKE_MODULE_PATH "C:/lyx/master/development/cmake/modules;C:/Qt/6.6.0/msvc2019_64/lib/cmake/Qt6;C:/Qt/6.6.0/msvc2019_64/lib/cmake/Qt6/3rdparty/extra-cmake-modules/find-modules;C:/Qt/6.6.0/msvc2019_64/lib/cmake/Qt6/3rdparty/kwin") cmake_policy(SET CMP0091 OLD) cmake_policy(SET CMP0141 OLD) cmake_policy(SET CMP0126 OLD) cmake_policy(SET CMP0128 OLD) project(CMAKE_TRY_COMPILE CXX) set(CMAKE_VERBOSE_MAKEFILE 1) set(CMAKE_CXX_FLAGS "/DWIN32 /D_WINDOWS /W3 /GR /EHsc") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILE_DEFINITIONS}") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${EXE_LINKER_FLAGS}") include_directories(${INCLUDE_DIRECTORIES}) set(CMAKE_SUPPRESS_REGENERATION 1) link_directories(${LINK_DIRECTORIES}) cmake_policy(SET CMP0065 OLD) cmake_policy(SET CMP0083 OLD) cmake_policy(SET CMP0155 OLD) include("${CMAKE_ROOT}/Modules/Internal/HeaderpadWorkaround.cmake") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "C:/lyx/master-build-64/CMakeFiles/CMakeScratch/ TryCompile-896vpl") add_executable(cmTC_cde46) target_sources(cmTC_cde46 PRIVATE "C:/lyx/master-build-64/CMakeFiles/CMakeScratch/TryCompile-896vpl/CheckIncludeFile.cxx" ) file(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/cmTC_cde46_$>_loc" CONTENT $) target_link_libraries(cmTC_cde46 ${LINK_LIBRARIES}) So it fails on include_directories(${INCLUDE_DIRECTORIES}) I have checked the file C:/lyx/master-build-64/CMakeFiles/CMakeScratch/TryCompile-896vpl/CMakeCache.txt: //No help, variable specified on the command line. INCLUDE_DIRECTORIES:UNINITIALIZED=C:/Qt/6.6.0/msvc2019_64/include/QtCore;C:/Qt/6.6.0/msvc2019_64/include;C:/Qt/6.6.0/msvc2019_64/include/QtZlib;$<$>:>;$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0>;$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0/QtZlib> Is this something variable specified by CMake or can we affect it? Maybe it's the same thing as in this thread? https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg218586.html For quick reminder we ended up doing this: https://git.lyx.org/?p=lyx.git;a=commitdiff;h=26a3a085 -- Eugene -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: CMake fails on first configure
Am So., 15. Okt. 2023 um 22:32 Uhr schrieb Yu Jin : > Am Mo., 2. Okt. 2023 um 21:51 Uhr schrieb Yu Jin: > >> >> C:\Qt\6.5.2\msvc2019_64\include\QtGui\qtgui-config.h >> > > Ping... > I don't really understand what is wrong here, could some1 help out with a > minimal example so I can ask the Qt forum? > > Git bisect leads to this https://git.lyx.org/?p=lyx.git;a=commitdiff;h=ebe4834684a523de15f55068a32b487cae251bea -- Eugene -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: CMake fails on first configure
Am Mo., 2. Okt. 2023 um 21:51 Uhr schrieb Yu Jin: > > C:\Qt\6.5.2\msvc2019_64\include\QtGui\qtgui-config.h > Ping... I don't really understand what is wrong here, could some1 help out with a minimal example so I can ask the Qt forum? -- Eugene -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: CMake fails on first configure
Am Sa., 30. Sept. 2023 um 13:45 Uhr schrieb Kornel Benko: > Am Sat, 30 Sep 2023 09:35:57 +0200 > schrieb Yu Jin: > > > Am So., 17. Sept. 2023 um 07:24 Uhr schrieb Yu Jin: > > > > > Am So., 17. Sept. 2023 um 07:23 Uhr schrieb Yu Jin > > > >: > > > > > >> When I configure for the first time (into an empty folder) I get this > > >> error: > > >> > > >> CMake Error at > > >> > C:/lyx/master-build-64-qt6/CMakeFiles/CMakeScratch/TryCompile-re0snf/CMakeLists.txt:12 > > >> (include_directories): > > >> Error evaluating generator expression: > > >> > > >> $ > > >> > > >> Target "Qt6::ZlibPrivate" not found. > > >> > > >> (full log attached) > > >> > > > Log > > > > > >> If I ignore this error and click configure again it works. Looks like > it > > >> only occurs with Qt6. > > >> > > > > > Nobody has an idea?? I found this in the CMakeConfigureLog.yaml file: > > - > > kind: "try_compile-v1" > > backtrace: > > - "C:/Program > > Files/CMake/share/cmake-3.26/Modules/CheckIncludeFileCXX.cmake:94 > > (try_compile)" > > - "development/cmake/ConfigureChecks.cmake:290 > > (check_include_file_cxx)" > > - "CMakeLists.txt:1146 (include)" > > checks: > > - "Looking for C++ include QtGui/qtgui-config.h" > > directories: > > source: > > "C:/lyx/master-build-64-qt6/CMakeFiles/CMakeScratch/TryCompile-z4oq2c" > > binary: > > "C:/lyx/master-build-64-qt6/CMakeFiles/CMakeScratch/TryCompile-z4oq2c" > > cmakeVariables: > > CMAKE_CXX_FLAGS: "/DWIN32 /D_WINDOWS /W3 /GR /EHsc" > > CMAKE_MODULE_PATH: > > > "C:/lyx/master/development/cmake/modules;C:/Qt/6.5.2/msvc2019_64/lib/cmake/Qt6;C:/Qt/6.5.2/msvc2019_64/lib/cmake/Qt6/3rdparty/extra-cmake-modules/find-modules;C:/Qt/6.5.2/msvc2019_64/lib/cmake/Qt6/3rdparty/kwin" > > buildResult: > > variable: "HAVE_QTGUI_CONFIG_H" > > cached: true > > stdout: | > > exitCode: 1 > > > > (this is from another configure attempt). Of course the CMakeScratch > folder > > is empty. > > Where is the "QtGui/qtgui-config.h" located on your system? > Here it is under > /usr/include/x86_64-linux-gnu/qt6/QtGui/qtgui-config.h > The CMAKE_MODULE_PATH looks good (same as here but different system > prefix), does not > contain "qt6" path. > C:\Qt\6.5.2\msvc2019_64\include\QtGui\qtgui-config.h -- Eugene -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: CMake fails on first configure
Am Sat, 30 Sep 2023 09:35:57 +0200 schrieb Yu Jin : > Am So., 17. Sept. 2023 um 07:24 Uhr schrieb Yu Jin : > > > Am So., 17. Sept. 2023 um 07:23 Uhr schrieb Yu Jin > >: > > > >> When I configure for the first time (into an empty folder) I get this > >> error: > >> > >> CMake Error at > >> C:/lyx/master-build-64-qt6/CMakeFiles/CMakeScratch/TryCompile-re0snf/CMakeLists.txt:12 > >> (include_directories): > >> Error evaluating generator expression: > >> > >> $ > >> > >> Target "Qt6::ZlibPrivate" not found. > >> > >> (full log attached) > >> > > Log > > > >> If I ignore this error and click configure again it works. Looks like it > >> only occurs with Qt6. > >> > > > Nobody has an idea?? I found this in the CMakeConfigureLog.yaml file: > - > kind: "try_compile-v1" > backtrace: > - "C:/Program > Files/CMake/share/cmake-3.26/Modules/CheckIncludeFileCXX.cmake:94 > (try_compile)" > - "development/cmake/ConfigureChecks.cmake:290 > (check_include_file_cxx)" > - "CMakeLists.txt:1146 (include)" > checks: > - "Looking for C++ include QtGui/qtgui-config.h" > directories: > source: > "C:/lyx/master-build-64-qt6/CMakeFiles/CMakeScratch/TryCompile-z4oq2c" > binary: > "C:/lyx/master-build-64-qt6/CMakeFiles/CMakeScratch/TryCompile-z4oq2c" > cmakeVariables: > CMAKE_CXX_FLAGS: "/DWIN32 /D_WINDOWS /W3 /GR /EHsc" > CMAKE_MODULE_PATH: > "C:/lyx/master/development/cmake/modules;C:/Qt/6.5.2/msvc2019_64/lib/cmake/Qt6;C:/Qt/6.5.2/msvc2019_64/lib/cmake/Qt6/3rdparty/extra-cmake-modules/find-modules;C:/Qt/6.5.2/msvc2019_64/lib/cmake/Qt6/3rdparty/kwin" > buildResult: > variable: "HAVE_QTGUI_CONFIG_H" > cached: true > stdout: | > exitCode: 1 > > (this is from another configure attempt). Of course the CMakeScratch folder > is empty. Where is the "QtGui/qtgui-config.h" located on your system? Here it is under /usr/include/x86_64-linux-gnu/qt6/QtGui/qtgui-config.h The CMAKE_MODULE_PATH looks good (same as here but different system prefix), does not contain "qt6" path. Kornel pgp2AR2Wnxnzi.pgp Description: Digitale Signatur von OpenPGP -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: CMake fails on first configure
Am So., 17. Sept. 2023 um 07:24 Uhr schrieb Yu Jin : > Am So., 17. Sept. 2023 um 07:23 Uhr schrieb Yu Jin >: > >> When I configure for the first time (into an empty folder) I get this >> error: >> >> CMake Error at >> C:/lyx/master-build-64-qt6/CMakeFiles/CMakeScratch/TryCompile-re0snf/CMakeLists.txt:12 >> (include_directories): >> Error evaluating generator expression: >> >> $ >> >> Target "Qt6::ZlibPrivate" not found. >> >> (full log attached) >> > Log > >> If I ignore this error and click configure again it works. Looks like it >> only occurs with Qt6. >> > Nobody has an idea?? I found this in the CMakeConfigureLog.yaml file: - kind: "try_compile-v1" backtrace: - "C:/Program Files/CMake/share/cmake-3.26/Modules/CheckIncludeFileCXX.cmake:94 (try_compile)" - "development/cmake/ConfigureChecks.cmake:290 (check_include_file_cxx)" - "CMakeLists.txt:1146 (include)" checks: - "Looking for C++ include QtGui/qtgui-config.h" directories: source: "C:/lyx/master-build-64-qt6/CMakeFiles/CMakeScratch/TryCompile-z4oq2c" binary: "C:/lyx/master-build-64-qt6/CMakeFiles/CMakeScratch/TryCompile-z4oq2c" cmakeVariables: CMAKE_CXX_FLAGS: "/DWIN32 /D_WINDOWS /W3 /GR /EHsc" CMAKE_MODULE_PATH: "C:/lyx/master/development/cmake/modules;C:/Qt/6.5.2/msvc2019_64/lib/cmake/Qt6;C:/Qt/6.5.2/msvc2019_64/lib/cmake/Qt6/3rdparty/extra-cmake-modules/find-modules;C:/Qt/6.5.2/msvc2019_64/lib/cmake/Qt6/3rdparty/kwin" buildResult: variable: "HAVE_QTGUI_CONFIG_H" cached: true stdout: | exitCode: 1 (this is from another configure attempt). Of course the CMakeScratch folder is empty. -- Eugene -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: CMake fails on first configure
Am So., 17. Sept. 2023 um 07:23 Uhr schrieb Yu Jin : > When I configure for the first time (into an empty folder) I get this > error: > > CMake Error at > C:/lyx/master-build-64-qt6/CMakeFiles/CMakeScratch/TryCompile-re0snf/CMakeLists.txt:12 > (include_directories): > Error evaluating generator expression: > > $ > > Target "Qt6::ZlibPrivate" not found. > > (full log attached) > Log > If I ignore this error and click configure again it works. Looks like it > only occurs with Qt6. > -- Eugene TOP_SRC_DIR = C:/lyx/master Building out-of-source Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621. Selecting build type defaults from configure.ac Found GNUWIN32: C:/lyx/lyx-windows-deps-msvc2023_64 CXX11_FLAG_DETECTED = "/std:c++20" Compiler supports std_regex Found CXX11Compiler: /std:c++20 CMAKE_CXX_STANDARD set to 20 Performing Test CMAKE_HAVE_LIBC_PTHREAD Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed Looking for pthread_create in pthreads Looking for pthread_create in pthreads - not found Looking for pthread_create in pthread Looking for pthread_create in pthread - not found Found Threads: TRUE Performing Test HAVE_STDATOMIC Performing Test HAVE_STDATOMIC - Success Found WrapAtomic: TRUE Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) Found Qt-Version 6.5.2 Looking for magic_file Looking for magic_file - not found Function magic_file not found Looking for magic_open Looking for magic_open - not found Function magic_open not found Looking for magic_load Looking for magic_load - not found Function magic_load not found Looking for magic_close Looking for magic_close - not found Function magic_close not found Looking for magic_error Looking for magic_error - not found Function magic_error not found Could NOT find Magic (missing: Magic_INCLUDE_DIR Magic_LIBRARY HAS_MAGIC_FUNCTIONS) * Hunspell: - include: C:/lyx/master/3rdparty/hunspell/1.7.0/src/hunspell;C:/lyx/master/3rdparty/hunspell/1.7.0/src - library: hunspell Could NOT find ASPELL (missing: ASPELL_LIBRARY ASPELL_INCLUDE_DIR) ASPELL not found, building without ASPELL support Could NOT find ENCHANT (missing: ENCHANT_LIBRARY ENCHANT_INCLUDE_DIR) ENCHANT not found, building without ENCHANT support Building with USE_HUNSPELL Could NOT find LYX_PY_polib (missing: LYX_PY_POLIB) You will be unable to update layouttranslations file Looking for sys/types.h Looking for sys/types.h - found Looking for stdint.h Looking for stdint.h - found Looking for stddef.h Looking for stddef.h - found Check size of ptrdiff_t Check size of ptrdiff_t - done Check size of sig_atomic_t Check size of sig_atomic_t - done Check size of size_t Check size of size_t - done Check size of wchar_t Check size of wchar_t - done Check size of wint_t Check size of wint_t - done Check size of long long int Check size of long long int - done Check size of unsigned long long int Check size of unsigned long long int - done Check size of _Bool Check size of _Bool - done Looking for include file alloca.h Looking for include file alloca.h - not found Looking for include file dlfcn.h Looking for include file dlfcn.h - not found Looking for include file inttypes.h Looking for include file inttypes.h - found Looking for include file mach-o/dyld.h Looking for include file mach-o/dyld.h - not found Looking for include file memory.h Looking for include file memory.h - found Looking for include file search.h Looking for include file search.h - found Looking for include file stdlib.h Looking for include file stdlib.h - found Looking for include file strings.h Looking for include file strings.h - not found Looking for include file string.h Looking for include file string.h - found Looking for include file sys/bitypes.h Looking for include file sys/bitypes.h - not found Looking for include file sys/inttypes.h Looking for include file sys/inttypes.h - not found Looking for include file sys/param.h Looking for include file sys/param.h - not found Looking for include file sys/socket.h Looking for include file sys/socket.h - not found Looking for include file sys/stat.h Looking for include file sys/stat.h - found Looking for include file sys/time.h Looking for include file sys/time.h - not found Looking for include file unistd.h Looking for include file unistd.h - not found Looking for include file wchar.h Looking for include file wchar.h - found Looking for include file winsock2.h Looking for include file winsock2.h - found Looking for canonicalize_file_name Looking for canonicalize_file_name - not found Looking for dcgettext Looking for dcgettext - not found Looking for gettext Looking for gettext - not found Looking for iconv Looking for iconv - not found Looking for lstat Looking for lstat - not found Looking for mbrtowc Looking for mbrtowc - found Looking for mbsinit Looking for mbsinit - not found Looking for memmove Looking for memmove - found Looking for atoll Looking for atoll - found Looking for chown Looking for chown - not found Look