Recent

Author Topic: Error while rebuilding IDE on Debian 11 (KDE Plasma)  (Read 3289 times)

d4eva

  • New Member
  • *
  • Posts: 26
Error while rebuilding IDE on Debian 11 (KDE Plasma)
« on: July 18, 2022, 09:12:10 pm »
I just installed Debian 11  (KDE Plasma) under Virtual Box.
And installed Lazarus 2.2.2, FPC 3.2.2 (latest stable releases)

IDE works, I can compile my app, but when I try to rebuild the IDE, I get those errors:
Warning: linker: /usr/bin/ld: cannot find -lGL
make[2]: *** [Makefile:4667: lazarus] Error 1
make[1]: *** [Makefile:5105: idepkg] Error 2
Error: make: *** [Makefile:3793: idepkg] Error 2
lazarus.pp(167,1) Error: Error while linking

Handoko

  • Hero Member
  • *****
  • Posts: 5378
  • My goal: build my own game engine using Lazarus
Re: Error while rebuilding IDE on Debian 11 (KDE Plasma)
« Reply #1 on: July 18, 2022, 09:51:59 pm »
If I remember correctly, I got that warning when I didn't have OpenGL library installed correctly.

I'm not sure how I fixed it but I remember I did these:
- Make sure correct VGA driver is installed
- Reinstall libgl1-mesa-dev and libgles2-mesa-dev packages
- Run: sudo ln -s /usr/lib/x86_64-linux-gnu/libGL.so.1 /usr/lib/libGL.so

I used Ubuntu Mate and NVidia vga.

d4eva

  • New Member
  • *
  • Posts: 26
Re: Error while rebuilding IDE on Debian 11 (KDE Plasma)
« Reply #2 on: July 19, 2022, 10:02:55 am »
Thanks. libgl1-mesa-dev was already installed, but sudo apt  install libgles2-mesa-dev helped.
I didn't even need to run the ln.

TeoUrbana

  • New Member
  • *
  • Posts: 44
    • Distração For Fun
Re: Error while rebuilding IDE on Debian 11 (KDE Plasma)
« Reply #3 on: August 15, 2024, 10:54:38 pm »
Thanks. libgl1-mesa-dev was already installed, but sudo apt  install libgles2-mesa-dev helped.
I didn't even need to run the ln.

Thanks Handoko,
I solved intalling libgl1-mesa-dev.
 :D
« Last Edit: August 15, 2024, 11:19:32 pm by TeoUrbana »

 

TinyPortal © 2005-2018