Lazarus
Programming => Graphics and Multimedia => Graphics => Topic started by: FangQ on March 23, 2010, 07:17:26 pm
-
I am using Lazarus 0.9.28.2 from Ubuntu 9.10. When I tried to compile glscene svn 2426 (the latest), I got an internal error at the line starting with FLightMapTexCoords (see below) in glvectorfileobjects.pas, I can only get around by commenting out the line.
the error message reads like:
/usr/lib/lazarus/0.9.28.2/components/glscene/Source/glvectorfileobjects.pas(3606,13) Fatal: Internal error 2009071902
Anyone know how to fix this? thanks
procedure TMeshObject.ReadFromFiler(reader : TVirtualReader);
...
for i := 0 to lOldLightMapTexCoords.Count - 1 do
FLightMapTexCoords.Add(lOldLightMapTexCoords[i].S, lOldLightMapTexCoords[i].T);
...
-
An internal error should always be reported as a bug. Please create it.
-
On Windows, GLScene generally compiles with the latest Lazarus/FPC snapshot (that is, for 32 bits; on 64 bit platforms it won't compile anyway because it contains 32 bit assembler code). On Linux, you need GLScene for Lazarus/FPC as per instructions at http://wiki.lazarus.freepascal.org/GLScene.
-
Workaround was to me:
var
t:(type of lOldLightMapTexCoords = "TexPoint something")
for i := 0 to lOldLightMapTexCoords.Count - 1 do
begin
t:=lOldLightMapTexCoords.Items[i];
FLightMapTexCoords.Add(t.S, t.T);
end;
At last I downgraded as GLMisc wasn't found too.
PS: Strange thing that such a simple assignment can produce an internal error.