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

    What Linux name and version do you use ? You should use Desktop version or install opengl to Linux and then update SDK in Delphi.

  2. Matthias Wiese

    Same issue here using desktop version of Ubuntu v16.04.3 LTS or v17.04.
    What exactly needs to be installed additionally for these editions (like sudo apt-get install ...)?
    Maybe you can add it on your FAQ?

  3. 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

  4. 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.

  5. 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.

  6. Log in to comment