View Single Post
Old 01-19-2024, 05:04 PM   #12
orontee
Connoisseur
orontee ought to be getting tired of karma fortunes by now.orontee ought to be getting tired of karma fortunes by now.orontee ought to be getting tired of karma fortunes by now.orontee ought to be getting tired of karma fortunes by now.orontee ought to be getting tired of karma fortunes by now.orontee ought to be getting tired of karma fortunes by now.orontee ought to be getting tired of karma fortunes by now.orontee ought to be getting tired of karma fortunes by now.orontee ought to be getting tired of karma fortunes by now.orontee ought to be getting tired of karma fortunes by now.orontee ought to be getting tired of karma fortunes by now.
 
orontee's Avatar
 
Posts: 85
Karma: 250308
Join Date: Sep 2023
Location: Toulouse, France
Device: Vivlio Touch HD Plus, reMarkable Paper Pro
Quote:
Originally Posted by diegoocampo View Post
What are your first impressions on porting Gargoyle? does the Pocketbook SDK lack any essential libraries? I kept looking at other possible options to port but I don't think there is anything out there as interesting as Gargoyle.
The SDK lacks Qt (but if I remember correctly some applications present on PocketBook devices uses QML thus Qt libraries must be installed...).

That said, almost all Qt usages are in few relatively small files.

The launcher looks easy to port.
In sysqt.cpp, the Qt event loop and image rendering are used but there're replacements in the SDK. Thus tere should not be much troubles.

Look:
Code:
↳ find garglk/ \( -name "*.h" -or -name "*.hpp" -or -name "*.cpp" -or -name "*.cxx" \) -print | xargs grep -E 'sysqt\.h|<Q' | cut -d':' -f 1 | uniq | sort | xargs wc -l
  313 garglk/launchqt.cpp
  948 garglk/sndqt.cpp
  762 garglk/sysqt.cpp
   69 garglk/sysqt.h
 2092 total
I was frighten that font rendering implied a dependency to Harfbuzz since Gargoyle claims to support UTF-8 and ligatures but it's not the case. AFAIU there's a custom implementation without other dependencies than freetype2 and fontconfig libraries which are available in the SDK (this implementation supports a subset of possible ligatures).

Depending on the weather and cycling conditions, I'll have time to explore further this week-end.

Last edited by orontee; 01-19-2024 at 05:18 PM. Reason: Update stats
orontee is offline   Reply With Quote