Search found 2388 matches

by VilleK
Tue Sep 10, 2024 4:10 pm
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 291
Views: 104619

Re: Google Play New problem : 64bits

Looks like bullet library crashes on initialization. I suggest you build bullet with debug info too.
by VilleK
Tue Sep 10, 2024 2:01 pm
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 291
Views: 104619

Re: Google Play New problem : 64bits

Good :). These change will improve the code quality for Android target. Thanks for not giving up.
by VilleK
Tue Sep 10, 2024 8:52 am
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 291
Views: 104619

Re: Google Play New problem : 64bits

Code: Select all

{$if defined(android)}
procedure TExpExternalFuncCall.Execute(Env : PExecutionEnvironment);
Try changing that to

Code: Select all

{$if defined(android) and defined(cpu32)}
by VilleK
Mon Sep 09, 2024 3:57 pm
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 291
Views: 104619

Re: Google Play New problem : 64bits

Yes indeed. The library is finally found! Now we can instead focus on what changes are required in ZExpression. The "TExpExternalFuncCall.Execute" code that you have enabled currently is designed for 32-bit. I think it would be better if you could make the Android 64-bit version use the bl...
by VilleK
Mon Sep 09, 2024 2:09 pm
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 291
Views: 104619

Re: Google Play New problem : 64bits

Seems there is no ending slash in the path that Android reports:

09-09 13:07:33.467 13306 13306 E ZgeAndroid: Library NOT found: /data/app/~~07z_J2dSi1_KqJ70qVedzQ==/com.txori.sunvox64-7sqZ-5skGvXKEsLVr3Sk5Q==/lib/arm./libsunvox.so


Try this in the Java code:

.. nativeLibraryDir + "/";
by VilleK
Mon Sep 09, 2024 7:39 am
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 291
Views: 104619

Re: Google Play New problem : 64bits

It seems there is a different way to get the folder for native libs. https://stackoverflow.com/a/51020379/43673 Please try editing Zge.java. From: String libraryPath = getContext().getApplicationInfo().dataDir + "/lib/"; To String libraryPath = getApplicationInfo().nativeLibraryDir; If it ...
by VilleK
Sun Sep 08, 2024 5:24 pm
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 291
Views: 104619

Re: Google Play New problem : 64bits

For the 64-bit version, does the log show that it finds the library or not? I suspect it doesn't find it so we need to figure out where the library should be located or change the location where ZGE tries to load it.
by VilleK
Sat Sep 07, 2024 3:14 pm
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 291
Views: 104619

Re: Google Play New problem : 64bits

Ats wrote: Sat Sep 07, 2024 11:05 am I just tried again the simple library I created to test 32 and 64, and it is working for both:
Your test project never calls the "test" function so the library is never loaded. ZGE loads the library the first time a function in the library is called.
by VilleK
Sat Sep 07, 2024 10:45 am
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 291
Views: 104619

Re: Google Play New problem : 64bits

This is interesting, ZGE cannot find the library file. So we must figure out the actual path where ZGE should load the library. Did you also try removing "./" from the module name to see if it finds the library then? 09-06 18:55:53.064 22825 22825 E ZgeAndroid: Library NOT found: /data/use...
by VilleK
Fri Sep 06, 2024 3:25 pm
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 291
Views: 104619

Re: Google Play New problem : 64bits

The dproj file is not used by Freepascal so it is not relevant. Delphi IDE adds those various items automatically. The crash when calling external function is most likely because the ZExpression changes are not yet working. Please check if you can make it compile using the AArch64 path: https://gith...
by VilleK
Thu Sep 05, 2024 7:26 am
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 291
Views: 104619

Re: Google Play New problem : 64bits

I tried your apk and it crashes here too. The errors in 32-bit is normal and this is because ZGE is trying to load OpenGL functions that do not exist in OpenGL ES. Indeed, I forgot that writeln doesn't write to the log so you should use AndroidLog instead. But since the "Failed to load" me...
by VilleK
Wed Sep 04, 2024 6:20 pm
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 291
Views: 104619

Re: Google Play New problem : 64bits

Did you try adding more debug info such as

Code: Select all

WriteLn(TheName)
just before the call to dlopen in Platform_LoadModule?

And judging from that code it looks like the module name should start with "." to make sure the AndroidLibraryPath is added to it.
by VilleK
Wed Sep 04, 2024 5:38 pm
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 291
Views: 104619

Re: Google Play New problem : 64bits

Perhaps the SunVox library has some requirement that is not fulfilled on your device? Such as minimal Android OS version or dependency to other libs. I tried uploading the sunvox lib to VirusTotal: https://www.virustotal.com/gui/file/6295ce87bd6fa2c315cf333fb2d07702d638f191d9508c84663ff55ef87d9faa/d...
by VilleK
Tue Sep 03, 2024 7:06 am
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 291
Views: 104619

Re: Google Play New problem : 64bits

Maybe I can try building a simple 64-bit android library that does almost nothing. Something like this would work? Maybe try that indeed. The other possibility is that ZGE tries to load the library from the wrong location. But I see it uses AndroidLibraryPath which should be initialized correctly.
by VilleK
Mon Sep 02, 2024 9:46 am
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 291
Views: 104619

Re: Google Play New problem : 64bits

If dlopen works for other libs but not for libsunvox.so then my guess is that there is something wrong with that file. Are you absolutely certain it is built for 64-bit Android? Did you build it yourself or download it from somewhere?