* * *

Author Topic: Notes for installing GLSceneLCL 1.4 for Lazarus 1.6 on Ubuntu Linux  (Read 706 times)

FangQ

  • Jr. Member
  • **
  • Posts: 86
In case anyone is struggling with this, I spent a couple of hours just to figure out how to install glscene on the newer lazarus releases (the last time I did this was over 7 years ago) on my Ubuntu 14.04 box.

There are a few hoops you need to jump through to make this successful.

First, download the latest GLSceneLCL release (1.4) from the sourceforge site: https://sourceforge.net/projects/glscene/files/GLScene/GLScene%20v1.4/GLScene_v1.4_for_Lazarus.7z/download

Once you download and unzip, the first thing you want to do is to correct a few file name bugs, you want to open a terminal, navigate to the GLSceneLCL/Packages folder, and run

Code: Pascal  [Select]
  1. perl -pi -e 's/GlFileX/GLFileX/g' *

then, cd the GLSceneLCL/Source folder, run the same command. Basically, the Packages/GLSceneLCL_RunTime.* and Source/GLRenderContextInfo.pas units in the upstream release use lower case for "l" in "GLFileX"; this is not an issue on windows, but fails the installation on Linux.

The second hoop to jump is the missing of "imagesforlazarus.ppu". To solve this, you need to go to Lazarus menu Package\Open Package File (*.lpk), and select /usr/lib/lazarus/1.6/components/images/imagesforlazarus.lpk, and then, select "Compile". Once this is done, open a terminal, and run

Code: Pascal  [Select]
  1. cd ~/.lazarus/lib/ImagesForLazarus/lib/x86_64-linux/gtk2
  2. sudo cp *.ppu /usr/lib/lazarus/1.6/lcl/units/x86_64-linux/
  3. sudo cp *.o /usr/lib/lazarus/1.6/lcl/units/x86_64-linux/
  4. sudo cp *.res /usr/lib/lazarus/1.6/lcl/units/x86_64-linux/

then, you can follow the steps shown on this webpage and install GLSceneLCL to your lazarus

https://sourceforge.net/p/glscene/wiki/Lazarus%20Installation/

If you don't do the steps I mentioned earlier, you will see a bunch of errors that prevent the packages to be compiled and installed.

when I played with some additional examples, I also found the LazOpenGLContext package was also missing from my lazarus installation. I had to do the same steps as ImagesForLazarus above to get it compiled, and copy the ppu/.o/.res file to lazarus folder.

Handoko

  • Hero Member
  • *****
  • Posts: 1729
  • My goal: build my own game engine using Lazarus
Re: Notes for installing GLSceneLCL 1.4 for Lazarus 1.6 on Ubuntu Linux
« Reply #1 on: July 15, 2017, 03:23:33 am »
The latest version of GLScene I know is 1.5, which was released 2 months ago.

And I have written a list of my recommendation bug fixes to make it useable for Lazarus 1.6.4 Linux:

http://forum.lazarus.freepascal.org/index.php/topic,36796.msg250079.html#msg250079

FangQ

  • Jr. Member
  • **
  • Posts: 86
Re: Notes for installing GLSceneLCL 1.4 for Lazarus 1.6 on Ubuntu Linux
« Reply #2 on: July 16, 2017, 12:39:33 am »
The latest version of GLScene I know is 1.5, which was released 2 months ago.

And I have written a list of my recommendation bug fixes to make it useable for Lazarus 1.6.4 Linux:

http://forum.lazarus.freepascal.org/index.php/topic,36796.msg250079.html#msg250079

a great post! I wish I had done a search first!

I also found that all projects under the example folder can not be compiled out-of-box. lazarus prompts one should add "GLSceneLCL_RunTime" package as a dependency in Project Inspector. After adding it, lazarus happily compiles and runs some of the examples, but not all.

BeanzMaster

  • New member
  • *
  • Posts: 35
Re: Notes for installing GLSceneLCL 1.4 for Lazarus 1.6 on Ubuntu Linux
« Reply #3 on: August 27, 2017, 10:11:49 am »
Hi FanQ

Thanks for bugs tracking. I'll do the change. I don't have any Linux distro installed on my PC so i can't test GLScene under.

The next major update of GLScene will out just after the Lazarus 1.8 stable. I 'm already fixed many bugs for Linux compatibility.

EDIT Just a preciion version of GLScene for lazarus (in the Branch\GLSCeneLCL in svn) is not 1.4 It's follow the Current Delphi Trunk version is the same as Delphi's version  : 1.5


Best regards
« Last Edit: August 27, 2017, 10:15:01 am by BeanzMaster »

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus