Results 1 to 6 of 6

Thread: .pro file entry when including X11/Xlib.h

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2015
    Location
    California, USA
    Posts
    61
    Thanks
    43
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11

    Default .pro file entry when including X11/Xlib.h

    I'm trying to get the qTerminal .pro file working.
    The latest error is:

    qxtglobalshortcut_x11.o: undefined reference to symbol 'XStringToKeysym'
    I see
    Qt Code:
    1. #include <X11/Xlib.h>
    To copy to clipboard, switch view to plain text mode 
    in qxtglobalshortcut_x11.cpp

    I tried
    Qt Code:
    1. INCLUDEPATH += /usr/include/X11
    To copy to clipboard, switch view to plain text mode 
    but that didn't work.

    Does this require using LIBS?

    https://github.com/lxde/qterminal/issues/229

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: .pro file entry when including X11/Xlib.h

    Quote Originally Posted by ravas View Post
    Does this require using LIBS?
    Yes, "reference error" is a linker error, that means the compiler had already succeeded in compiling and thus in finding all includes.

    Have you tried with CMake instead?
    If that is the main build system then it is probably the one that is up to date.

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    ravas (24th May 2016)

Similar Threads

  1. Replies: 2
    Last Post: 20th March 2015, 11:31
  2. Replies: 4
    Last Post: 2nd October 2013, 13:57
  3. Problem in file including.
    By Niamita in forum Qt Programming
    Replies: 5
    Last Post: 27th July 2011, 12:15
  4. Qt Creator PROBLEM INCLUDING 'QSystemInfo' HEADER FILE
    By Rakula in forum Qt Tools
    Replies: 1
    Last Post: 24th September 2010, 09:28
  5. How to read text file including all empty spaces..
    By umulingu in forum Qt Programming
    Replies: 1
    Last Post: 29th September 2009, 07:33

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.