Description
I can not build Qt with QtWebEngine on macOS 10.14 with XCode 10.3. There are a number of errors like this one:
[10742/15630] OBJCXX obj/services/shape_detection/lib/face_detection_provider_mac.o
FAILED: obj/services/shape_detection/lib/face_detection_provider_mac.o
../../../../../../../../../Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -MMD -MF obj/services/shape_detection/lib/face_detection_provider_mac.o.d -DNO
TCMALLOC -DCHROMIUM_BUILD -DTOOLKIT_QT -D_LIBCPP_HAS_NO_ALIGNED_ALLOCATION -DCR_XCODE_VERSION=1030 -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -D_ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCOR
E=0 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DWEBP_EXTERN=extern -DENABLE_IPC_FUZZER -DUSE_EGL -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_
STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_HAS_JPEG_LIBRARY -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"g
pu/config/gpu_driver_bug_workaround_autogen.h\" -DSK_BUILD_FOR_MAC -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -Igen -I../../../../../qt5/qtwebengine/src/3rdparty
/chromium -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/libwebp/src -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/libyuv/include -I../../../../../qt5/qtweben
gine/src/3rdparty/chromium/third_party/khronos -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/gpu -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/ced/src -I../../../../../q
t5/qtwebengine/src/3rdparty/chromium/third_party/icu/source/common -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/icu/source/i18n -I../../../../../qt5/qtwebengine/src/3rdparty/chr
omium/skia/config -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/skia/ext -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/skia/include/c -I../../../../../qt5/qtwebengine/sr
c/3rdparty/chromium/third_party/skia/include/config -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/skia/include/core -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_p
arty/skia/include/docs -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/skia/include/effects -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/skia/include/encode -
I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/skia/include/gpu -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/skia/include/pathops -I../../../../../qt5/qtweben
gine/src/3rdparty/chromium/third_party/skia/include/ports -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/skia/include/utils -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/
third_party/skia/include/codec -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/skia/src/gpu -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/skia/src/sksl -I../..
/../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/skia/modules/skottie/include -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/protobuf/src -fno-strict-aliasing -fstack-p
rotector-strong -Wno-builtin-macro-redefined -D_DATE= -DTIME= -DTIMESTAMP_= -Wno-unknown-attributes -Wno-unknown-pragmas -Wno-unknown-warning-option -fcolor-diagnostics -fmerge-all-constant
s -no-canonical-prefixes -arch x86_64 -Wall -Wextra -Wimplicit-fallthrough -Wthread-safety -Wunguarded-availability -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unn
eeded-internal-declaration -Wno-undefined-var-template -Wno-ignored-pragma-optimize -O0 -fno-omit-frame-pointer -gdwarf-2 -isysroot ../../../../../../../../../Applications/Xcode.app/Contents/Develope
r/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.14 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wexit-time-destructors -
Wno-shorten-64-to-32 -Wno-parentheses-equality -Wno-tautological-compare -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=c+14 -stdlib=libc+ -fobjc-call-cxx-cdtors -Wobjc-mis
sing-property-synthesis -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c ../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/face_detection_provider_mac.mm -o obj/se
rvices/shape_detection/lib/face_detection_provider_mac.o
In file included from ../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/face_detection_provider_mac.mm:13:
In file included from ../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/face_detection_impl_mac_vision.h:16:
../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/detection_utils_mac.h:35:56: error: unexpected interface name 'NSError': expected expression
base::RepeatingCallback<void(VNRequest* request, NSError* error)>;
^
../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/detection_utils_mac.h:35:65: error: use of undeclared identifier 'error'
base::RepeatingCallback<void(VNRequest* request, NSError* error)>;
^
../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/detection_utils_mac.h:35:36: error: use of undeclared identifier 'VNRequest'; did you mean 'noRequest'?
base::RepeatingCallback<void(VNRequest* request, NSError* error)>;
^~~~~~~~~
noRequest
../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/Power.h:82:3: note: 'noRequest' declared here
noRequest = 2,
^
In file included from ../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/face_detection_provider_mac.mm:13:
In file included from ../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/face_detection_impl_mac_vision.h:16:
../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/detection_utils_mac.h:35:47: error: use of undeclared identifier 'request'; did you mean 'noRequest'?
base::RepeatingCallback<void(VNRequest* request, NSError* error)>;
^~~~~~~
noRequest
../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/Power.h:82:3: note: 'noRequest' declared here
noRequest = 2,
^
In file included from ../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/face_detection_provider_mac.mm:13:
In file included from ../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/face_detection_impl_mac_vision.h:16:
../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/detection_utils_mac.h:42:59: error: unknown type name 'Callback'
Callback callback);
^
../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/detection_utils_mac.h:50:28: error: unknown type name 'Callback'
VisionAPIAsyncRequestMac(Callback callback, Class request_class);
^
../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/detection_utils_mac.h:52:25: error: use of undeclared identifier 'VNRequest'; did you mean 'noRequest'?
base::scoped_nsobject<VNRequest> request_;
^~~~~~~~~
noRequest
../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/Power.h:82:3: note: 'noRequest' declared here
noRequest = 2,
^
In file included from ../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/face_detection_provider_mac.mm:13:
In file included from ../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/face_detection_impl_mac_vision.h:16:
../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/detection_utils_mac.h:52:25: error: template argument for template type parameter must be a type
base::scoped_nsobject<VNRequest> request_;
^~~~~~~~~
../../../../../qt5/qtwebengine/src/3rdparty/chromium/base/mac/scoped_nsobject.h:146:20: note: template parameter is declared here
template <typename NST>
^
In file included from ../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/face_detection_provider_mac.mm:13:
In file included from ../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/face_detection_impl_mac_vision.h:16:
../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/detection_utils_mac.h:53:9: error: unknown type name 'Callback'
const Callback callback_;
^
In file included from ../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/face_detection_provider_mac.mm:13:
../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/shape_detection/face_detection_impl_mac_vision.h:39:24: error: unknown type name 'VNRequest'
void OnFacesDetected(VNRequest* request, NSError* error);
^
10 errors generated.
ninja: build stopped: subcommand failed.
My build settings are:
../qt5/configure \
-sse2 -sse3 -ssse3 -sse4.1 -sse4.2 -avx -no-avx2 -no-avx512 -debug -no-framework -opensource -confirm-license -shared -icu -nomake examples -nomake tests -no-compile-examples -no-gif -no-pulseaudio -no-alsa -no-cups -no-gstreamer -skip qtactiveqt -skip qtcharts -skip qtconnectivity -skip qtspeech -skip qtdoc -skip qtgamepad -skip qtlocation -skip qtpurchasing -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtvirtualkeyboard -skip qtwayland -webengine-webchannel -webengine-v8-snapshot -skip qtxmlpatterns -no-feature-movie -no-feature-big_codecs -feature-highdpiscaling -no-directfb -no-use-gold-linker -system-zlib -system-libpng -system-libjpeg -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite2 -no-sql-sqlite -no-sql-tds -no-journald -no-syslog -no-slog2 -opengl desktop -no-ssl -no-openssl -no-securetransport -no-libproxy -no-sctp -c+std c+14