Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. undefined reference to QX11Info::display()
QtWS25 Last Chance

undefined reference to QX11Info::display()

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.3k 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.
  • W Offline
    W Offline
    watafaka
    wrote on last edited by watafaka
    #1

    Hi experts,
    My project add these in Ubuntu 14 include <QtX11Extras/qx11info_x11.h> <X11/Xlib.h>,after build it occured "/usr/lib/i386-linux-gnu/libX11.so.6:-1: error: error adding symbols: DSO missing from command line".(libX11.so.6)
    Then I add LIBS += -lX11 , i got these:
    error: undefined reference to `QX11Info::display()'

    error: undefined reference to `QX11Info::appRootWindow(int)'
    error: collect2: error: ld returned 1 exit status
    I can find the "libX11.so" in usr/lib/i386***/ ,anything wrong ? Help!

    QT Version 5.3.2 on 32BIT

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #2

      What version of Qt do you use? Is it 32 or 64 bit build?
      Take a look on this Question on SO

      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