.pro file entry when including X11/Xlib.h
I'm trying to get the qTerminal .pro file working.
The latest error is:
Quote:
qxtglobalshortcut_x11.o: undefined reference to symbol 'XStringToKeysym'
I see
Code:
#include <X11/Xlib.h>
in qxtglobalshortcut_x11.cpp
I tried
Code:
INCLUDEPATH += /usr/include/X11
but that didn't work.
Does this require using LIBS?
https://github.com/lxde/qterminal/issues/229
Re: .pro file entry when including X11/Xlib.h
Quote:
Originally Posted by
ravas
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,
_
Re: .pro file entry when including X11/Xlib.h
No... >_<
Is there a way to use a cmake file like a pro file in Creator?
Edit: I just found http://doc.qt.io/qtcreator/creator-project-cmake.html
Re: .pro file entry when including X11/Xlib.h
I would think something like
Code:
LIBS += -L/usr/X11/lib -lX11
Is a good start. The path changes from system to system, and you may be able to get by without the -L option entirely. Have a look at the output of
Code:
pkg-config --cflags --lib x11
For more clues.
Re: .pro file entry when including X11/Xlib.h
That did it. :D Thanks!
After that I also needed to add
QT += x11extras
https://github.com/r-a-v-a-s/qtermin...cd27de1adee0e8
Re: .pro file entry when including X11/Xlib.h
Quote:
Originally Posted by
ravas
Is there a way to use a cmake file like a pro file in Creator?
Yes
Cheers,
_