Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QT 5 compile fails with undefined symbols for x86_64 on OS X
QtWS25 Last Chance

QT 5 compile fails with undefined symbols for x86_64 on OS X

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 3.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    goldenegg
    wrote on last edited by
    #1

    I having an issue compiling QT 5.0, where it eventually errors out due to undefined symbols for x86_64.


    Undefined symbols for architecture x86_64:
    "_XSetErrorHandler", referenced from:
    QGtkStylePrivate::initGtkWidgets() const in qgtkstyle_p.o
    "_XSetTransientForHint", referenced from:
    QGtkStylePrivate::setupGtkFileChooser(_GtkWidget*, QWidget*, QString const&, QString const&, QString*, QFlagsQFileDialog::Option, bool, QHash<_GtkFileFilter*, QString>*) in qgtkstyle_p.o
    ld: symbol(s) not found for architecture x86_64

    Anyone see this before?

    Compiling previous versions of QT don't have this issue.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Did not get this particular one. Occasionally, though, symbols not found does happen due to Apple's shamefully outdated tools and qmake's archaic macx-xcode specs.

      Several things that might help:

      • which version of Mac OS, Xcode do you have?
      • change the mkspecs to macx-llvm (in configure, that's -platform macx-llvm, in qmake: -spec macx-xcode)
      • force Mac to use g++ as linker (Apple's ln is a bit flawed ere and there)
      • pass -no-gtkstyle to configure

      (Z(:^

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goldenegg
        wrote on last edited by
        #3

        i'm running OS X 10.8.2 and Xcode 4.5.2.

        I'd be interested to know how others with this configuration have successfully compiled QT 5.0.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved