Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-6990

Compilation error.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P0: Blocker
    • 4.7.0
    • 4.7.0
    • None
    • Mac OS X Snow Leopard, 10.6.2, Latest Xcode.
    • b1b8ff495f7a33769b2aea9091622e3fa1e3344c

    Description

      Cannot build the Qt git master, since November due to this build error. It was building before this commit. I cant seem to track down the cause.

      I configured like this : ../qt/configure -opensource -no-qt3support -svg -webkit -system-zlib -qt-gif -openssl -verbose -optimized-qmake -cocoa -arch x86_64 -arch x86 -sdk /Developer/SDKs/MacOSX10.6.sdk

      Here is the build transcript from the terminal up to the build error in question.... Everything that is being complained about by gcc 4.2, seems to be defined/declared from what I can see, unless im blind and overlooking something damned obvious....

      Christopher-Jeromes-Mac-Pro:qt-build chrisj$ make
      cd src/tools/bootstrap/ && make -f Makefile
      make[1]: Nothing to be done for `first'.
      cd src/tools/moc/ && make -f Makefile
      make[1]: Nothing to be done for `first'.
      cd src/tools/rcc/ && make -f Makefile
      make[1]: Nothing to be done for `first'.
      cd src/tools/uic/ && make -f Makefile
      make[1]: Nothing to be done for `first'.
      cd src/corelib/ && make -f Makefile
      make -f Makefile.Debug all
      make[2]: Nothing to be done for `all'.
      make -f Makefile.Release all
      make[2]: Nothing to be done for `all'.
      cd src/xml/ && make -f Makefile
      make -f Makefile.Debug all
      make[2]: Nothing to be done for `all'.
      make -f Makefile.Release all
      make[2]: Nothing to be done for `all'.
      cd src/network/ && make -f Makefile
      make -f Makefile.Debug all
      make[2]: Nothing to be done for `all'.
      make -f Makefile.Release all
      make[2]: Nothing to be done for `all'.
      cd src/gui/ && make -f Makefile
      make -f Makefile.Debug all
      gcc -c -pipe -fconstant-cfstrings -g -gdwarf-2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -arch i386 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DPNG_NO_ASSEMBLER_CODE -DQT_NO_CUPS -DQT_NO_LPR -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NO_FREETYPE -DQT_NO_OPENTYPE -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_GTK -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/Volumes/Disk_3/source/qt/qt/mkspecs/macx-g++ -I/Volumes/Disk_3/source/qt/qt/src/gui -I../../include/QtCore -I../../include -I../../include/QtGui -I.rcc/debug-shared -I/Volumes/Disk_3/source/qt/qt/src/3rdparty/libpng -I/Volumes/Disk_3/source/qt/qt/src/3rdparty/zlib -I/Volumes/Disk_3/source/qt/qt/src/3rdparty/harfbuzz/src -I/Volumes/Disk_3/source/qt/qt/src/gui/dialogs -I.moc/debug-shared -I.uic/debug-shared -I. -F/Volumes/Disk_3/source/qt/qt-build/lib /Volumes/Disk_3/source/qt/qt/src/gui/widgets/qcocoamenu_mac.mm -o .obj/debug-shared/qcocoamenu_mac.o
      In file included from ../../include/QtGui/private/qcocoamenu_mac_p.h:1,
      from /Volumes/Disk_3/source/qt/qt/src/gui/widgets/qcocoamenu_mac.mm:45:
      ../../include/QtGui/private/../../../../qt/src/gui/widgets/qcocoamenu_mac_p.h:75: error: 'QAction' was not declared in this scope
      ../../include/QtGui/private/../../../../qt/src/gui/widgets/qcocoamenu_mac_p.h:75: error: template argument 1 is invalid
      /Volumes/Disk_3/source/qt/qt/src/gui/widgets/qcocoamenu_mac.mm: In function 'void -[QCocoaMenu menu:willHighlightItem:](QCocoaMenu*, objc_selector*, NSMenu*, NSMenuItem*)':
      /Volumes/Disk_3/source/qt/qt/src/gui/widgets/qcocoamenu_mac.mm:87: error: 'qt_mac_clear_status_text' was not declared in this scope
      /Volumes/Disk_3/source/qt/qt/src/gui/widgets/qcocoamenu_mac.mm:95: error: invalid conversion from 'QAction*' to 'int'
      /Volumes/Disk_3/source/qt/qt/src/gui/widgets/qcocoamenu_mac.mm: In function 'void -[QCocoaMenu menuDidClose:](QCocoaMenu*, objc_selector*, NSMenu*)':
      /Volumes/Disk_3/source/qt/qt/src/gui/widgets/qcocoamenu_mac.mm:116: error: 'qt_mac_clear_status_text' was not declared in this scope
      In file included from ../../include/QtGui/private/qcocoamenu_mac_p.h:1,
      from /Volumes/Disk_3/source/qt/qt/src/gui/widgets/qcocoamenu_mac.mm:45:
      ../../include/QtGui/private/../../../../qt/src/gui/widgets/qcocoamenu_mac_p.h:75: error: 'QAction' was not declared in this scope
      ../../include/QtGui/private/../../../../qt/src/gui/widgets/qcocoamenu_mac_p.h:75: error: template argument 1 is invalid
      /Volumes/Disk_3/source/qt/qt/src/gui/widgets/qcocoamenu_mac.mm: In function 'void -[QCocoaMenu menu:willHighlightItem:](QCocoaMenu*, _message_ref_t*, NSMenu*, NSMenuItem*)':
      /Volumes/Disk_3/source/qt/qt/src/gui/widgets/qcocoamenu_mac.mm:87: error: 'qt_mac_clear_status_text' was not declared in this scope
      /Volumes/Disk_3/source/qt/qt/src/gui/widgets/qcocoamenu_mac.mm:95: error: invalid conversion from 'QAction*' to 'int'
      /Volumes/Disk_3/source/qt/qt/src/gui/widgets/qcocoamenu_mac.mm: In function 'void -[QCocoaMenu menuDidClose:](QCocoaMenu*, _message_ref_t*, NSMenu*)':
      /Volumes/Disk_3/source/qt/qt/src/gui/widgets/qcocoamenu_mac.mm:116: error: 'qt_mac_clear_status_text' was not declared in this scope
      lipo: can't open input file: /var/folders/Yz/YzsLi-phH8esWhscWXKc+E+++TI/Tmp//ccIYWOz0.out (No such file or directory)
      make[2]: *** [.obj/debug-shared/qcocoamenu_mac.o] Error 1
      make[1]: *** [debug-all] Error 2
      make: *** [sub-gui-make_default-ordered] Error 2

      I will try with an UN-optimised qmake, and see what happens.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            chris.jerome2110 Christopher Jerome
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes