I have been using glscene in one of my lazarsus projects over the last 10+ years. It has been reliable and stable. For Ubuntu 14.04 - 20.04 with Lazarus 2.x (2.0, 2.1, 2.2, ...), I had always been able to install it conveniently using the built in "Online package manager" and it runs without any issue.
However, this breaks in newer Linux, such as Ubuntu 22.04 (it appears to be unrelated to lazarus version, because the following error appears regardless of the lazarus version)
I have been reliably getting the following error
GLViewer.pas(41,21) Error: Forward declaration not solved "class WSRegisterClass;"
When asking this error on google, Germini suggests that this has something to do with gtk2 vs gtk3, but rebuilding lazarus with either gtk2 or gtk3 did not help - rebuilt IDE - lazarus 4.2, won't display correctly with gtk3; rebuilt with gtk2 still shows the same error.
when installing lazarus 2.0.x on Ubuntu 22.04, I am getting the same error, but it runs without any problem when testing on Ubuntu 18.04
would be much appreciated if someone can suggest a way to install glscene on Ubuntu 22.04, even with the older lazarus versions