How to create a .so library to use with Android Studio lazarus / 43-Android ---------------------------------------------------------------------- lainz · 2023-08-03 16:48 Hi, I want to make an app with BGRABitmap on Android Studio, and I want to put some functions to work with BGRABitmap4nogui. Basically the idea is to work with an array of pixels 32 bit. Create the memory, copy a rect, draw and so on. Any tutorial on how to do that? What is the target os, how to load the dll corretly in android studio, how to manage memory correctly. Thanks. ---------------------------------------------------------------------- loaded · 2023-08-03 17:14 Hi lainz, There is a video I made about the use of shared object files. You may need to do some trial and error.  https://youtu.be/SCAOeAN3eU4 The application I wrote with this method; https://youtu.be/J58jgWBupzY ---------------------------------------------------------------------- lainz · 2023-08-03 20:25 Awesome, thanks for the link =) ---------------------------------------------------------------------- Seenkao · 2023-08-04 11:00 С помощью Lazarus мы можем автоматически собрать библиотеки *.so. В Android используются именно *.so-библиотеки. Сложность лишь в том, что надо создать сторонние вызовы данной библиотеки, частично или полностью. Эти вызовы будут использоваться в дальнейшем в вашей программе. И надо при сборке указать не program, а library.   Большинство примеров созданы в районе 2012-го года. Потому лучше смотреть те примеры (а возможно и нет). ZenGL использует именно тот способ для сборки.   Надо понимать, что подобный способ больше подходит для нативных приложений, использующих код Pascal, а не Java. Так же в данном случае надо будет собирать разные библиотеки для разных архитектур.   И, надо чтоб все компиляторы были настроены. Я использую Linux для сборки.   Надеюсь информация будет полезна! Google translate:   With Lazarus, we can build *.so libraries automatically. Android uses exactly *.so-libraries. The only difficulty is that you need to create third-party calls to this library, partially or completely. These calls will be used later in your program. And it is necessary to specify during assembly not program, but library.    Most examples were created around 2012. Therefore, it is better to look at those examples (or maybe not). ZenGL uses exactly that way to build.    It should be understood that this method is more suitable for native applications using Pascal code, and not Java. Also in this case it will be necessary to build different libraries for different architectures.    And, it is necessary that all compilers are configured. I am using linux to build.    Hope the information is helpful!