Torchat android4/2/2023 ![]() Reimplementing all the code from scratch only for Android is too much work, don't underestimate just how much work this is to get it right, and then you would still end up with code (Java) that does not run on all platforms and has ridiculously huge runtime dependencies (Java) and resource requirements on the platforms where it runs. Once the build environment is set up its just a matter of clicking the compile button.Īnd as far as I am concerned I would definitely not use Java for the core protocol implementation, I would make a native libtorchat.so with the existing code base (much simpler than the libpurple plugin, just a thin wrapper around TTorChatClient exposing a flat procedural interface) and then make a Java/Android GUI that will use this lib. I don't know anything about JTorChat, this is a completely separate project from different authors, they re-implemented everything from scratch in Java.Īs far as creating native ARM code is concerned I think this is easier than it sounds. As far as the combination FPC & Android is concerned this is all still pretty new and bleeding edge stuff but I expect it to become easier over time.Īnd If it is for some reason not easily possible to make a plugin for libpurple on android then there is still the possibility to use the core units of TorChat to make a simple library that can be called directly from a little Java GUI (without needing pidgin and purple at all) There is some information scattered across the FPC Wiki: This link also contains stuff about the LCL GUi toolkit which is NOT of interest to us at the moment but it also contains some general information about setting up the compiler and binutils for producing Android/ARM code and all we ultimately need to do is to be able to compile and link a simple shared library and none of the more complicated GUI stuff is needed. Unfortunately I have never done this myself, so I cannot be of much help here (the only cross compiling I do at the moment is from Linux to Windows which is quite simple). ![]() What I do know is that it is possible to cross compile from Linux/i386 (or Windows or probably also from Mac) to Android/ARM with Free Pascal (once you have managed to set up this build environment with all its necessary tools). Unfortunately I do not (yet) own an Android device myself, so everything I believe to know about Android is from what I read from other people on the web. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |