You are not logged in.

#1 2017-04-16 21:19:22

redy123
Member
Registered: 2016-12-26
Posts: 13

Problem with OpenGL library

I downloaded qt5creator today and I ran into a problem when using qt-quick. I use nvidia drivers and when i try to run the aplication ( compiling works) there is an information

Unrecognized OpenGL version

I found a workaround which is to link nvidia libs to the opengl libs :

ln -s /usr/lib64/nvidia-current/libGL.so.1    /usr/lib64/libGL.so.1
ln -s /usr/lib64/nvidia-current/libGL.so.1    /usr/lib64/libGL.so

But now new problem occured, since i cannot compile the code with the output

g++  -o qtquick main.o qrc_qml.o   -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGL -lpthread 
/usr/bin/ld: cannot find -lGL

Is there a way to either point to ld where GL library is ( i have original files on the disc) ? I tried adding path to original libs to /etc/ld.so.conf.d/ but it doesn't do the trick. Any ideas?

Offline

#2 2017-04-17 12:51:46

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,567

Re: Problem with OpenGL library

Nvidia driver on Arch linux , Xorg and mesa have recently switched to libglvnd to allow X to switch easily between multiple opengl implementations.

I suggest you check if the command your application uses to determine opengl version is compatible with glvnd .

https://github.com/NVIDIA/libglvnd

Last edited by Lone_Wolf (2017-04-17 12:52:21)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2017-04-17 14:55:57

redy123
Member
Registered: 2016-12-26
Posts: 13

Re: Problem with OpenGL library

Okay I do gave opengl version compatibile with glvnd but it doesn't solve the problem. However weird thing happens when i don't have these nvidia libs linked as before. I can compile code and I can run it, but outside of the QTcreator ( which i have not tried before). Running executable file stored in debug build works. So I would say it's not linux problem, but rather just problem within the app.  This post can be closed.

Offline

#4 2017-04-17 15:32:38

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: Problem with OpenGL library

redy123 wrote:

This post can be closed.

If you are satisfied a solution has been found, please mark your thread as solved by editing the first post and prepending the tag [SOLVED] to the title in the "Subject" field.
If you wish the thread to be deleted use the report button to contact a moderator.

Offline

Board footer

Powered by FluxBB