Am Sat, 30 Sep 2023 09:35:57 +0200
schrieb Yu Jin <technikma...@gmail.com>:

> Am So., 17. Sept. 2023 um 07:24 Uhr schrieb Yu Jin <technikma...@gmail.com>:
> 
> > Am So., 17. Sept. 2023 um 07:23 Uhr schrieb Yu Jin <technikma...@gmail.com
> > >:
> >
> >> 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_PROPERTY:Qt6::ZlibPrivate,_qt_module_has_private_headers>
> >>
> >>   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 

Attachment: pgp2AR2Wnxnzi.pgp
Description: Digitale Signatur von OpenPGP

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to