View Single Post
Old 04-24-2024, 02:11 AM   #1
Maimun Ahmed
Mr. Developer
Maimun Ahmed began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Feb 2024
Device: Kindle Voyage
Exclamation How to use my custom Shared object(.so) file in Koreader

Hi there guys. I wanted to use my custom .so file in koreader. Is there any way I can achieve it. I tried putting the file inside of "koreader\base\build\x86_64-linux-gnu-debug\libs" and that works, but just in development.

When I try to put into the file to the libs folder of the actual release version that is installed into my kindle it doesn't work.

Note: I included ffi.load to get the .so file.

Here is an extract of how I am trying to use it (actual code is not in this exact sequence):
Code:
local example = ffi.load("libexample.so")
ffi.cdef("void hello();")

example.hello()
I am unable to describe the terms accurately so i attached the links for reference.

Anyone for help please.
Maimun Ahmed is offline   Reply With Quote