Include dirs, and qt warnings on 10.6, 10.7



  • When compiling on 10.6 or 10.7 I have to manually copy the include and src directories into $QTDIR in order for my applications to work.

    Also: it's been a few releases of qt4 that when compiling on mac 10.6 or 10.7 I'm getting the warnings below. Everything works fine - but still, no warnings means perfect code ;-)

    (I had to trim the warnings by a factor of 10 to stay in the 6000 char limit)

    ln: /opt/programs/Darwin_macosx10.6-i386-gcc4.2.1/qt/4.8.4/qt-everywhere-opensource-src-4.8.4/include/QtCore/qconfig.h: File exists
    ln: /opt/programs/Darwin_macosx10.6-i386-gcc4.2.1/qt/4.8.4/qt-everywhere-opensource-src-4.8.4/include/Qt/qconfig.h: File exists
    WARNING: DESTDIR: Cannot access directory '/include/WebCore'
    WARNING: Failure to find: generated/WebKeyValueStorageManagerMessages.h
    WARNING: Failure to find: generated/WebResourceCacheManagerMessages.h
    WARNING: Failure to find: generated/WebResourceCacheManagerProxyMessages.h
    Project MESSAGE: Wayland GL Integration: xcomposite_glx
    Project MESSAGE: Wayland GL Integration: xcomposite_glx
    WARNING: /opt/programs/Darwin_macosx10.6-i386-gcc4.2.1/qt/4.8.4/qt-everywhere-opensource-src-4.8.4/src/plugins/s60/feedback/feedback.pro:16: Unable to find file for inclusion data_caging_paths
    WARNING: /opt/programs/Darwin_macosx10.6-i386-gcc4.2.1/qt/4.8.4/qt-everywhere-opensource-src-4.8.4/src/plugins/s60/feedback/feedback.pro:16: Unable to find file for inclusion data_caging_paths
    ../../corelib/tools/qlocale_mac.mm:72: warning: ‘QByteArray getMacLocaleName()’ defined but not used
    ../../corelib/tools/qlocale_mac.mm:281: warning: ‘quint8 macFirstDayOfWeek()’ defined but not used
    ../../corelib/tools/qlocale_mac.mm:290: warning: ‘QString macCurrencySymbol(QLocale::CurrencySymbolFormat)’ defined but not used
    /usr/bin/ranlib: file: libbootstrap.a(qisciicodec.o) has no symbols
    /usr/bin/ranlib: file: libbootstrap.a(qfilesystemengine_mac.o) has no symbols
    ranlib: file: libbootstrap.a(qisciicodec.o) has no symbols
    ranlib: file: libbootstrap.a(qfilesystemengine_mac.o) has no symbols
    In file included from ../3rdparty/harfbuzz/src/harfbuzz-shaper-all.cpp:25:
    ../3rdparty/harfbuzz/src/harfbuzz-shaper.cpp: In function ‘HB_Bool HB_OpenTypePosition(HB_ShaperItem*, int, HB_Bool)’:
    ../3rdparty/harfbuzz/src/harfbuzz-shaper.cpp:1322: warning: comparison between signed and unsigned integer expressions
    codecs/qiconvcodec.cpp:309: warning: unused parameter ‘cd’
    access/qnetworkaccessdebugpipebackend_p.h:0: Note: No relevant classes found. No output generated.
    kernel/qwidget_mac.mm: In function ‘NSDrawer* qt_mac_drawer_for(const QWidget*)’:
    kernel/qwidget_mac.mm:224: warning: Mac OS X version 10.5 or later is needed for use of foreach-collection-statement
    kernel/qwidget_mac.mm: In member function ‘void QWidgetPrivate::stackUnder_sys(QWidget*)’:
    kernel/qt_cocoa_helpers_mac.mm:1691: warning: right shift count >= width of type
    widgets/qmenu_mac.mm: In function ‘void cancelAllMenuTracking()’:
    widgets/qmenu_mac.mm:184: warning: Mac OS X version 10.5 or later is needed for use of foreach-collection-statement
    widgets/qmenu_mac.mm: In function ‘void qt_mac_set_modal_state_helper_recursive(NSMenu*, NSMenu*, bool)’:
    objc_selector*, NSNotification*)’:
    widgets/qcocoatoolbardelegate_mac.mm:125: warning: Mac OS X version 10.5 or later is needed for use of foreach-collection-statement
    widgets/qcocoamenu_mac.mm: In function ‘BOOL -[QCocoaMenu hasShortcut:forKey:forModifiers:whichItem:](QCocoaMenu*, objc_selector*, NSMenu*, NSString*, NSUInteger, NSMenuItem**)’:
    widgets/qcocoamenu_mac.mm:127: warning: Mac OS X version 10.5 or later is needed for use of foreach-collection-statement
    dialogs/qfontdialog_mac.mm: In function ‘void -[QCocoaFontPanelDelegate changeAttributes:](QCocoaFontPanelDelegate*, objc_selector*, objc_object*)’:
    dialogs/qfontdialog_mac.mm:283: warning: Mac OS X version 10.5 or later is needed for use of foreach-collection-statement
    kernel/qkeymapper_mac.cpp:899: warning: unused parameter ‘unicodeKey’
    widgets/qmenudata.h:0: Note: No relevant classes found. No output generated.
    /usr/bin/ranlib: file: libjscore.a(CollatorICU.o) has no symbols
    In file included from ../../WebCore/page/ChromeClient.h:24,
    from WebCoreSupport/ChromeClientQt.h:32,
    from WebCoreSupport/DumpRenderTreeSupportQt.cpp:31:
    ../../WebCore/accessibility/AXObjectCache.h:185: warning: unused parameter ‘postToElement’
    In file included from WebCoreSupport/EditorClientQt.cpp:47:
    ../../WebCore/platform/qt/QWebPageClient.h:55: warning: unused parameter ‘layer’
    ../../WebCore/platform/qt/QWebPageClient.h:60: warning: unused parameter ‘scheduleSync’
    WebCoreSupport/EditorClientQt.cpp:616: warning: unused parameter ‘word’
    In file included from WebCoreSupport/PageClientQt.h:27,
    from WebCoreSupport/ChromeClientQt.cpp:51:


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.