So I had to add
Code: Select all
Path C:\Android\android-ndk-r18b\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\bin
in m.bat (the one to make ZGE)
Here's the new error log:
Code: Select all
ZClasses.pas(585,5) Warning: Constructor should be public
ZMath.pas(652,1) Warning: Function result variable does not seem to be initialized
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(949,54) Warning: Conversion between ordinals and pointers is not portable
GLDrivers.pas(955,63) Warning: Conversion between ordinals and pointers is not portable
GLDrivers.pas(962,56) Warning: Conversion between ordinals and pointers is not portable
ZApplication.pas(1105,8) Warning: Conversion between ordinals and pointers is not portable
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(1465,20) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
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(1606,66) Warning: Local variable "ScaledGravity" does not seem to be initialized
ZExpressions.pas(649,5) Warning: Function result variable does not seem to be initialized
ZExpressions.pas(1901,28) Warning: Local variable "Dest" does not seem to be initialized
ZExpressions.pas(2039,15) Warning: Arithmetic "+" on untyped pointer is unportable to {$T+}, suggest typecast
ZExpressions.pas(2042,13) Error: Unknown identifier "R0"
ZExpressions.pas(2043,13) Error: Unknown identifier "R1"
ZExpressions.pas(2044,13) Error: Unknown identifier "R3"
ZExpressions.pas(2046,13) Error: Unknown identifier "R2"
ZExpressions.pas(2046,16) Error: Invalid reference syntax
ZExpressions.pas(2046,22) Fatal: Internal error 2014122002
I tried to take a look at ZExpressions.pas, but those are assembly lines to make direct calls at ARM, so I'm a bit in a haze...
Edit: After reading through
https://en.wikipedia.org/wiki/Calling_convention#ARM
I would gladly replace r0-3 by x0-3, and r4 by x9, just for the fun of trying, but I don't find a replacement for r13 (stack pointer) in arm64...
Edit 2: So I suppose r13 equals x29. I'm going to try that!
... and it seems to work. Now I have a problem with two mnemonics:
Code: Select all
ZExpressions.pas(2051,7) Error: Unrecognized opcode bgt
ZExpressions.pas(2051,11) Error: Assembler syntax error
ZExpressions.pas(2062,5) Error: Unrecognized opcode blx
ZExpressions.pas(2062,9) Error: Assembler syntax error