Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 01-04-2025, 04:12 PM   #1
TenKOhms
Junior Member
TenKOhms began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2024
Device: Kobo Libra Colour
Koreader on Meta Quest 3

I know this is going to sound silly/obscure, but has anyone gotten koreader working properly on Meta Quest 3? It seems to ignore my "clicks" in book. I can use the main file browser ui to open an epub but once open, I can't go to next page or even open up the top/bottom menus.
TenKOhms is offline   Reply With Quote
Old 01-07-2025, 08:43 PM   #2
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
Yup, sounds fun.

Without having the device I cannot tell you but based on how it behaves on tvs and chromebooks it seems to fail to detect input events if there's no explicit hook on the android view hiearchy.

Fortunately we have workarounds for those, see https://github.com/koreader/android-...ice.kt#L24-L28

If that works a workaround for the meta quest is welcome
pazos is offline   Reply With Quote
Advert
Old 01-08-2025, 04:39 PM   #3
TenKOhms
Junior Member
TenKOhms began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2024
Device: Kobo Libra Colour
Hey thanks for the info! Anyway to test this for meta quest without having to recompile an APK?
TenKOhms is offline   Reply With Quote
Old 01-09-2025, 07:38 AM   #4
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
Quote:
Originally Posted by TenKOhms View Post
Hey thanks for the info! Anyway to test this for meta quest without having to recompile an APK?
Nope. You're expected to modify the backend, rebuild the APK and test if that works.

But, for the moment, you can safely assume that KO won't run flawless on VR headsets or cars
pazos is offline   Reply With Quote
Old 01-09-2025, 11:13 AM   #5
TenKOhms
Junior Member
TenKOhms began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2024
Device: Kobo Libra Colour
Quote:
Originally Posted by pazos View Post
Nope. You're expected to modify the backend, rebuild the APK and test if that works.

But, for the moment, you can safely assume that KO won't run flawless on VR headsets or cars
You read my mind with the cars

I've downlaoded the docker container koappimage and tried to compile for android but running into cmake issue:

Code:
ko@59bb6d677c06:~/koreader$ ./kodev release android-arm64
make TARGET= KODEBUG= VERBOSE= android-ndk android-sdk
make TARGET= KODEBUG= VERBOSE= po
make ANDROID_ARCH=arm64 TARGET=android KODEBUG= VERBOSE= update
************ Building for MACHINE: "aarch64-unknown-linux-android21" **********
************ PATH: "/home/ko/koreader/base/toolchain/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/bin:/home/ko/x-tools/*/bin:/home/ko/.luarocks/bin:/home/ko/local/bin:/usr
/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" **********
************ CHOST: "aarch64-linux-android21" **********
************ NINJA: ninja -j1 -l8 **********
************ MAKE: make -j1 -l8 **********
Warn about uninitialized values.
Re-run cmake no build system arguments
CMake Error: The source directory "/home/ko/koreader/base/build/aarch64-unknown-linux-android21/cmake" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
base/Makefile:69: recipe for target 'base/build/aarch64-unknown-linux-android21/cmake/build.ninja' failed
make: *** [base/build/aarch64-unknown-linux-android21/cmake/build.ninja] Error 1
ko@59bb6d677c06:~/koreader$
Any tips/suggestions? Thanks
TenKOhms is offline   Reply With Quote
Advert
Old 01-09-2025, 11:54 AM   #6
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
Yup. You'll need the docker image for the target platform. In your case it is https://hub.docker.com/r/koreader/koandroid

But I never used docker to build KO.
Up to date instructions to build are in https://github.com/koreader/koreader...ing_targets.md
pazos is offline   Reply With Quote
Old 01-09-2025, 06:36 PM   #7
TenKOhms
Junior Member
TenKOhms began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2024
Device: Kobo Libra Colour
Thanks! was having issues installing koandroid using docker pull, but was able to find and download the image via docker desktop.

Compiled an APK successfully (it looks like) but getting issue:

Code:
CORE: Checking for WSA...
CORE: Checking for WSA returned 0
CORE: Checking for ADB...
CORE: ADB Found - Installed by WSATools - C:\AndroidADB
CORE: Preparing APK at C:\Users\bbmis\OneDrive\Desktop\koreader-android-arm-v2024.11-130-g9b444cba8_2025-01-09.apk
CORE: Preparing APK encountered an error: Could not find any recognizable digits.
CORE: Attempting connection to WSA - Attempt n 1 (Max 10)
CORE: Connected to WSA
CORE: Installing APK at C:\Users\bbmis\OneDrive\Desktop\koreader-android-arm-v2024.11-130-g9b444cba8_2025-01-09.apk
INSTALL: Performing Streamed Install
INSTALL - ERROR: adb: failed to install C:\Users\bbmis\OneDrive\Desktop\koreader-android-arm-v2024.11-130-g9b444cba8_2025-01-09.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl691535830.tmp/base.apk: Attempt to get length of null array]
Any thoughts? Thanks!
TenKOhms is offline   Reply With Quote
Old 01-10-2025, 06:03 AM   #8
TenKOhms
Junior Member
TenKOhms began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2024
Device: Kobo Libra Colour
scratch that, figured out needed to sign the APK. Onto testing
TenKOhms is offline   Reply With Quote
Old 01-10-2025, 08:36 AM   #9
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,751
Karma: 730681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
If you run it with -d (--debug, as in kodev release -d android-arm64) it'll sign it with a development key. But since you already built the non-debug version it'll probably take less time to just sign that one.
Frenzie is offline   Reply With Quote
Old 01-10-2025, 09:27 AM   #10
TenKOhms
Junior Member
TenKOhms began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2024
Device: Kobo Libra Colour
Thnx all, got APK build and signed and installed on my meta quest 3, but unfortunately making the following changes:

Code:
    val needsView = when (activity.platform) {
        "android_tv" -> true
        "chrome" -> true
        else -> true
    }
(test out just making needsView always true)

To
./platform/android/luajit-launcher/app/src/main/java/org/koreader/launcher/device/Device.kt

and rebuilding apk still did not resolve issue of not being able to use click/touch event when in reading mode. Still able to navigate the file browser to open up book.
TenKOhms is offline   Reply With Quote
Old 01-10-2025, 09:45 AM   #11
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
Thanks for testing.

Enabling "needsView" is just the beginning of the journey (you can always disable it if you don't find any input changes on the logs)

Our motionEventHandler might need some work too, they're in: https://github.com/koreader/koreader...ut_android.lua

Never played with an VR headset, so I have no idea how they implemented input events. It might be different.

There's also a not so slightly chance that Oculus failed to implement required frameworks properly. I know it sounds strange but it isn't. There're a bunch of partially broken frameworks out there, not only on e-ink devices.
pazos is offline   Reply With Quote
Old 01-11-2025, 06:23 AM   #12
TenKOhms
Junior Member
TenKOhms began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2024
Device: Kobo Libra Colour
Was worth a shot testing regardless, thanks for the info and help!
TenKOhms is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting KoReader plugins independent of KoReader jrw174 PocketBook Developer's Corner 0 08-13-2023 01:42 PM
ebook-meta tool can read but can not set meta for markdown files. The_book Calibre 1 11-10-2020 10:08 AM
Starting KOReader from CC works only if KOReader was not running before Norbi24 KOReader 7 09-24-2020 12:10 PM
Author Quest VydorScope Writers' Corner 1 06-20-2013 07:34 PM
set meta data with ebook-meta and ebook-convert krischik Calibre 6 01-19-2010 11:40 AM


All times are GMT -4. The time now is 10:30 AM.


MobileRead.com is a privately owned, operated and funded community.