Compile Error under macOS
Stephan Witt
st.witt at gmx.net
Tue Dec 7 07:06:41 UTC 2021
Am 07.12.2021 um 07:38 schrieb Stephan Witt <st.witt at gmx.net>:
>
> Am 06.12.2021 um 14:43 schrieb Christoph Schmitz <chr.schmitz at web.de>:
>>
>> Stephan,
>>
>> Many thanks! Adding the new config parameter "--with-macos-deployment-target=11.1" solved the issue. On both computers.
>
> Ok, that’s fine.
>
>> Qt is installed on my system via homebrew. The currently installed version is 6.2.2.
>
> I’ve checked the source and the file qtbase/cmake/QtAutoDetect.cmake in qt-everywhere-src-6.2.2 defines 10.14 as Qt default.
>
> The self-compiled universal (Intel+M1) Qt-6.2.2 frameworks can be used with --with-macos-deployment-target=10.14.
>
> I think the homebrew Qt is build with non-default configuration. I cannot say why.
Another possibility is the Xcode version you’re (or homebrew is) using.
The Qt web page https://doc.qt.io/qt-6/supported-platforms.html says it is Xcode 12 (11 SDK).
On my system it is:
-- CMAKE_OSX_SYSROOT: "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk"
-- CMAKE_OSX_DEPLOYMENT_TARGET: "10.14"
-- QT_MAC_SDK_VERSION: "11.1"
-- QT_MAC_XCODE_VERSION: "Xcode 12.4 Build version 12D4e“
Stephan
>>> Am 06.12.2021 um 07:35 schrieb Stephan Witt <st.witt at gmx.net>:
>>>
>>> Am 06.12.2021 um 06:25 schrieb Christoph Schmitz <chr.schmitz at web.de>:
>>>>
>>>> I compile LyX on two MacBooks (one Intel Core i7, and one Apple M1), both running macOS 12.1 Beta (21C5045a).
>>>
>>> Sorry, this doesn’t answer the question about your Qt version.
>>>
>>> The error message tells us it’s impossible to compile LyX with your Qt-version for macOS 10.14.
>>>
>>> You may run configure with --with-macos-deployment-target=10.15 or --with-macos-deployment-target=11.1 …
>>>
>>> My goal is to build LyX for macOS 10.14 on 11.1 and to tell elder macOS the package cannot be used.
>>> I couldn’t achieve this w/o explicitly putting this information into Info.plist.
>>> So I decided to make it a configure option and this leads to your problem. I wanted to get the entry
>>> in Info.plist in sync with the compiler options and I added the auto detection of the lowest possible value.
>>>
>>> On your system this value is too low apparently.
>>>
>>> Stephan
>>>
>>>>> Am 05.12.2021 um 22:49 schrieb Stephan Witt <st.witt at gmx.net>:
>>>>>
>>>>> Am 05.12.2021 um 22:32 schrieb Christoph Schmitz <chr.schmitz at web.de>:
>>>>>>
>>>>>> The latest changes have introduced an issue for macOS X (Qt 6).
>>>>>
>>>>> What’s your Qt version? I’m using 6.2.0 on macOS 11.1 (with 11.1 SDK) and it works with minimum of macOS 10.14.
>>>>>
>>>>> Stephan
>>>>>
>>>>>>
>>>>>> These are the last lines of the output before the error occurs:
>>>>>>
>>>>>> file included from filetools.cpp:42:
>>>>>> In file included from /opt/homebrew/lib/QtCore.framework/Headers/QDir:1:
>>>>>> In file included from /opt/homebrew/lib/QtCore.framework/Headers/qdir.h:45:
>>>>>> /opt/homebrew/lib/QtCore.framework/Headers/qfileinfo.h:118:14: error: '~path' is unavailable: introduced in macOS 10.15
>>>>>> { return QtPrivate::toFilesystemPath(filePath()); }
>>>>>> ^
>>>>>> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/filesystem:961:3: note: '~path' has been explicitly marked unavailable here
>>>>>> ~path() = default;
>>>>>> ^
>>>>>> In file included from filetools.cpp:42:
>>>>>> In file included from /opt/homebrew/lib/QtCore.framework/Headers/QDir:1:
>>>>>> In file included from /opt/homebrew/lib/QtCore.framework/Headers/qdir.h:45:
>>>>>> /opt/homebrew/lib/QtCore.framework/Headers/qfileinfo.h:120:14: error: '~path' is unavailable: introduced in macOS 10.15
>>>>>> { return QtPrivate::toFilesystemPath(absoluteFilePath()); }
>>>>>> ^
>>>>>> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/filesystem:961:3: note: '~path' has been explicitly marked unavailable here
>>>>>> ~path() = default;
>>>>>> ^
>>>>>> fatal error: too many errors emitted, stopping now [-ferror-limit=]
>>>>>> 20 errors generated.
>>>>>> make[5]: *** [filetools.o] Error 1
>>>>>> make[4]: *** [all] Error 2
>>>>>> make[3]: *** [all-recursive] Error 1
>>>>>> make[2]: *** [all] Error 2
>>>>>> make[1]: *** [all-recursive] Error 1
>>>>>> make: *** [all] Error 2
>>>>>>
>>>>>> I also try to attach the full log, but last time it was removed from the mailer.
>>>>>>
>>>>>> Chris
>>>>>>
>>>>>> <MakeLyX.log>
>>>>>> --
>>>>>> lyx-devel mailing list
>>>>>> lyx-devel at lists.lyx.org
>>>>>> http://lists.lyx.org/mailman/listinfo/lyx-devel
>>>>>
>>>>
>>>> --
>>>> lyx-devel mailing list
>>>> lyx-devel at lists.lyx.org
>>>> http://lists.lyx.org/mailman/listinfo/lyx-devel
>>>
>>
>> --
>> lyx-devel mailing list
>> lyx-devel at lists.lyx.org
>> http://lists.lyx.org/mailman/listinfo/lyx-devel
>
More information about the lyx-devel
mailing list