Error when compiling with Qt6 on macOS
Christoph Schmitz
chr.schmitz at web.de
Thu Mar 25 13:50:20 UTC 2021
One library is obviously not installed by Homebrew: Qt6MacExtrasConfig. I searched for the two files manually, but without success.
-- CMake error message:
TOP_SRC_DIR = /Users/chris/Git/LyX
Building out-of-source
Selecting build type defaults from configure.ac
CXX11_FLAG_DETECTED = "--std=c++17 -Wno-deprecated-register"
Compiler supports std_regex
Using clang
CMake Error at CMakeLists.txt:793 (find_package):
Could not find a package configuration file provided by "Qt6MacExtras" with
any of the following names:
Qt6MacExtrasConfig.cmake
qt6macextras-config.cmake
Add the installation prefix of "Qt6MacExtras" to CMAKE_PREFIX_PATH or set
"Qt6MacExtras_DIR" to a directory containing one of the above files. If
"Qt6MacExtras" provides a separate development package or SDK, be sure it
has been installed.
Configuring incomplete, errors occurred!
See also "/Users/chris/Git/LyX/build/CMakeFiles/CMakeOutput.log".
See also "/Users/chris/Git/LyX/build/CMakeFiles/CMakeError.log".
Chris
> Am 25.03.2021 um 13:40 schrieb Kornel Benko <kornel at lyx.org>:
>
> Am Thu, 25 Mar 2021 12:38:22 +0100
> schrieb Christoph Schmitz <chr.schmitz at web.de <mailto:chr.schmitz at web.de>>:
>
>> Yes, I tried a clean build several times. And I tried it now again:
>>
>> - I deleted the local repository.
>> - I cloned the repository.
>> - I removed Qt5 (brew remove Qt5 && brew cleanup).
>>
>> Attached is the complete build log.
>>
>> Unfortunately I have no idea what to do with cmake. I started the cmake GUI and clicked
>> on "Configure". There are a few surprising parameters (see attached screenshot):
>>
>> LYX_USE_QT=QT4
>> QT_MKSPECS_DIR=**Unknown**
>> Qt5Core_DIR is present while Qt6Core_DIR is present as well.
>>
>> Chris
>>
>
> Try calling cmake with '-DLYX_USE_QT=QT6'
> (or, in the GUI, select LYX_USE_QT to QT6)
>
> Configure should fail if QT6 is not complete.
>
> Kornel
> --
> lyx-devel mailing list
> lyx-devel at lists.lyx.org <mailto:lyx-devel at lists.lyx.org>
> http://lists.lyx.org/mailman/listinfo/lyx-devel <http://lists.lyx.org/mailman/listinfo/lyx-devel>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210325/0948cf7b/attachment-0001.html>
More information about the lyx-devel
mailing list