Search found 739 matches
- Mon Oct 14, 2024 5:52 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 187
- Views: 40869
Re: Google Play New problem : 64bits
Modifying only ZgeAndroid.pas isn't sufficient. Here's all the changes we made. I removed the ones on ZzDC.dpr Those two changes are necessary for threads to work: In ZgeAndroid.pas : uses cmem, cthreads, jni, ZOpenGL, ZClasses, In ZPlatform_Android.pas / function Platform_GetCpuCount: replace RunOb...
- Mon Oct 14, 2024 3:06 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 187
- Views: 40869
Re: Google Play New problem : 64bits
hahaha, imagine if the fix is that easy... ... And it is. Omeganaut is running perfectly fine with threads and sound on Android 64 :lol: WELL DONE! Now I need to clean things up. I'm going to build libzgeandroid.so with just that last change in ZgeAndroid.pas and see if everything is working. Or if ...
- Mon Oct 14, 2024 2:25 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 187
- Views: 40869
Re: Google Play New problem : 64bits
Using fixes_3_2 makefile in trunk doesn't solve anything. I'm going to create a topic on freepascal's forum regarding the compilation of crosscompiler for Android from Windows. As for the Android NDK, I'm using the old r21e. That is the only one that works. I already spent days trying to run a sligh...
- Mon Oct 14, 2024 9:13 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 187
- Views: 40869
Re: Google Play New problem : 64bits
The "fixes_3_2" branch compiles just fine. Unfortunately, it gives this error right away when building ZGE: jni.pas(543) Error: Assembler aarch64-linux-android-as.exe not found, switching to external assembling So I thought that maybe they updated their compiler to be able to use a more re...
- Sun Oct 13, 2024 2:21 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 187
- Views: 40869
Re: Google Play New problem : 64bits
Other than that, I just stumbled upon a topic saying that threads need to be synchronized with CheckSynchronize on Android.
https://forum.lazarus.freepascal.org/in ... ic=57311.0
https://forum.lazarus.freepascal.org/in ... ic=57311.0
- Sun Oct 13, 2024 8:48 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 187
- Views: 40869
Re: Google Play New problem : 64bits
So I'm back at square "early September" when I was happy to find that 3.2.2 had an Android cross-compiler already compiled. Because, with the latest source code, I can build FPC from source without issues, but building the cross-compiler for Android gives: make[4]: Entering directory `C:/F...
- Fri Oct 11, 2024 2:56 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 187
- Views: 40869
- Fri Oct 11, 2024 8:30 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 187
- Views: 40869
Re: Google Play New problem : 64bits
So I stripped down Omeganaut from all its sounds, and commented out all calls to them, and the game is running just fine. But if I add one sound component again, then it crashes after a few frames with the SYSTEM_$$_WAITFREE_VAR$PMEMCHUNK_VAR+36 So, the issue might be related to audio or possibly an...
- Thu Oct 10, 2024 4:28 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 187
- Views: 40869
Re: Google Play New problem : 64bits
cthreads and cmem. Maybe we could ask help on Lazarus forum? There's a thread about BeginThread() on Android here: https://forum.lazarus.freepascal.org/index.php?topic=25710.0 But the links they are referencing are pretty old (android API 8 ): https://wiki.freepascal.org/Custom_Drawn_Interface/Andro...
- Thu Oct 10, 2024 2:32 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 187
- Views: 40869
Re: Google Play New problem : 64bits
That's a great idea. And while it still crashes, I also tried to simply exit AudioCallback right away, and Omeganaut is still crashing. For simple audio test: Everything is working perfectly For Omeganaut: AudioCallback: exit; is crashing with the weird things described before, same as if there was ...
- Thu Oct 10, 2024 10:59 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 187
- Views: 40869
Re: Google Play New problem : 64bits
With env^.CallNonvirtualIntMethodV(env, track, cAudioTrack, mWrite, C([buffer, 0, Min(OnePassSize, bufferSizeInBytes)])); the simplest sound test crashes after a few frames, just as before. So I tried env^.CallNonvirtualIntMethodA(env, track, cAudioTrack, mWrite, C([buffer, 0, Min(OnePassSize, buffe...
- Wed Oct 09, 2024 5:00 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 187
- Views: 40869
Re: Google Play New problem : 64bits
I'm not sure if I understand why and where adding that line :lol: So I added it to my last version of function C, with the cases, and run Omeganaut. And it doesn't change a thing. Edit: Back at it. So it's for making sure Params is empty before feeding it. And yeah, still the same crash: Build finge...
- Wed Oct 09, 2024 9:53 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 187
- Views: 40869
Re: Google Play New problem : 64bits
Now I get: function C(const args : array of const) : PJValue; var I : integer; begin for I := 0 to High(args) do Params[I] := args[I].VPointer; // Error: Incompatible types: got "Pointer" expected "jvalue" Result := @Params; end; The robot suggested handling the cases manually. I...
- Wed Oct 09, 2024 9:23 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 187
- Views: 40869
Re: Google Play New problem : 64bits
I'm getting errors with this C function: var Params : array[0..10] of JValue; function C(const args : array of const) : JValue; var I : integer; begin for I := 0 to High(args) do Params[I] := args[I].vtPointer; // Error: identifier idents no member "vtPointer" Result := @Params; // Error: ...
- Wed Oct 09, 2024 8:59 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 187
- Views: 40869
Re: Google Play New problem : 64bits
All right, I added MANY traces :lol: 10-09 11:00:45.280 24827 24873 E ZgeAndroid: AudioCallback: Audio callback started 10-09 11:00:45.281 24827 24873 E ZgeAndroid: AudioCallback: AudioTrack class found 10-09 11:00:45.281 24827 24873 E ZgeAndroid: AudioCallback: getMinBufferSize = 1908551640 10-09 1...