Recent

Author Topic: Error: identifier idents no member "Cameras"  (Read 6500 times)

dicas3d

  • Jr. Member
  • **
  • Posts: 81
    • Site oficial do Lazarus Portugal
Error: identifier idents no member "Cameras"
« on: May 20, 2011, 07:43:27 pm »
Hi.
I convert a game from delphi and ever that I need execute the code the compiler return the bug Error: identifier idents no member "Cameras".

The line that have the error is GoalScene.Cameras.AddNewChild(TGLCamera);.

Code: Pascal  [Select][+][-]
  1. uses
  2.   Windows,  SysUtils, Classes,  Controls, Forms,
  3.   GLScene,   StdCtrls, Dialogs, Menus, IniFiles, ImgList,
  4.   {GLWin32Viewer, GLMisc,} GLObjects, ComCtrls, Graphics,
  5.   ExtCtrls, ToolWin, FileUtil, Shellapi, Field, HTTPSend, GLLCLViewer;
  6.  
  7.  
  8.   public
  9.     { Public declarations }
  10.     PlayField1:TPlayField;
  11.     GoalScene:TGLScene;
  12. (...)
I wait that someone help me.
« Last Edit: May 23, 2011, 11:11:24 am by dicas3d »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12593
  • FPC developer.
Re: Error: identifier idents no member "Cameras"
« Reply #1 on: May 20, 2011, 11:28:49 pm »
That is a difference in the implementation of goalscene.

Most probably you are not using exactly the same version of some library in Lazarus as the Delphi version used.

dicas3d

  • Jr. Member
  • **
  • Posts: 81
    • Site oficial do Lazarus Portugal
Re: Error: identifier idents no member "Cameras"
« Reply #2 on: May 22, 2011, 04:53:06 pm »
I'm usig GLScene.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12593
  • FPC developer.
Re: Error: identifier idents no member "Cameras"
« Reply #3 on: May 22, 2011, 06:37:26 pm »
I'm usig GLScene.

Then make sure you have the same version of glscene as the original

dicas3d

  • Jr. Member
  • **
  • Posts: 81
    • Site oficial do Lazarus Portugal
Re: Error: identifier idents no member "Cameras"
« Reply #4 on: May 23, 2011, 01:38:23 pm »
The glscene of CodeTyphon haven't it.

 

TinyPortal © 2005-2018