And now I'm getting somewhere.
So yeah, koxtoolchain work flawlessly with WSL2 Debian.
There was a couple of missing libs and tools by default so
Code:
apt-get install unzip git libtool libtool-bin
And you should be ready to go
Next steps would be :
1/ find a way to run the program without using KOReader terminal emulator. I tried to put a shortcut for it on NickelMenu but for some reasons it just spits out
[KFMon] PID 2754 exited unexpectedly : 2! I figured it out, there was indeed a typo in my launcher.
===> I figured out how to run my stuff throught KoReader's SSH server

=====> I'm not sure how I'll go when I'll have to debug my app without KoReader running in the background tho. It seems to use dropbear, so I guess I'll probably have to find a way to run a dropbear server throught NickelMenu prior to launching my app. Or store everything in a .log file. I'm guessing gdb is out of questions anyway.
=========> Or I'll just use your stuff I guess XD
https://www.mobileread.com/forums/sh...d.php?t=254214 . There's plenty in here, so I'll have to install that and figure out how it works along the way. This seems to allows GDB throught SSH but is it possible to debug directly from QtCreator thanks to this ?
2/ put the actual helloworld on screen using FBInk (or directly skip to QtCreator stuff)
===> I ended up skipping this step
3/ find out how to use Qt. At the moment I'm compiling using QtCreator inside my debian WSL. so I probably have to download Qt (this seems to be a good place to start
https://github.com/Rain92/qt5-kobo-platform-plugin) and recompile it for kobo.
===> For future people reading this, if you have tons numeric_limits related errors it's probably because you're compiling with GCC11. To fix this I simply added : #include <limits> to qt5/qtbase/src/corelib/global/qglobal.h under the #ifdef __cplusplus section.
Also I'm not sure why you mentioned KoReader plugin ? Yes I could write my program as a KoReader plugin but what would be the point, why would I want to :
1/ launch KoReader
2/ go to plugin
3/ launch my plugin
When I can just start it from NickelMenu ? Or am I missing something ?