Note that there are some explanatory texts on larger screens.

plurals
  1. POundefined reference to symbol 'XF86VidModeQueryExtension' (linux, qt creator IDE)
    text
    copied!<p>I've been trying to get some simple GL code that implements GFLW3 to compile on QT Creator (on Ubuntu 13.04). However I keep getting the same output when it tries building:</p> <pre><code>undefined reference to symbol 'XF86VidModeQueryExtension' </code></pre> <p>I then went to the .pro file and linked the lXxf86vm.so library file and added -lXxf86vm but it still gives the same output:</p> <pre><code>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 </code></pre> <p>as you can see, I've tried four different ways to link the correct lib but it's still giving me the same "undefined reference" and "symbols could not be read" errors. Any insight on the proper way to link?</p> <p>Edit: Pro file: TEMPLATE = app</p> <pre><code>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 </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload