I'm Pascal writing some bindings for Whisper.cpp, a project that transcribes/translates audio into text (
https://github.com/ggml-org/whisper.cpp) in a GitHub repo at
https://github.com/WhisperBooks/PasWhisperMy main development is in Delphi FMX (with VCL tested regularly)
I want the end result to also be FPC/Lazarus compatible so I'm taking care to make the code FPC-friendly as well
The biggest headache I've come across is Logging. I can get plenty of Loggers for either platform but can't find a single Logger that does both FPC/Laz AND VCL+FMX
Obviously, a Logger is not the thing I want to write. The Whisper bindings are the core of the project (as well as making some modifications to the C/C++ side of things)
I finally found hope in log4d but after fixing that to work with FMX it's no longer working with FPC
At that stage I simply decided to fake the log interface for FPC so it does nothing (a load of empty functions).
Naturally, this is not what I really want. But I'm at a loss.
Are there any Loggers that support FPC/Lazarus and Delphi VCL + FMX? Or do I leave the FPC version with a fake logger?