niezdefiniowane odniesienie do symbolu „XF86VidModeQueryExtension” (linux, qt creator IDE)

Próbowałem zdobyć prosty kod GL implementujący GFLW3 do kompilacji na QT Creator (na Ubuntu 13.04). Mimo to otrzymuję te same dane wyjściowe, gdy próbuje zbudować:

undefined reference to symbol 'XF86VidModeQueryExtension'

Następnie przeszedłem do pliku .pro i połączyłem plik biblioteki lXxf86vm.so i dodałem -lXxf86vm, ale nadal daje to samo wyjście:

g++ -m64 -o GL-Test main.o windowtest.o frametest.o   -L/usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 -L/user/lib/x86_64-linux-gnu/libXxf86vm.so 
-L/user/lib/x86_64-linux-gnu/libXxf86vm.a -L/user/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0 
-L/home/syk435/Testing\ Gl/GL-Test/../../../../usr/lib/x86_64-linux-gnu/ -lXxf86vm -lX11 -lGL -L/usr/local/lib -lglfw3 
/usr/bin/ld: /usr/local/lib/libglfw3.a(x11_init.c.o): undefined reference to symbol 'XF86VidModeQueryExtension'
/usr/bin/ld: note: 'XF86VidModeQueryExtension' is defined in DSO /home/syk435/Testing Gl/GL-Test/../../../../usr/lib/x86_64-linux-gnu//libXxf86vm.so 
so try adding it to the linker command line
/home/syk435/Testing Gl/GL-Test/../../../../usr/lib/x86_64-linux-gnu//libXxf86vm.so:
could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status

jak widać, wypróbowałem cztery różne sposoby łączenia poprawnej biblioteki, ale nadal daje mi te same „niezdefiniowane odniesienia” i „nie można odczytać symboli”. Wszelkie informacje na temat właściwego sposobu łączenia?

Edycja: plik Pro: SZABLON = aplikacja

CONFIG += console
CONFIG -= app_bundle
CONFIG -= qt

CONFIG += link_pkgconfig
PKGCONFIG += x11

CONFIG += link_pkgconfig
PKGCONFIG += gl

CONFIG += link_pkgconfig
PKGCONFIG += glfw3

LIBS += -lXxf86vm -L/usr/lib/x86_64-linux-gnu/libXxf86vm.so.1
LIBS += -lXxf86vm -L/user/lib/x86_64-linux-gnu/libXxf86vm.so
LIBS += -lXxf86vm -L/user/lib/x86_64-linux-gnu/libXxf86vm.a
LIBS += -lXxf86vm -L/user/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0

questionAnswers(1)

yourAnswerToTheQuestion