bgrabitmap / bgracontrols

🆗 BGRA Controls is a set of graphical UI elements that you can use with Lazarus LCL applications.
https://bgrabitmap.github.io/bgracontrols/
188 stars 32 forks source link

Lazarus build error during instalation, linux (POP OS 22.04) FPC 3.2.2 lazarus 2.2.0 #132

Closed sizesnando closed 2 years ago

sizesnando commented 2 years ago

First off, sorry if posted in wrong place.

currently using: Pop!_OS 22.04 LTS [0.004] Free Pascal Compiler version 3.2.2 [2021/07/09] for x86_64 lazarus-ide 2.2.0 Revision: Unversioned directory

I have another components in use, but when trying to install the components:


Build IDE: Exit code 2, Errors: 2, Warnings: 1 Warning: linker: /usr/bin/ld: cannot find -lGL: No such file or directory make[2]: [Makefile:4667: lazarus] Error 1 make[1]: [Makefile:5105: idepkg] Error 2 Error: make: *** [Makefile:3739: idepkg] Error 2 lazarus.pp(167,1) Error: Error while linking

Tried the follow steps; 1)

Think it's probably need to install another software on my PC, but have not ideia of what.

lainz commented 2 years ago

Hi, strange that needs more dependencies, but for sure is something you need to install at OS level.

Check this stack overflow: https://stackoverflow.com/questions/18406369/qt-cant-find-lgl-error

circular17 commented 2 years ago

Yeah, to compile you need to have openGL installed. Though this could be bypassed by removing OpenGL from BGRABitmap project I think.

sizesnando commented 2 years ago

Thanks for the help, and following the answers, in my case i only need to:

sudo ln -s /usr/lib/x86_64-linux-gnu/libGL.so.1 /usr/lib/libGL.so

circular17 commented 2 years ago

Ok so this is solved I supposed.