View Single Post
w00t's Avatar
Posts: 1,055 | Thanked: 4,107 times | Joined on Oct 2009 @ Norway
#52
Originally Posted by iamnot View Post
should i complier like this?
Code:
qmake -project
qmake
make
i checked X11 packages, they are all newest, and Xrandr.h in:

/usr/include/X11/extension

but i still get this compilation error
Ah, no. That will be your problem.

Just run:
qmake
make

qmake -project is a whole other beast. It generates a qmake project, based on the .cpp and .h files in the current directory. That will (of course) then overwrite my project, which tells it what libraries it needs to link against to use Xrandr.
__________________
i'm a Qt expert and former Jolla sailor (forever sailing, in spirit).
if you like, read more about me.
if you find me entertaining, or useful, thank me. if you don't, then tell me why.