Recent

Author Topic: Lazarus2.0.10 + GlSceneLCL-code-r7288 + Linux64  (Read 2051 times)

stefanE

  • Newbie
  • Posts: 5
Lazarus2.0.10 + GlSceneLCL-code-r7288 + Linux64
« on: November 10, 2020, 10:36:35 am »
Hi there,
I tried to install GlScene to Lazarus 2.0.10 in Ubuntu 20.10
but it failed :-(
If I run WinXP in a VirtualBox and install Lazarus2.0.10 and the same Package of GlScene LCL- it works. (after correcting the pathnames)

what I have done
ubuntu 20.10

lazarus 2.0.10 installiert
glscene-code-r7288-branches-GLSceneLCL runtergeladen

in runtime und designttime lpk - kaum eine datei gefunden

in lpk pafde angepasst

opneGL pakete installiert

sudo apt-get install freeglut3 freeglut3-dev libglew-dev
sudo apt-get install mesa-utils


kompilieren der beiden pakete möglich
Quote
Nachrichten, Warnungen: 2
Warning: other unit files search path (aka unit path) of "GLScene_DesignTime 1.0" contains "/home/stefan/Dokumente/lazarus/GLSceneLCL/GLSceneLCL/Source", which belongs to package "GLScene_RunTime"
Warning: other unit files search path (aka unit path) of "GLScene_RunTime 1.0" contains "/home/stefan/Dokumente/lazarus/GLSceneLCL/GLSceneLCL/Source/Basis", which belongs to package "GLScene_DesignTime"
Kompiliere Package GLScene_DesignTime 1.0: Erfolg
IDE erstellen: Exit code 2, Fehler: 1, Hinweise: 2
lazarus.pp(153,7) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazarus.pp(161,3) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazarus.pp(165,1) Error: Error while linking

installation mit linker fehler nicht möglich

hier die Ausgabe des Nachrichtenfensters


so what can I do, or what I did wrong?

Waiting for any answer.
Stay haealthy

Stefan

BeanzMaster

  • Sr. Member
  • ****
  • Posts: 268
Re: Lazarus2.0.10 + GlSceneLCL-code-r7288 + Linux64
« Reply #1 on: November 10, 2020, 10:55:41 am »
Hi Stefan,

I'm the maintainer of GLScene for Lazarus
Check if you have libgl1-mesa-dev package installed. And retry. It will work.

For any questions relative to GLScene and Lazarus you can post here : https://sourceforge.net/p/glscene/discussion/lazarus/

Notice : i don't speak Dutch ;)

Regards

Jérôme

Handoko

  • Hero Member
  • *****
  • Posts: 5396
  • My goal: build my own game engine using Lazarus
Re: Lazarus2.0.10 + GlSceneLCL-code-r7288 + Linux64
« Reply #2 on: November 10, 2020, 11:56:24 am »
Not sure for for current version of GLScene, but previous versions require both libgl1-mesa-dev and libglu1-mesa-dev.
https://forum.lazarus.freepascal.org/index.php/topic,48629.msg350838.html#msg350838

@stefanE

Did you install GLScene using Online Package Manager? You may have better 'luck' if you use OPM:
Lazarus main menu > Package > Online Package Manager

GLScene is great if you use it on Windows/Delphi. But you may get many issues if you use it on Linux. The main source code itself seems to work on Linux. But almost all the demos have problems on Linux.

In June 2017, I suggested some fixes:
https://forum.lazarus.freepascal.org/index.php/topic,36796.msg250079.html#msg250079

Waited for a while. In September 2019, GLScene was still buggy on Linux:
https://forum.lazarus.freepascal.org/index.php/topic,46770.msg333875.html#msg333875

 I retested it again in February 2020. It's still not Linux friendly.
https://forum.lazarus.freepascal.org/index.php/topic,48629.msg350315.html#msg350315

It is clear, most or maybe all of the developers of GLScene do not use Linux. I do not want to say about it, but you should be warned if you want to use GLScene on Linux.

GLScene is a great project unfortunately it is not properly tested on Linux. Alternatively you may want to try Castle Game Engine. As far as I know it is developed by a single person. But it has plenty nice features and it has tool to let you generate binary to run on Android.
https://castle-engine.io/

stefanE

  • Newbie
  • Posts: 5
Re: Lazarus2.0.10 + GlSceneLCL-code-r7288 + Linux64
« Reply #3 on: November 10, 2020, 12:33:08 pm »
Thank you for the quick response :-)

@Jérôme - the "not-english" comments are not dutch but german, sorry
and, I allready  installed  the mesa packages and got the linking error.

BUT
I successfully installed glScene, but  after der hint of Handoko I used the Online Package Manager. thanks for that Handoko

And now is the question : where are all the components in the main menu of lazarus? Do I have to config the menu? Or do I have to make a fresh install of lazarus/fpc because of my previous trials with the install off the .lpk packages?

i think i m close but not reached yet

thanks all
stefan

Handoko

  • Hero Member
  • *****
  • Posts: 5396
  • My goal: build my own game engine using Lazarus
Re: Lazarus2.0.10 + GlSceneLCL-code-r7288 + Linux64
« Reply #4 on: November 10, 2020, 12:48:40 pm »
The components are not in the menu but they are in the component tab. It should be at the top right corner.

For example, you can see them on the top right corner of this picture:
https://wiki.freepascal.org/File:Gl_effect.jpg

Or you can use the GLScene Editor, which can be seen in the link below:
https://en.wikipedia.org/wiki/GLScene

stefanE

  • Newbie
  • Posts: 5
Re: Lazarus2.0.10 + GlSceneLCL-code-r7288 + Linux64
« Reply #5 on: November 10, 2020, 01:39:21 pm »
Hallo Handoko,

this was what i mean, that there are no component tabs for glScene, like I'm used to
I went back to the on line package manager and it shows me that the design package was not completely installed

i reinstalled and got the message

Quote
GLScene_CgShader.pas(10,4) Fatal: Kann GLCgRegister nicht finden verwendet von GLScene_CgShader. Den Suchpfad von Package GLScene_CgShader prüfen, eine saubere Neuerstellung versuchen, die uses-Abschnitte (implementation) prüfen..

means : can not find GLCgRegister  used by GLScene_CgShader. Check the search path of the package GLScene_CgShader, try a clean new creation and check the uses sector (implementation)

how can i do a new creation?

stefan

michalis

  • Full Member
  • ***
  • Posts: 143
    • Castle Game Engine
Re: Lazarus2.0.10 + GlSceneLCL-code-r7288 + Linux64
« Reply #6 on: November 11, 2020, 08:34:46 pm »
Quote
Alternatively you may want to try Castle Game Engine. As far as I know it is developed by a single person. But it has plenty nice features and it has tool to let you generate binary to run on Android.

Just a clarification -- CGE, since a few years now, is definitely not developed by a single person :) Aside from me (Michalis), we have, in no particular order: Andrzej Kilijański, Eugene Loza, Trung Le (Kagamma) and actually many others regularly submitting PRs for significant features. See recent news, like 1 , 2 , 3 .

As for features, aside from our webpage, you can take a look at fresh video from Web3D 2020 conference (presented just today): https://michalis.xyz/nextcloud/s/7Dgj64D4fwHTEkw . Next weekend I'm presenting CGE at Debian conference, https://mdco2.mini.debconf.org/ (19-22 November).

Handoko

  • Hero Member
  • *****
  • Posts: 5396
  • My goal: build my own game engine using Lazarus
Re: Lazarus2.0.10 + GlSceneLCL-code-r7288 + Linux64
« Reply #7 on: November 15, 2020, 01:59:14 pm »
Thank you for the clarification and the information about the development progress.

Castle Game Engine makes Pascal users proud.
 ;D
« Last Edit: November 15, 2020, 02:04:19 pm by Handoko »

 

TinyPortal © 2005-2018