![]() |
#1 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 1088
Join Date: Dec 2009
Device: Pocketbook && Android
|
![]()
Hey folks,
How do you test/debug your Pocketbook apps? The most straight forward way is, obviously, just cross-compile ARM code, install app on the device and run it - but edit/refresh cycle is long, debugging is cumbersome and %reasons% -- especially when building UI. The approach which was suggested in the original SDK (pocketbook-free.sourceforge.net) was to use libinkview compiled for Windows, either by using Cygwin or compile on Linux using winegcc. On Linux I got as far as compiling the app, starting it with wine, and it crashes with access violation at some point; on Windows it even starts the app window and still crashes with access violation -- all of this before reaching my code (reasons for that is kinda hard to debug without having full source code). Question is: how y'all do it? Ideally running app natively on your PC (Linux or Windows) would be ideal, but failing that, anything that allows to relatively easily run and debug app might help. Thoughts? |
![]() |
![]() |
![]() |
#2 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 121
Karma: 156515
Join Date: Oct 2019
Device: KT, KPW4, PB740-2
|
The inkview windows sdk is rather aged and basically runs only on win xp. Luckily, fully working gdb is shipped with stock firmware. Best success I had was just cross compiling, deploy task (I'm using IDEA) configured to directly store the binary on the device, and then just launch it in gdb in there with debugging port the IDE then connects to. Then everything works as expected. You also need to do some symlinking so as to get include headers / source files correctly placed and recognized by gdb that runs on the reader.
|
![]() |
![]() |
![]() |
#3 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 1088
Join Date: Dec 2009
Device: Pocketbook && Android
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,007
Karma: 18401861
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
There is some information on gdb in this thread: https://www.mobileread.com/forums/sh...d.php?t=222077. Since you already have gdb on your device, you can ignore the part about installing an external version with the libraries.
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jan 2020
Device: PB HD3 (632), Kindle Paperwhite
|
I thought people were doing most dev in qemu.
I'm also interested in how to get going, I wanted to see if I could get programs written in Rust working |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pocketbook, Apps, and history | Nate the great | PocketBook | 3 | 11-25-2014 10:15 AM |
Replacement reading apps for Pocketbook | Nate the great | PocketBook | 6 | 11-18-2014 06:54 PM |
installing apps on pocketbook a10 | willyloco | PocketBook | 2 | 04-24-2012 02:05 AM |
IQ Android Apps for PocketBook IQ 701 | Dulin's Books | PocketBook | 126 | 04-18-2012 06:01 PM |
Android App for testing apps | nniesen | enTourage Archive | 0 | 05-26-2011 01:40 AM |