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

Static 32-/64-bit Cocoa Qt builds fail for universal binaries with Qt 4.7-tp1 and Qt 4.6.2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 4.7.0
    • 4.6.2, 4.7.0
    • None
    • None
    • Leopard on intel Mac.

      We would like to compile a static Cocoa 32-/64-bit Qt with universal binaries for x86, x86_64, ppc and ppc64 platforms

      • or at least for both intel and one of the PPC platforms..

      We tried the following:

      • At first with the Qt 4.7 tech preview:

      1) For all four architectures:

      "./configure -cocoa -static -no-qt3support -debug-and-release -nomake "examples demos" -qt-zlib -qt-libtiff -qt-gif -qt-libpng -openssl -qt-libjpeg -qt-sql-sqlite -no-webkit -arch "x86 x86_64 ppc ppc64" -sdk /Developer/SDKs/MacOSX10.5.sdk"
      =>
      A lot of compile errors, starting with "../../include/QtGui/private/../../../src/gui/painting/qdrawhelper_mmx_p.h:61:22: error: mmintrin.h: No such file or directory".

      All errors seem to have something to do with SSE/SSE2, MMX, 3Dnow, etc. code, so we tried an intel-only build next.

      2) For both intel architectures, only:
      "./configure -cocoa -static -no-qt3support -debug-and-release -nomake "examples demos" -qt-zlib -qt-libtiff -qt-gif -qt-libpng -openssl -qt-libjpeg -qt-sql-sqlite -no-webkit -arch "x86 x86_64" -sdk /Developer/SDKs/MacOSX10.5.sdk"
      =>
      Duplicate symbols error <=> This one seems to be already fixed by you, but we do not want to try out a Qt snapshot
      and we would like to have PPC support, too - so we...

      • ...switched back to Qt 4.6.2 stable:

      3) For all four architectures:

      "./configure -cocoa -static -no-qt3support -debug-and-release -nomake "examples demos" -qt-zlib -qt-libtiff -qt-gif -qt-libpng -openssl -qt-libjpeg -qt-sql-sqlite -no-webkit -arch "x86 x86_64 ppc ppc64" -sdk /Developer/SDKs/MacOSX10.5.sdk"
      =>
      Error, "lipo" cannot find a file (no other error message found above the following):
      "
      lipo: can't open input file: /var/folders/wv/wv1MWXszGCaPg5Ya-kjPkU+++TI/Tmp//ccdl20Ab.out (No such file or directory)
      make[4]: *** [../../../../bin/Assistant.app/Contents/MacOS/Assistant] Error 1
      make[3]: *** [sub-assistant-make_default-ordered] Error 2
      make[2]: *** [sub-tools-make_default-ordered] Error 2
      make[1]: *** [sub-assistant-make_default-ordered] Error 2
      make: *** [sub-tools-make_default-ordered] Error 2
      "

      4) For both intel architectures, only:
      "./configure -cocoa -static -no-qt3support -debug-and-release -nomake "examples demos" -qt-zlib -qt-libtiff -qt-gif -qt-libpng -openssl -qt-libjpeg -qt-sql-sqlite -no-webkit -arch "x86 x86_64" -sdk /Developer/SDKs/MacOSX10.5.sdk"

      => Succeeded - but we would like to have at least some kind of PPC code in the universal binaries of our Qt compile..

      Regards
      Marcel

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

            sorvig Morten Sørvig
            mantillo Marcel Timm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes