ld-linux.exe: error: cannot find -lGL

Issue #93 resolved
megat kurniawan
created an issue

error if compiled to linux: [DCC Error] E2597 C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\ld-linux.exe: error: cannot find -lGL

Comments (9)

  1. Eugene Kryukov repo owner

    It looks like opengl isn't installed on your Linux. Try to do this: 1. sudo apt install mesa-utils in Linux 2. update SDK in Delphi 3. Check if "libGL.so" exists in some folder in your SDK location. 4. Try to build app

  2. Matthias Wiese

    mesa-utils is installed. But as far as I can see this package doesn't contain libGL.so. I tried sudo apt install libgl1-mesa-dev and then it's fine. I found some hints here. So thanks for your hint with libGL.so.

  3. megat kurniawan reporter

    I can solve the problem after doing this on ubuntu: sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev libglfw3-dev libgles2-mesa-dev

    Thanks Eugene Kryukov for your guide.

  4. Log in to comment