Details
Description
qt-everywhere-opensource-src-5.8.0.tar.gz downloaded from qt.io website fails to build as -platform macx-clang-32 parameter.
Build settings
./configure -platform macx-clang-32 -skip qtwebengine -skip translations -opensource -confirm-license -developer-build make
Build log: Xcode 8.2.1 on OS X 10.11.6
qnsview.mm:339:39: error: no viable conversion from 'NSRect' (aka '_NSRect') to 'CGRect' geometry = QRectF::fromCGRect([self bounds]).toRect(); ^~~~~~~~~~~~~ Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:46:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'NSRect' (aka '_NSRect') to 'const CGRect &' for 1st argument struct CGRect { ^ Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:46:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'NSRect' (aka '_NSRect') to 'CGRect &&' for 1st argument ../../../../include/QtCore/../../src/corelib/tools/qrect.h:616:37: note: passing argument to parameter 'rect' here static QRectF fromCGRect(CGRect rect) Q_DECL_NOTHROW Q_REQUIRED_RESULT; ^ qnsview.mm:342:39: error: no viable conversion from 'NSRect' (aka '_NSRect') to 'CGRect' geometry = QRectF::fromCGRect([self frame]).toRect(); ^~~~~~~~~~~~ Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:46:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'NSRect' (aka '_NSRect') to 'const CGRect &' for 1st argument struct CGRect { ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:46:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'NSRect' (aka '_NSRect') to 'CGRect &&' for 1st argument ../../../../include/QtCore/../../src/corelib/tools/qrect.h:616:37: note: passing argument to parameter 'rect' here static QRectF fromCGRect(CGRect rect) Q_DECL_NOTHROW Q_REQUIRED_RESULT; ^ qnsview.mm:556:108: error: no viable conversion from 'NSRect' (aka '_NSRect') to 'CGRect' qCDebug(lcQpaCocoaWindow) << "[QNSView drawRect:]" << m_platformWindow->window() << QRectF::fromCGRect(dirtyRect); ^~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:46:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'NSRect' (aka '_NSRect') to 'const CGRect &' for 1st argument struct CGRect { ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:46:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'NSRect' (aka '_NSRect') to 'CGRect &&' for 1st argument ../../../../include/QtCore/../../src/corelib/tools/qrect.h:616:37: note: passing argument to parameter 'rect' here static QRectF fromCGRect(CGRect rect) Q_DECL_NOTHROW Q_REQUIRED_RESULT;
Same build failure happens with Xcode 7.3.1 on OS X 10.11.6
64bit with -platform macx-clang builds succesfully