[LyX/master] Improved Qt framework configuration detection on macOS, add support for Qt6

Stephan Witt st.witt at gmx.net
Mon Oct 25 16:11:35 UTC 2021


Am 25.10.2021 um 17:19 schrieb Kornel Benko <kornel at lyx.org>:
> 
> Am Mon, 25 Oct 2021 16:52:32 +0200
> schrieb Stephan Witt <st.witt at gmx.net>:
> ...
>>> Does removing line src/tex2lyx/test/CMakeLists.txt:91 help?
>>> 	DEPENDS ${_tex2lyx} ${_lyx}
>>> 
>>> If that is the case we have to figure out how to allow this dependency.  
>> 
>> Ummhh… 
>> 
>> $ time cmake ...
>> real	6m31.442s
>> user	1m24.341s
>> sys	0m21.489s
>> 
>> This is a real fast system. But it’s horrible slow.
> 
> You are configuring with '-DLYX_ENABLE_EXPORT_TESTS:BOOL=ON' probably. The creating of
> 7000 export tests makes it slow.
> 
>> The change to cure the error above is to delete (or comment) lines 94 and 95:
>> 
>> updatetex2lyxtests DEPENDS Tex2lyxFilesUpdated
>> 
>> But the build fails with the errors in attached log.
>> 
>> Stephan
>> 
>> [xcode-cmake-build.log  application/octet-stream (42288 Bytes)] 
> 
> Could you check the difference in the clang-command line (automake vs cmake created
> commands)?
> Maybe difference in include paths. How else can be explained for instance
> 
> 
> 	In file included
> 	from /Users/lyx/Development/lyx/src/frontends/WorkAreaManager.cpp:16: In file
> 	included
> 	from /Users/lyx/Development/lyx/src/frontends/Application.h:17: /Users/lyx/Development/lyx/src/support/strfwd.h:56:28:
> 	error: reference to 'char_traits' is ambiguous typedef basic_string<char,
> 	char_traits<char>, allocator<char> > string;
> 	^ /Users/lyx/Development/lyx/src/support/strfwd.h:49:32: note: candidate found by
> 	name lookup is 'std::char_traits' template<typename Char> struct char_traits;

working:
c++ -stdlib=libc++ -DHAVE_CONFIG_H -I. -I/Users/lyx/Development/lyx/src/frontends -I../..  -Wall -Wextra -I/Users/lyx/Development/lyx/src/frontends/.. -I/Users/lyx/Development/lyx/3rdparty/boost   -I/Users/lyx/Development/lyx/3rdparty/nod -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -arch arm64 -mmacosx-version-min=10.14 -fPIC -Os -std=c++17  -Wno-deprecated-register -std=c++17  -std=c++17 -MT WorkAreaManager.o -MD -MP -MF $depbase.Tpo -c -o WorkAreaManager.o /Users/lyx/Development/lyx/src/frontends/WorkAreaManager.cpp

vs. broken:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target x86_64-apple-macos11.1 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DCMAKE_INTDIR\=\"Debug\" -DBOOST_USER_CONFIG\=\<config.h\> -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -I/Users/lyx/Development/lyx-build/cmake/2.4.0dev/lib/Debug/include -I/Users/lyx/Development/lyx-build/cmake/2.4.0dev -I/Users/lyx/Development/lyx/src -I/Users/Shared/LyX/utilities/include -I/Users/lyx/Development/lyx/3rdparty/boost -I/Users/lyx/Development/lyx/3rdparty/nod -I/Users/lyx/Development/lyx/src/frontends -I/Users/lyx/Development/lyx-build/cmake/2.4.0dev/src/frontends/LyX.build/Debug/frontends.build/DerivedSources-normal/x86_64 -I/Users/lyx/Development/lyx-build/cmake/2.4.0dev/src/frontends/LyX.build/Debug/frontends.build/DerivedSources/x86_64 -I/Users/lyx/Development/lyx-build/cmake/2.4.0dev/src/frontends/LyX.build/Debug/frontends.build/DerivedSources -F/Users/lyx/Development/lyx-build/cmake/2.4.0dev/lib/Debug -Wall -Wextra --std\=c++17 -Wno-deprecated-register -DENABLE_ASSERTIONS\=1 -fno-strict-aliasing -D_DEBUG -std\=c++17 -MMD -MT dependencies -MF /Users/lyx/Development/lyx-build/cmake/2.4.0dev/src/frontends/LyX.build/Debug/frontends.build/Objects-normal/x86_64/WorkAreaManager.d --serialize-diagnostics /Users/lyx/Development/lyx-build/cmake/2.4.0dev/src/frontends/LyX.build/Debug/frontends.build/Objects-normal/x86_64/WorkAreaManager.dia -c /Users/lyx/Development/lyx/src/frontends/WorkAreaManager.cpp -o /Users/lyx/Development/lyx-build/cmake/2.4.0dev/src/frontends/LyX.build/Debug/frontends.build/Objects-normal/x86_64/WorkAreaManager.o

$ c++ -v
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: arm64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$ clang -v
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: arm64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Sorry, I’d postpone this problem. As said it’s not my priority and I’m not sure about the cost-benefit ratio here. ATM I’m pleased by the success with the working auto tools build.

Stephan


More information about the lyx-devel mailing list