Hi,

usually I’m using the --enable-cxx11 configure option to build LyX binaries on 
Mac with autotools.

Today I saw a warning with lyx-2.3.0 as follows:
configure: WARNING: unrecognized options: --enable-cxx11

So I tried to build w/o this option. But this leads to a configure error:

configure:10942: g++ -o conftest  
-I/Users/Shared/LyX/qt-5.9.4-frameworks-cocoa-x86_64//include 
-I/Users/Shared/LyX/qt-5.9.4-frameworks-cocoa-x86_64//i
nclude/Qt -I/Users/Shared/LyX/qt-5.9.4-frameworks-cocoa-x86_64//include/QtCore 
-I/Users/Shared/LyX/qt-5.9.4-frameworks-cocoa-x86_64//include/QtGui -I/U
sers/Shared/LyX/qt-5.9.4-frameworks-cocoa-x86_64//include/QtWidgets 
-I/Users/Shared/LyX/qt-5.9.4-frameworks-cocoa-x86_64//include/QtSvg 
-I/Users/Shared
/LyX/qt-5.9.4-frameworks-cocoa-x86_64//include/QtConcurrent 
-I/Users/Shared/LyX/qt-5.9.4-frameworks-cocoa-x86_64//include/QtMacExtras 
-F/Users/Shared/L
yX/qt-5.9.4-frameworks-cocoa-x86_64//lib  -I/Users/Shared/LyX/utilities/include 
  -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX
.platform/Developer/SDKs/MacOSX10.12.sdk -arch x86_64 -mmacosx-version-min=10.7 
 -L/Users/Shared/LyX/utilities/lib -isysroot /Applications/Xcode.app/Co
ntents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -arch 
x86_64 -mmacosx-version-min=10.7 conftest.cpp  -lmagic -framework QtCor
e -framework QtGui >&5
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum 
deployment target of OS X 10.9
In file included from conftest.cpp:35:
/Users/Shared/LyX/qt-5.9.4-frameworks-cocoa-x86_64//include/QtCore/qglobal.h:45:12:
 fatal error: 'type_traits' file not found
#  include <type_traits>
           ^
1 error generated.
configure:10942: $? = 1

Back to configure with the „unrecognized“ option it works and the corresponding 
line in config.log is this:

configure:10942: c++ -stdlib=libc++ -o conftest -std=c++14  -std=c++11 
-I/Users/Shared/LyX/qt-5.9.4-frameworks-cocoa-x86_64//include -I/Users/Shared/Ly
X/qt-5.9.4-frameworks-cocoa-x86_64//include/Qt 
-I/Users/Shared/LyX/qt-5.9.4-frameworks-cocoa-x86_64//include/QtCore 
-I/Users/Shared/LyX/qt-5.9.4-framew
orks-cocoa-x86_64//include/QtGui 
-I/Users/Shared/LyX/qt-5.9.4-frameworks-cocoa-x86_64//include/QtWidgets 
-I/Users/Shared/LyX/qt-5.9.4-frameworks-cocoa-
x86_64//include/QtSvg 
-I/Users/Shared/LyX/qt-5.9.4-frameworks-cocoa-x86_64//include/QtConcurrent 
-I/Users/Shared/LyX/qt-5.9.4-frameworks-cocoa-x86_64//
include/QtMacExtras -F/Users/Shared/LyX/qt-5.9.4-frameworks-cocoa-x86_64//lib  
-I/Users/Shared/LyX/utilities/include   -isysroot /Applications/Xcode.ap
p/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk 
-arch x86_64 -mmacosx-version-min=10.7  -L/Users/Shared/LyX/utilities/lib
 -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
 -arch x86_64 -mmacosx-version-min=10.7 c
onftest.cpp  -lmagic -framework QtCore -framework QtConcurrent -framework QtSvg 
-framework QtWidgets -framework QtMacExtras -framework QtGui >&5
configure:10942: $? = 0

Is any other information needed to improve the situation?

Stephan

Reply via email to