[Interest] Problems Building Qt 5.2.1 on Mac

Eric Feigenson eric at feigenson.net
Fri Mar 21 01:12:20 CET 2014


Hello all...

I've posted this to the forums (https://qt-project.org/forums/viewthread/39674/) but to no avail.

I have Qt 5.3.0, though my git is very weak... if I do "git describe" I get "v5.3.0-alpha1-12-ge045c53" which is probably more accurate.  Subquestion: How do I tell git to give me the current 5.2.* stream?

Problem:  When I do a "make" it chugs for a while, and then get:

UIProcess/API/qt/qquickwebview.cpp:1921:41: error: conversion from 'const uint64_t' (aka 'const unsigned long long') to 'QFlag' is ambiguous
        return int(Qt::InputMethodHints(state.inputMethodHints));
                                        ^~~~~~~~~~~~~~~~~~~~~~
/Volumes/Projects/Qt5.2.1/qt5/qtbase/lib/QtCore.framework/Headers/qflags.h:60:29: note: candidate constructor
    Q_DECL_CONSTEXPR inline QFlag(int ai) : i(ai) {}
                            ^
/Volumes/Projects/Qt5.2.1/qt5/qtbase/lib/QtCore.framework/Headers/qflags.h:61:29: note: candidate constructor
    Q_DECL_CONSTEXPR inline QFlag(uint ai) : i(int(ai)) {}
                            ^
/Volumes/Projects/Qt5.2.1/qt5/qtbase/lib/QtCore.framework/Headers/qflags.h:62:29: note: candidate constructor
    Q_DECL_CONSTEXPR inline QFlag(short ai) : i(int(ai)) {}
                            ^
/Volumes/Projects/Qt5.2.1/qt5/qtbase/lib/QtCore.framework/Headers/qflags.h:63:29: note: candidate constructor
    Q_DECL_CONSTEXPR inline QFlag(ushort ai) : i(int(uint(ai))) {}
                            ^
/Volumes/Projects/Qt5.2.1/qt5/qtbase/lib/QtCore.framework/Headers/qflags.h:108:42: note: passing argument to parameter 'f' here
    Q_DECL_CONSTEXPR inline QFlags(QFlag f) : i(f) {}

The command-line is:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -Wno-c++11-extensions -Wno-c++0x-extensions -iwithsysroot /usr/include/libxslt -iwithsysroot /usr/include/libxml2 -g -fPIC -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -std=c++11 -stdlib=libc++ -mmacosx-version-min=10.7 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -MMD -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0 -DBUILDING_QT__=1 -DENABLE_3D_RENDERING=1 -DENABLE_BLOB=1 -DENABLE_CANVAS_PATH=1 -DENABLE_CHANNEL_MESSAGING=1 -DENABLE_CSS_BOX_DECORATION_BREAK=1 -DENABLE_CSS_COMPOSITING=1 -DENABLE_CSS_EXCLUSIONS=1 -DENABLE_CSS_FILTERS=1 -DENABLE_CSS_IMAGE_SET=1 -DENABLE_CSS_REGIONS=1 -DENABLE_CSS_SHAPES=1 -DENABLE_CSS_STICKY_POSITION=1 -DENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED=1 -DENABLE_DATALIST_ELEMENT=1 -DENABLE_DETAILS_ELEMENT=1 -DENABLE_DEVICE_ORIENTATION=1 -DENABLE_FAST_MOBILE_SCROLLING=1 -DENABLE_FILTERS=1 -DENABLE_FTPDIR=1 -DENABLE_FULLSCREEN_API=1 -DENABLE_GEOLOCATION=1 -DENABLE_GESTURE_EVENTS=1 -DENABLE_ICONDATABASE=1 -DENABLE_IFRAME_SEAMLESS=1 -DENABLE_INPUT_TYPE_COLOR=1 -DENABLE_INSPECTOR=1 -DENABLE_INSPECTOR_SERVER=1 -DENABLE_JAVASCRIPT_DEBUGGER=1 -DENABLE_LEGACY_NOTIFICATIONS=1 -DENABLE_LEGACY_VIEWPORT_ADAPTION=1 -DENABLE_LEGACY_VENDOR_PREFIXES=1 -DENABLE_LEGACY_WEB_AUDIO=1 -DENABLE_LINK_PREFETCH=1 -DENABLE_METER_ELEMENT=1 -DENABLE_MHTML=1 -DENABLE_NOTIFICATIONS=1 -DENABLE_ORIENTATION_EVENTS=1 -DENABLE_PAGE_VISIBILITY_API=1 -DENABLE_PROGRESS_ELEMENT=1 -DENABLE_RESOLUTION_MEDIA_QUERY=1 -DENABLE_REQUEST_ANIMATION_FRAME=1 -DENABLE_SHARED_WORKERS=1 -DENABLE_SMOOTH_SCROLLING=1 -DENABLE_SQL_DATABASE=1 -DENABLE_SUBPIXEL_LAYOUT=1 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_TOUCH_ADJUSTMENT=1 -DENABLE_TOUCH_EVENTS=1 -DENABLE_VIEW_MODE_CSS_MEDIA=1 -DENABLE_WEB_SOCKETS=1 -DENABLE_WEB_TIMING=1 -DENABLE_WORKERS=1 -DENABLE_XHR_TIMEOUT=1 -DWTF_USE_TILED_BACKING_STORE=1 -DWTF_USE_CROSS_PLATFORM_CONTEXT_MENUS=1 -DHAVE_QTQUICK=1 -DHAVE_QTPRINTSUPPORT=1 -DHAVE_QSTYLE=1 -DHAVE_QTTESTLIB=1 -DHAVE_QTPOSITIONING=1 -DHAVE_QTSENSORS=1 -DWTF_USE_LIBXML2=1 -DENABLE_XSLT=1 -DWTF_USE_ZLIB=1 -DPLUGIN_ARCHITECTURE_UNSUPPORTED=1 -DWTF_USE_3D_GRAPHICS=1 -DENABLE_WEBGL=1 -DENABLE_CSS_SHADERS=1 -DENABLE_VIDEO=1 -DWTF_USE_QT_MULTIMEDIA=1 -DHAVE_SQLITE3=1 -DWTF_USE_GRAPHICS_SURFACE=1 -DENABLE_TOUCH_SLIDER=1 -DHAVE_QTTESTSUPPORT=1 -DENABLE_ACCELERATED_2D_CANVAS=0 -DENABLE_BATTERY_STATUS=0 -DENABLE_CANVAS_PROXY=0 -DENABLE_CSP_NEXT=0 -DENABLE_CSS_GRID_LAYOUT=0 -DENABLE_CSS_HIERARCHIES=0 -DENABLE_CSS_IMAGE_ORIENTATION=0 -DENABLE_CSS_IMAGE_RESOLUTION=0 -DENABLE_CSS_VARIABLES=0 -DENABLE_CSS3_CONDITIONAL_RULES=0 -DENABLE_CSS3_TEXT=0 -DENABLE_CSS3_TEXT_LINE_BREAK=0 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_DATAGRID=0 -DENABLE_DATA_TRANSFER_ITEMS=0 -DENABLE_DIRECTORY_UPLOAD=0 -DENABLE_DOWNLOAD_ATTRIBUTE=0 -DENABLE_FILE_SYSTEM=0 -DENABLE_FONT_LOAD_EVENTS=0 -DENABLE_GAMEPAD=0 -DENABLE_HIGH_DPI_CANVAS=0 -DENABLE_INDEXED_DATABASE=0 -DENABLE_INPUT_SPEECH=0 -DENABLE_INPUT_TYPE_DATE=0 -DENABLE_INPUT_TYPE_DATETIME_INCOMPLETE=0 -DENABLE_INPUT_TYPE_DATETIMELOCAL=0 -DENABLE_INPUT_TYPE_MONTH=0 -DENABLE_INPUT_TYPE_TIME=0 -DENABLE_INPUT_TYPE_WEEK=0 -DENABLE_LEGACY_CSS_VENDOR_PREFIXES=0 -DENABLE_MATHML=0 -DENABLE_MEDIA_SOURCE=0 -DENABLE_MEDIA_STATISTICS=0 -DENABLE_MEDIA_STREAM=0 -DENABLE_MICRODATA=0 -DENABLE_MOUSE_CURSOR_SCALE=0 -DENABLE_NAVIGATOR_CONTENT_UTILS=0 -DENABLE_NETSCAPE_PLUGIN_API=0 -DENABLE_NETWORK_INFO=0 -DENABLE_NOSNIFF=0 -DENABLE_PROXIMITY_EVENTS=0 -DENABLE_QUOTA=0 -DENABLE_RESOURCE_TIMING=0 -DENABLE_SCRIPTED_SPEECH=0 -DENABLE_SECCOMP_FILTERS=0 -DENABLE_SHADOW_DOM=0 -DENABLE_STYLE_SCOPED=0 -DENABLE_TEMPLATE_ELEMENT=0 -DENABLE_TEXT_AUTOSIZING=0 -DENABLE_THREADED_HTML_PARSER=0 -DENABLE_TOUCH_ICON_LOADING=0 -DENABLE_USER_TIMING=0 -DENABLE_VIBRATION=0 -DENABLE_VIDEO_TRACK=0 -DENABLE_WEB_AUDIO=0 -DSTATICALLY_LINKED_WITH_WebCore -DSTATICALLY_LINKED_WITH_ANGLE -DSTATICALLY_LINKED_WITH_JavaScriptCore -DSTATICALLY_LINKED_WITH_WTF -DBUILDING_WebKit2 -DBUILDING_WEBKIT -DQT_ASCII_CAST_WARNINGS -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_QUICK_LIB -DQT_MULTIMEDIA_LIB -DQT_QML_LIB -DQT_SENSORS_LIB -DQT_SQL_LIB -DQT_POSITIONING_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/Volumes/Projects/Qt5.2.1/qt5/qtbase/mkspecs/macx-clang -I. -I. -IPlatform -IPlatform/CoreIPC -IPlatform/qt -IShared -IShared/linux/SandboxProcess -IShared/API/c -IShared/Authentication -IShared/CoordinatedGraphics -IShared/CoreIPCSupport -IShared/Downloads -IShared/Downloads/qt -IShared/Network -IShared/Plugins -IShared/Plugins/Netscape -IShared/qt -IUIProcess -IUIProcess/API/C -IUIProcess/API/C/qt -IUIProcess/API/cpp -IUIProcess/API/cpp/qt -IUIProcess/API/qt -IUIProcess/Authentication -IUIProcess/CoordinatedGraphics -IUIProcess/Downloads -IUIProcess/InspectorServer -IUIProcess/InspectorServer/qt -IUIProcess/Launcher -IUIProcess/Notifications -IUIProcess/Plugins -IUIProcess/Storage -IUIProcess/qt -I/Volumes/Projects/Qt5.2.1/qt5/qtwebkit/Source/WebKit2/UIProcess/texmap -IWebProcess -IWebProcess/ApplicationCache -IWebProcess/Battery -IWebProcess/Cookies -IWebProcess/Cookies/qt -IWebProcess/FullScreen -IWebProcess/Geolocation -IWebProcess/IconDatabase -IWebProcess/InjectedBundle -IWebProcess/InjectedBundle/DOM -IWebProcess/InjectedBundle/API/c -IWebProcess/MediaCache -IWebProcess/NetworkInfo -IWebProcess/Notifications -IWebProcess/Plugins -IWebProcess/Plugins/Netscape -IWebProcess/ResourceCache -IWebProcess/Storage -IWebProcess/WebCoreSupport -IWebProcess/WebCoreSupport/qt -IWebProcess/WebPage -IWebProcess/WebPage/CoordinatedGraphics -IWebProcess/qt -IPluginProcess -I../WebKit/qt/Api -I../WTF/wtf/qt -Igenerated -IPlatform/mac -IPlatform/CoreIPC/mac -I../../Source -I/Volumes/Projects/Qt5.2.1/qt5/qtwebkit/Source/include -I../WebCore -I../WebCore/Modules/filesystem -I../WebCore/Modules/geolocation -I../WebCore/Modules/indexeddb -I../WebCore/Modules/navigatorcontentutils -I../WebCore/Modules/notifications -I../WebCore/Modules/proximity -I../WebCore/Modules/quota -I../WebCore/Modules/webaudio -I../WebCore/Modules/webdatabase -I../WebCore/Modules/websockets -I../WebCore/accessibility -I../WebCore/bindings -I../WebCore/bindings/generic -I../WebCore/bridge -I../WebCore/bridge/qt -I../WebCore/css -I../WebCore/dom -I../WebCore/dom/default -I../WebCore/editing -I../WebCore/fileapi -I../WebCore/history -I../WebCore/html -I../WebCore/html/canvas -I../WebCore/html/forms -I../WebCore/html/parser -I../WebCore/html/shadow -I../WebCore/html/track -I../WebCore/inspector -I../WebCore/loader -I../WebCore/loader/appcache -I../WebCore/loader/archive -I../WebCore/loader/cache -I../WebCore/loader/icon -I../WebCore/mathml -I../WebCore/page -I../WebCore/page/animation -I../WebCore/page/qt -I../WebCore/page/scrolling -I../WebCore/page/scrolling/coordinatedgraphics -I../WebCore/platform -I../WebCore/platform/animation -I../WebCore/platform/audio -I../WebCore/platform/graphics -I../WebCore/platform/graphics/cpu/arm -I../WebCore/platform/graphics/cpu/arm/filters -I../WebCore/platform/graphics/filters -I../WebCore/platform/graphics/filters/texmap -I../WebCore/platform/graphics/opengl -I../WebCore/platform/graphics/opentype -I../WebCore/platform/graphics/qt -I../WebCore/platform/graphics/surfaces -I../WebCore/platform/graphics/texmap -I../WebCore/platform/graphics/texmap/coordinated -I../WebCore/platform/graphics/transforms -I../WebCore/platform/image-decoders -I../WebCore/platform/image-decoders/bmp -I../WebCore/platform/image-decoders/ico -I../WebCore/platform/image-decoders/gif -I../WebCore/platform/image-decoders/jpeg -I../WebCore/platform/image-decoders/png -I../WebCore/platform/image-decoders/webp -I../WebCore/platform/leveldb -I../WebCore/platform/mock -I../WebCore/platform/network -I../WebCore/platform/network/qt -I../WebCore/platform/qt -I../WebCore/platform/sql -I../WebCore/platform/text -I../WebCore/platform/text/transcoder -I../WebCore/plugins -I../WebCore/rendering -I../WebCore/rendering/mathml -I../WebCore/rendering/shapes -I../WebCore/rendering/style -I../WebCore/rendering/svg -I../WebCore/storage -I../WebCore/svg -I../WebCore/svg/animation -I../WebCore/svg/graphics -I../WebCore/svg/graphics/filters -I../WebCore/svg/properties -I../WebCore/testing -I/Volumes/Projects/Qt5.2.1/qt5/qtwebkit/Source/WebCore/websockets -I../WebCore/workers -I../WebCore/xml -I../WebCore/xml/parser -I../ThirdParty -I../WebCore/bridge/jsc -I../WebCore/bindings/js -I../WebCore/bridge/c -I../WebCore/testing/js -I../WebCore/generated -I../ThirdParty/ANGLE/include/GLSLANG -I../ThirdParty/ANGLE/include/KHR -I../JavaScriptCore -I../../Source -I../WTF -I../JavaScriptCore/assembler -I../JavaScriptCore/bytecode -I../JavaScriptCore/bytecompiler -I../JavaScriptCore/heap -I../JavaScriptCore/dfg -I../JavaScriptCore/debugger -I../JavaScriptCore/disassembler -I../JavaScriptCore/interpreter -I../JavaScriptCore/jit -I../JavaScriptCore/llint -I../JavaScriptCore/parser -I../JavaScriptCore/profiler -I../JavaScriptCore/runtime -I../JavaScriptCore/tools -I../JavaScriptCore/yarr -I../JavaScriptCore/API -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/generated -I../JavaScriptCore/generated/debug -I../WTF -I../WTF/icu -I/Volumes/Projects/Qt5.2.1/qt5/qtdeclarative/lib/QtQuick.framework/Versions/5/Headers -I/Volumes/Projects/Qt5.2.1/qt5/qtdeclarative/lib/QtQuick.framework/Versions/5/Headers/5.3.0 -I/Volumes/Projects/Qt5.2.1/qt5/qtdeclarative/lib/QtQuick.framework/Versions/5/Headers/5.3.0/QtQuick -I/Volumes/Projects/Qt5.2.1/qt5/qtmultimedia/lib/QtMultimedia.framework/Versions/5/Headers -I/Volumes/Projects/Qt5.2.1/qt5/qtdeclarative/lib/QtQml.framework/Versions/5/Headers -I/Volumes/Projects/Qt5.2.1/qt5/qtbase/lib/QtGui.framework/Versions/5/Headers -I/Volumes/Projects/Qt5.2.1/qt5/qtbase/lib/QtGui.framework/Versions/5/Headers/5.3.0 -I/Volumes/Projects/Qt5.2.1/qt5/qtbase/lib/QtGui.framework/Versions/5/Headers/5.3.0/QtGui -I/Volumes/Projects/Qt5.2.1/qt5/qtsensors/lib/QtSensors.framework/Versions/5/Headers -I/Volumes/Projects/Qt5.2.1/qt5/qtbase/lib/QtCore.framework/Versions/5/Headers -I/Volumes/Projects/Qt5.2.1/qt5/qtbase/lib/QtCore.framework/Versions/5/Headers/5.3.0 -I/Volumes/Projects/Qt5.2.1/qt5/qtbase/lib/QtCore.framework/Versions/5/Headers/5.3.0/QtCore -I/Volumes/Projects/Qt5.2.1/qt5/qtbase/lib/QtSql.framework/Versions/5/Headers -I/Volumes/Projects/Qt5.2.1/qt5/qtlocation/lib/QtPositioning.framework/Versions/5/Headers -I/Volumes/Projects/Qt5.2.1/qt5/qtbase/lib/QtNetwork.framework/Versions/5/Headers -I.moc/debug -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AGL.framework/Headers -F/Volumes/Projects/Qt5.2.1/qt5/qtdeclarative/lib -F/Volumes/Projects/Qt5.2.1/qt5/qtmultimedia/lib -F/Volumes/Projects/Qt5.2.1/qt5/qtbase/lib -F/Volumes/Projects/Qt5.2.1/qt5/qtsensors/lib -F/Volumes/Projects/Qt5.2.1/qt5/qtlocation/lib -o .obj/debug/UIProcess/qt/PageViewportControllerClientQt.o UIProcess/qt/PageViewportControllerClientQt.cpp

(just ignore the "5.2.1" on my paths)

I run configure like this:

./configure -debug -prefix /Projects/Qt5.2.1 -no-pch -no-xcb -debug-and-release -sdk macosx10.8

My preflight cleaning consists of:

make clean
git reset --hard
git clean -dxf
git submodule foreach --recursive "git clean -dfx"
and to update my local git repository, I do this:

git pull
git submodule sync
git submodule update --recursive
I'm using Mac OS 10.8.5 and Xcode 5.0.2

Anyone have any suggestions? I'm not sure what to try next.

Thanks!

-Eric


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140320/f11747fe/attachment.html>


More information about the Interest mailing list