nurupo / ProjectTox-Qt-GUI

A cross-platform front end for ProjectTox Core library, written in C++11 with use of Qt5
GNU General Public License v3.0
342 stars 116 forks source link

Error building on Fedora #54

Closed shaunidiot closed 11 years ago

shaunidiot commented 11 years ago

I encountered a problem while building on Fedora. I've G++, Qt libraries all installed. /usr/bin/ld: cannot find -lGL

[root@localhost build]# make g++ -Wl,-O1 -Wl,-rpath,/opt/Qt5.1.1/5.1.1/gcc_64 -Wl,- rpath,/opt/Qt5.1.1/5.1.1/gcc_64/lib -o TOX-Qt-GUI [All the files] -lsodium - L/opt/Qt5.1.1/5.1.1/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread

/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
make: *** [TOX-Qt-GUI] Error 1```

Thanks in advance!
Schlumpf commented 11 years ago

seems missing OpenGL

shaunidiot commented 11 years ago

Sorry sorry, I'm pretty new to this. I've researched online and was told to check glxinfo | grep rendering which returned direct rendering: Yes, which I'm pretty sure it means OpenGL was installed. glxgears also showed the gears animation. Also, I've tried sudo yum install mesa-dri-drivers mesa-libGL and rebooted, yet the problem still persist. Any help with this? Thank you!

nurupo commented 11 years ago

INSTALL.md

If Qt complains about missing GL library, install libgl-dev package.

shaunidiot commented 11 years ago

@nordbjerg Thank you so much! Manage to install the library and it works now (after some tinkering)! Appreciate your help.

@nurupo Sorry! I tried to yum install that package and it doesn't work for my case (using Fedora). @nordbjerg 's suggestion works! Thanks nonetheless!

nurupo commented 11 years ago

@shaunidiot libgl-dev is usually an alias on some of package repositories, which, when asked for, would suggest you appropriate GL dev library, such as mesa-libGL-devel. If not, you could just search for such library yourself, since you know that you need to install GL dev library.