-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android/bionic support #5
Comments
Hi. This should be possible, but would you mind telling me what exactly your platform is? (; |
Termux Wrapping the execinfo.h in
is current workaround being used for other packages that were built. But in shournal it was producing unidentified/undefined backtrace functions. Hence developers of termux recommened to patch program to not use execinfo.h and backtrace related functions. |
Since smartphones are faster than laptops nowadays with octa core most people use termux as desktop linux replacement. Linux applications can either be used directly on termux by compiling them as aarch64 and linking with bionic. Or inside proot distros like ubuntu-termux, arch-termux as arm64 binaries. Hence having shournal on termux is quite beneficial |
See this patch https://wiki.termux.com/images/9/9d/OF_5.0_termux.patch all execinfo and backtrace and related functions are enclosed within |
Wow. Haven't considered porting shournal to Android yet. Just checked: at least fanotify seems to be available in bionic: ./libc/kernel/uapi/linux/fanotify.h. |
on termux gcc toolchain has many problems. although gcc 9,10,11 are available. Next error missing stdio_filebuf.h |
stdio_filebuf.h and referencing functions parseGenericKeyValFile, parseRealUidOf can be removed, they are not used. |
|
Those are simple. Use the locked ones instead (without _unlocked-suffix) ( |
Before digging further into this, could you please check the following points:
|
Another tool named fsmon with fanotify and inotify backends is properly working on termux. |
Did you check? Reading this
implies that while inotify works out of the box, fanotify requires a custom kernel (whatever that means). See also this SO post. |
Root is required |
@tathastu871 I just check in my Android x86 virtual machine:
Does your kernel include fanotify support? Otherwise I guess instead of compiling a custom kernel it |
Well my phone is not easily rootable so i cant test it. maybe termux developers can |
The termux developers can't test whether your phone's kernel supports these features, it may be a vendor-specific Let's conclude: shournal requires a rooted phone and most likely a custom kernel or the installation of shournal's kernel module. These requirements are not trivial, rooting the device can already be a painful process and I'm not sure |
if possible patch use of backtrace and prevent using execinfo.h needed
Trying to compile and include shournal in termux official repo
The text was updated successfully, but these errors were encountered: