Recent

Author Topic: A Cross Compiler Logger  (Read 338 times)

peardox

  • Jr. Member
  • **
  • Posts: 71
A Cross Compiler Logger
« on: May 10, 2025, 07:18:30 pm »
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/PasWhisper

My 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?


CM630

  • Hero Member
  • *****
  • Posts: 1397
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: A Cross Compiler Logger
« Reply #1 on: May 11, 2025, 11:48:36 am »
I did not read your entires post, but Tero is a Lazarus app that uses Whisper and FasterWhisper.
https://github.com/URUWorks/TeroSubtitler
Also, I have tried both Whisper and FasterWhisper, the second one is much-much better.
Лазар 4,0 32 bit (sometimes 64 bit); FPC3,2,2

 

TinyPortal © 2005-2018