I've optimized the build script, so I'm going to git it.
For information, here's the build log of libzgeandroid.so 32:
Code: Select all
Free Pascal Compiler version 3.2.2 [2021/05/16] for arm
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: Android for ARMEL
Compiling zgeandroid.pas
Compiling jni.pas
Assembling jni
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZOpenGL.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZMath.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZClasses.pas
ZClasses.pas(591,5) Warning: Constructor should be public
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZMath.pas
ZMath.pas(662,1) Warning: Function result variable does not seem to be initialized
Assembling zmath
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZLog.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZPlatform.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\AudioPlayer.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\AudioComponents.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZApplication.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\Meshes.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZBitmap.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\Renderer.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\Meshes.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZExpressions.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZApplication.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\Meshes.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZApplication.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\Collision.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZApplication.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\Commands.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZApplication.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\GLDrivers.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\Renderer.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZApplication.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\GLDrivers.pas
Assembling gldrivers
ZApplication.pas(322,3) Note: Local variable "I" not used
ZApplication.pas(715,46) Warning: Local variable "Matrix" does not seem to be initialized
Assembling zapplication
Renderer.pas(805,17) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
Renderer.pas(972,23) Warning: Local variable "TextBuf" does not seem to be initialized
Renderer.pas(1466,20) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
Renderer.pas(1467,20) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
Renderer.pas(1607,66) Warning: Local variable "ScaledGravity" does not seem to be initialized
Renderer.pas(1732,5) Note: Local variable "S" is assigned but never used
Renderer.pas(2170,3) Note: Local variable "FilterTypes" not used
Assembling renderer
Assembling commands
Assembling collision
Assembling meshes
ZExpressions.pas(779,5) Warning: Function result variable does not seem to be initialized
ZExpressions.pas(1889,20) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZExpressions.pas(1914,22) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZExpressions.pas(2159,28) Warning: Local variable "Dest" does not seem to be initialized
ZExpressions.pas(2304,15) Warning: Arithmetic "+" on untyped pointer is unportable to {$T+}, suggest typecast
ZExpressions.pas(3091,36) Warning: Local variable "V" does not seem to be initialized
ZExpressions.pas(3500,20) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
Assembling zexpressions
ZBitmap.pas(314,24) Warning: Local variable "NewMemory" does not seem to be initialized
Assembling zbitmap
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\BeRoAudioOGGVorbisTremor.pas
BeRoAudioOGGVorbisTremor.pas(7617,2) Note: Call to subroutine "procedure mdct_butterfly_8(x:PLongints);" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7617,2) Note: Call to subroutine "procedure mdct_butterfly_8(x:PLongints);" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7618,2) Note: Call to subroutine "procedure mdct_butterfly_8(x:PLongints);" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7618,2) Note: Call to subroutine "procedure mdct_butterfly_8(x:PLongints);" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7759,3) Note: Call to subroutine "procedure mdct_butterfly_16(x:PLongints);" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7759,3) Note: Call to subroutine "procedure mdct_butterfly_16(x:PLongints);" marked as inline is not inlined
Assembling beroaudiooggvorbistremor
AudioComponents.pas(746,3) Warning: Function result variable does not seem to be initialized
Assembling audiocomponents
Assembling audioplayer
Assembling zplatform
Assembling zlog
ZClasses.pas(741,5) Warning: Constructor should be public
ZClasses.pas(812,6) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZClasses.pas(813,14) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZClasses.pas(1237,1) Warning: Function result variable does not seem to be initialized
ZClasses.pas(1370,23) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZClasses.pas(2184,15) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZClasses.pas(4050,19) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZClasses.pas(4050,38) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
Assembling zclasses
Assembling zopengl
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\BitmapProducers.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\NanoJpeg.pas
Assembling nanojpeg
BitmapProducers.pas(395,18) Warning: Local variable "Y" does not seem to be initialized
BitmapProducers.pas(394,18) Warning: Local variable "X" does not seem to be initialized
BitmapProducers.pas(1045,34) Warning: Local variable "CP" does not seem to be initialized
Assembling bitmapproducers
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\Animators.pas
Assembling animators
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\Steering.pas
Steering.pas(493,37) Warning: Local variable "ClosestPoint" does not seem to be initialized
Assembling steering
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ImplicitMeshes.pas
ImplicitMeshes.pas(196,5) Warning: Constructor should be public
Assembling implicitmeshes
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZFile.pas
ZFile.pas(236,23) Warning: Local variable "NameBuf" does not seem to be initialized
Assembling zfile
Assembling zgeandroid
Linking java\libs\armeabi-v7a\libzgeandroid.so
40355 lines compiled, 3.4 sec
31 warning(s) issued
9 note(s) issued
And here's the same log for libzgeandroid.so 64:
Code: Select all
Free Pascal Compiler version 3.2.2 [2021/05/16] for aarch64
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: Android for AArch64
Compiling zgeandroid.pas
Compiling jni.pas
Assembling jni
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZOpenGL.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZMath.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZClasses.pas
ZClasses.pas(591,5) Warning: Constructor should be public
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZMath.pas
ZMath.pas(662,1) Warning: Function result variable does not seem to be initialized
Assembling zmath
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZLog.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZPlatform.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\AudioPlayer.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\AudioComponents.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZApplication.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\Meshes.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZBitmap.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\Renderer.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\Meshes.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZExpressions.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZApplication.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\Meshes.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZApplication.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\Collision.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZApplication.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\Commands.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZApplication.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\GLDrivers.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\Renderer.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZApplication.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\GLDrivers.pas
GLDrivers.pas(572,32) Warning: Conversion between ordinals and pointers is not portable
GLDrivers.pas(577,43) Warning: Conversion between ordinals and pointers is not portable
GLDrivers.pas(586,40) Warning: Conversion between ordinals and pointers is not portable
GLDrivers.pas(950,54) Warning: Conversion between ordinals and pointers is not portable
GLDrivers.pas(956,63) Warning: Conversion between ordinals and pointers is not portable
GLDrivers.pas(963,56) Warning: Conversion between ordinals and pointers is not portable
Assembling gldrivers
ZApplication.pas(322,3) Note: Local variable "I" not used
ZApplication.pas(715,46) Warning: Local variable "Matrix" does not seem to be initialized
ZApplication.pas(1118,8) Warning: Conversion between ordinals and pointers is not portable
Assembling zapplication
Renderer.pas(805,17) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
Renderer.pas(972,23) Warning: Local variable "TextBuf" does not seem to be initialized
Renderer.pas(1466,20) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
Renderer.pas(1467,20) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
Renderer.pas(1607,66) Warning: Local variable "ScaledGravity" does not seem to be initialized
Renderer.pas(1732,5) Note: Local variable "S" is assigned but never used
Renderer.pas(2170,3) Note: Local variable "FilterTypes" not used
Assembling renderer
Assembling commands
Assembling collision
Assembling meshes
ZExpressions.pas(779,5) Warning: Function result variable does not seem to be initialized
ZExpressions.pas(1889,20) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZExpressions.pas(1914,22) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZExpressions.pas(2159,28) Warning: Local variable "Dest" does not seem to be initialized
ZExpressions.pas(2813,3) Note: Local variable "OldProtect" not used
ZExpressions.pas(3091,36) Warning: Local variable "V" does not seem to be initialized
ZExpressions.pas(3500,20) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
Assembling zexpressions
ZBitmap.pas(314,24) Warning: Local variable "NewMemory" does not seem to be initialized
Assembling zbitmap
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\BeRoAudioOGGVorbisTremor.pas
BeRoAudioOGGVorbisTremor.pas(7617,2) Note: Call to subroutine "procedure mdct_butterfly_8(x:PLongints);" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7617,2) Note: Call to subroutine "procedure mdct_butterfly_8(x:PLongints);" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7618,2) Note: Call to subroutine "procedure mdct_butterfly_8(x:PLongints);" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7618,2) Note: Call to subroutine "procedure mdct_butterfly_8(x:PLongints);" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7759,3) Note: Call to subroutine "function MULT31(x:LongInt;y:LongInt):LongInt;" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7759,3) Note: Call to subroutine "function MULT31(x:LongInt;y:LongInt):LongInt;" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7759,3) Note: Call to subroutine "function MULT31(x:LongInt;y:LongInt):LongInt;" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7759,3) Note: Call to subroutine "function MULT31(x:LongInt;y:LongInt):LongInt;" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7759,3) Note: Call to subroutine "function MULT31(x:LongInt;y:LongInt):LongInt;" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7759,3) Note: Call to subroutine "function MULT31(x:LongInt;y:LongInt):LongInt;" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7759,3) Note: Call to subroutine "function MULT31(x:LongInt;y:LongInt):LongInt;" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7759,3) Note: Call to subroutine "function MULT31(x:LongInt;y:LongInt):LongInt;" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7759,3) Note: Call to subroutine "function MULT31(x:LongInt;y:LongInt):LongInt;" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7759,3) Note: Call to subroutine "function MULT31(x:LongInt;y:LongInt):LongInt;" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7759,3) Note: Call to subroutine "function MULT31(x:LongInt;y:LongInt):LongInt;" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7759,3) Note: Call to subroutine "function MULT31(x:LongInt;y:LongInt):LongInt;" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7759,3) Note: Call to subroutine "function MULT31(x:LongInt;y:LongInt):LongInt;" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7759,3) Note: Call to subroutine "function MULT31(x:LongInt;y:LongInt):LongInt;" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7759,3) Note: Call to subroutine "function MULT31(x:LongInt;y:LongInt):LongInt;" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7759,3) Note: Call to subroutine "function MULT31(x:LongInt;y:LongInt):LongInt;" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7759,3) Note: Call to subroutine "procedure mdct_butterfly_16(x:PLongints);" marked as inline is not inlined
BeRoAudioOGGVorbisTremor.pas(7759,3) Note: Call to subroutine "procedure mdct_butterfly_16(x:PLongints);" marked as inline is not inlined
Assembling beroaudiooggvorbistremor
AudioComponents.pas(746,3) Warning: Function result variable does not seem to be initialized
Assembling audiocomponents
Assembling audioplayer
Assembling zplatform
Assembling zlog
ZClasses.pas(741,5) Warning: Constructor should be public
ZClasses.pas(812,6) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZClasses.pas(813,14) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZClasses.pas(1237,1) Warning: Function result variable does not seem to be initialized
ZClasses.pas(1370,23) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZClasses.pas(2184,15) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZClasses.pas(3117,14) Warning: Conversion between ordinals and pointers is not portable
ZClasses.pas(4050,19) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZClasses.pas(4050,38) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
Assembling zclasses
Assembling zopengl
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\BitmapProducers.pas
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\NanoJpeg.pas
Assembling nanojpeg
BitmapProducers.pas(395,18) Warning: Local variable "Y" does not seem to be initialized
BitmapProducers.pas(394,18) Warning: Local variable "X" does not seem to be initialized
BitmapProducers.pas(1045,34) Warning: Local variable "CP" does not seem to be initialized
Assembling bitmapproducers
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\Animators.pas
Assembling animators
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\Steering.pas
Steering.pas(493,37) Warning: Local variable "ClosestPoint" does not seem to be initialized
Assembling steering
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ImplicitMeshes.pas
ImplicitMeshes.pas(196,5) Warning: Constructor should be public
Assembling implicitmeshes
Compiling C:\Users\Etienne\Desktop\zgameeditor-master\ZFile.pas
ZFile.pas(236,23) Warning: Local variable "NameBuf" does not seem to be initialized
Assembling zfile
Assembling zgeandroid
Linking java\libs\arm64-v8a\libzgeandroid.so
40355 lines compiled, 4.3 sec
38 warning(s) issued
26 note(s) issued
By the way VilleK, can you make a new files/ZGameEditor_beta.zip, so I can benefit the new libs/armeabi-v7a folder name?
Edit:
I'm getting rid of warnings that appears in 64 build and not in 32, in case it helps. I started with GLDrivers.pas by casting the ordinal (integer) value to a pointer type. For example, line 572:
glNormalPointer(GL_FLOAT,0,pointer(Mesh.VboOffsets[0]));
Becomes:
glNormalPointer(GL_FLOAT, 0, Pointer(PtrUInt(Mesh.VboOffsets[0])));
Edit 2:
It's not helping, but at least there are no warnings for GLDrivers.pas now. Should I push those changes to the github?