My machine run Ubuntu 12.04. The following is my solution to fix it. (assume libGL is installed in somewhere in your system)
- Locate your installed libGL:
$locate libGL
- make link to installed libGL.so
$sudo ln -s /usr/lib/i386-linux-gnu/libGLU.so.1 /usr/lib/libGL.so
Remark:
Thanks comment by Anonymous:
~ If your system is 64 bit one, you must link to the 64 bit libGL
4 comments:
Nice sharing. Thanks for share.
I still have the problem :( it didn't solve mine.
I am having this problem while trying to use Android emulator shashlik_0.9.3.deb on Linux Mint 18.
I tried what you said, that exact problem is gone. but now I have this problem:
Failed to load libGL.so
error libGL.so: wrong ELF class: ELFCLASS32
Failed to load libGL.so
error libGL.so: wrong ELF class: ELFCLASS32
Look, I found the answer to that problem.
The error was because my Linux Mint 18 system is x64 bit based system.
wrong ELF class: ELFCLASS32 means that I linked to libGL x32 bit.
I deleted that link from /usr/lib and then made link to the proper x64 from "locate libGL"
I think you should mention that. You should say, if your system is 64 bit one, you must link to the 64 bit libGL.
Post a Comment