glscene / GLScene

GLScene is a graphics engine based on OpenGL with VCL components for Delphi & C++ Builder.
http://www.glscene.org
Mozilla Public License 2.0
215 stars 32 forks source link

Compilation fails with Delphi 12.0 in 64-bit #31

Closed degreste closed 5 months ago

degreste commented 6 months ago

When using Delphi 12.0 build is failing for project GLScene_RT.bpl in Release 64-bit

glscene commented 6 months ago

Is the package GLScene_RT.bpl in Release 64-bit compiled in previous Rad11 version? I remember that yes. This is an error of Radv12 in the import file, LWO file format unit in line CurPols[CurPols.Count - 1].FID := CurId; Error E2018, but all design and runtime packages are compiled in 32-bit well, so if these model types are not needed in 64-bit, then remove this unit from runtime package and rebuild.

degreste commented 6 months ago

Thank you for your reply.

Yes GLScene_RT.bpl in Release 64-bit compiles without any issues in RAD Studio v11 version.

I tried removing LWO file format from RAD Studio 12 and compile again in Release 64-bit but now I get the following errors: [dcc64 Error] GLS.Memo.pas(4187): E2008 Incompatible types [dcc64 Error] GLS.Memo.pas(4819): E2008 Incompatible types [dcc64 Fatal Error] GLScene_RT.dpk(159): F2063 Could not compile used unit 'GLS.Memo.pas'

glscene commented 5 months ago

[dcc64 Error] GLS.Memo.pas(4187): E2008 Incompatible types [dcc64 Fatal Error] GLScene_Sounds_RT.dpk(52): F2084 Internal Error: AV600699F7(5FFA0000)-R0000014C-0 [dcc64 Fatal Error] [dcc64 Fatal Error] GLScene_Physics_RT.dpk(58): F2084 Internal Error: AV600699F7(5FFA0000)-R0000014C-0 [dcc64 Fatal Error] GLScene_Cg_RT.dpk(48): F2084 Internal Error: AV600699F7(5FFA0000)-R0000014C-0

I fixed only for GLScene_RT, don't know what's the matter for other win64 packages.

degreste commented 5 months ago

I confirm that using Delphi 12.0 build is now successful for project GLScene_RT.bpl in Release 64-bit. Thanks a lot.

glscene commented 5 months ago

Thnx degreste, we need more collaborators and contributors in GLScene community. If you could test and fix may be warnings in code I can add you to collaborators.