- changed title to ld-linux.exe: error: cannot find -lGL
ld-linux.exe: error: cannot find -lGL
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)
-
reporter -
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.
-
reporter ubuntu-16.04.3-desktop-amd64
-
@crossvcl 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?
-
I have the same issue (Ubuntu LTS 16.04.02), Delphi 10.2.1 (SDK was updated)
-
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
-
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.
-
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.
-
repo owner - changed status to resolved
- Log in to comment