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

Configure fails without --no-xcb

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.2.0
    • 5.2.0 Beta1
    • Build System
    • None
    • OS X 10.7.5, build 11G63, with Xcode 4.3.3, build 4E3002, building with the 10.6 SDK.
    • edd51e44869c9774071355f32830ea510eafde04

    Description

      If I download the 5.2.0 beta1 source and run the configure script with

      /Users/gharris/src/cmd/wireshark/macosx-support-libs/qt-everywhere-opensource-src-5.2.0-beta1/qtbase/configure -top-level -v -sdk macosx10.6 -platform macx-g++ -opensource -confirm-license -no-c++11 -no-dbus -no-opengl -no-sql-sqlite -nomake examples -skip qtdoc -skip qtquickcontrols -skip qtwebkit -skip qtwebkit-examples -skip qtxmlpatterns

      the build fails in the configure process with

      XLib auto-detection... ()
      Project WARNING: No .qmake.cache is present. This significantly slows down qmake with this makespec.
      Project WARNING: Call 'cache()' in the top-level project file to rectify this problem.
      /Applications/Xcode.app/Contents/Developer/usr/bin/g++ -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Wall -W -fPIE  -I../../../mkspecs/macx-g++ -I. -o xlib.o xlib.cpp
      /Applications/Xcode.app/Contents/Developer/usr/bin/g++ -headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -o xlib xlib.o    
      Undefined symbols for architecture x86_64:
        "_XOpenDisplay", referenced from:
            _main in xlib.o
        "_XCloseDisplay", referenced from:
            _main in xlib.o
      ld: symbol(s) not found for architecture x86_64
      collect2: ld returned 1 exit status
      make: *** [xlib] Error 1
      XLib disabled.
      The test for linking against Xlib failed!
       You might need to install dependency packages.
       See src/plugins/platforms/xcb/README.
      make: *** No targets specified and no makefile found.  Stop.
      

      The system in question has X11 installed, and the build has -sdk 10.6, and the 10.6 SDK includes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/X11/lib/libX11.dylib and that library does define XOpenDisplay, but I haven't done anything to point it to /usr/X11/lib when looking for libraries.

      However, I shouldn't have to, as this is OS X, with a non-X11-based GUI, and Qt shouldn't require Xlib or Xcb to be found.

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            gharris Guy Harris
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes