04-25-2012, 05:39 PM | #46 |
Addict
Posts: 320
Karma: 99999
Join Date: Oct 2011
Location: Germany
Device: Onyx Boox M92, Icarus Illumina E653
|
I successfully set up scratchbox2 and a debian (wheezy) armel debootstrap on my Fedora (16) 64bit system. I have a great environment for cross-compilation now. In most cases I don't have to change anything and pass no special compiler variables, e.g. Python (together with most modules like sqlite) can be compiled directly without modifications or compiler flags. This is of interest for anybody, who's looking for a possibility to cross-compile for M92 and doesn't want to set up an x86 VM or mess around with clunky compiler flags and linux-arm-gcc etc... I think I will write a short HowTo for the wiki in the next few days/weeks.
Unfortunately, PyQt and PySide still pose big challenges - not because of cross-compilation itself but because they don't support WS_QWS (embedded qt) natively. At least, the patches from https://bitbucket.org/dboddie/pyqt4-for-embedded-linux/ let me compile PyQt 4.8.5 successfully. But for complicated reasons, the resulting PyQt4 module is not working when transferred to the M92 - at the moment I'm trying to work around those problems, but there's always something else coming up... And compilation of PyQt takes several hours every time - so this is a rather exhausting thing to do ;-) Last edited by tuxor; 04-25-2012 at 05:45 PM. |
04-26-2012, 01:24 PM | #47 | ||
M92 info archivist
Posts: 238
Karma: 1398
Join Date: Jun 2008
Device: IRex Iliad 2nd ed., Onyx Boox M92, Onyx Boox Max Lumi
|
Quote:
Quote:
|
||
04-26-2012, 01:28 PM | #48 | |
M92 info archivist
Posts: 238
Karma: 1398
Join Date: Jun 2008
Device: IRex Iliad 2nd ed., Onyx Boox M92, Onyx Boox Max Lumi
|
Quote:
- 2nd script detached with '&', and running a loop delayed by 'sleep' - echo: need to check that out, when I get time to breathe (the next week or so will be tough on me - got to submit a thesis - hehe ) If you're interested, I could also post the scripts, as they are right now, to let you have a look at it... The functionality's basically there - it just lacks a way to be started at boot time Thx & cheers! |
|
04-26-2012, 07:29 PM | #49 |
Addict
Posts: 320
Karma: 99999
Join Date: Oct 2011
Location: Germany
Device: Onyx Boox M92, Icarus Illumina E653
|
I made it. Python 2.7.3 and PyQt 4.8.5 are compiled and running on M92. At the moment, it's a 32M zip-file. Maybe there is some stuff inside of it, that you can safely remove without affecting functionality.
Download it from here: http://www.2shared.com/file/4djZb1aq/py_online.html E.g. unzip it to your "internal storage" in a directory called "python". To test functionality I created this short python script "test.py": Code:
import sys from PyQt4.QtGui import QApplication,QLabel app = QApplication(sys.argv) lbl = QLabel('Hello World') lbl.show() app.exec_() # ./bin/python test.py Attention! This will leave your M92 in a state that looks pretty much like frozen! But of course it's not frozen. You simply have to pause the program by Ctrl+Z and find out the pid with "ps aux" and stop the process with "kill". I think, PyQt is actually set up properly. But the test script isn't conform with how Qt is handled on M92. I would really appreciate, if somebody came up with a working PyQt example This is the first time for me to work with Qt and thus PyQt. Is it even possible to write anything in Qt for our M92 without using the onyx/ui/*.h libraries? Hm, that would pose an even harder problem to writing graphical apps in python for our m92 (Btw. PySide turned out to be even less supportive concerning embedded Qt. So there's little chance we will get that any time soon.) Last edited by tuxor; 04-26-2012 at 07:41 PM. |
04-26-2012, 08:00 PM | #50 | |
M92 info archivist
Posts: 238
Karma: 1398
Join Date: Jun 2008
Device: IRex Iliad 2nd ed., Onyx Boox M92, Onyx Boox Max Lumi
|
Quote:
Added links to Devel and SW wiki pages. Cheers! |
|
04-26-2012, 09:06 PM | #51 |
Addict
Posts: 251
Karma: 214890
Join Date: Sep 2006
Device: none
|
Yes it is possible to write apps without using the onyx/ui/*.h libraries but you need to update the screen somehow. So I think you can't avoid using onyx/screen/screen_proxy.h
|
04-27-2012, 07:41 AM | #52 |
Addict
Posts: 320
Karma: 99999
Join Date: Oct 2011
Location: Germany
Device: Onyx Boox M92, Icarus Illumina E653
|
Well in general, it'd be possible to write a Python api for those onyx/* libs with SIP. But I have never done this before, and there are really a lot of header files in the include/onyx/* directories. That looks like a lot of work. Would be much easier, if we used an official git repo, so that more people can contribute the *.sip files. But at the moment, I don't have the impression that enough people are interested in a Python api :-/
|
04-30-2012, 06:22 AM | #53 |
Addict
Posts: 320
Karma: 99999
Join Date: Oct 2011
Location: Germany
Device: Onyx Boox M92, Icarus Illumina E653
|
The SIP reference guide is not exactly the best documentation I've seen so far: http://www.riverbankcomputing.co.uk/...ip4/using.html
It's more like an extremely short example to get an impression of what SIP looks like. But sip won't work with a snippet like this: Code:
enum WaitMode { WAIT_NONE = 0, WAIT_BEFORE_UPDATE = 0x01, WAIT_COMMAND_FINISH = 0x02, WAIT_NORMAL = WAIT_BEFORE_UPDATE, WAIT_ALL = WAIT_BEFORE_UPDATE | WAIT_COMMAND_FINISH }; Would be really handy to know somebody who is familiar with SIP... (At the moment, I'm looking for help in the PyQt mailing list.) EDIT: Is somebody here, who understands what is written in this part of the documentation? http://www.riverbankcomputing.co.uk/...tax-definition To me, it looks simply like garbage. I don't understand anything... I'm going to open a new thread for this to attract interested developers. If nobody is interested in working on this, I will have to give up on this project, because I'm totally unable to understand how SIP works from the official documentation. Last edited by tuxor; 04-30-2012 at 07:29 AM. |
05-01-2012, 11:02 AM | #54 | |
M92 info archivist
Posts: 238
Karma: 1398
Join Date: Jun 2008
Device: IRex Iliad 2nd ed., Onyx Boox M92, Onyx Boox Max Lumi
|
Quote:
W.r.t. your python package: Does it support the sqlite3 extensions? If so, I'd see whether I can wrap a script around peter-x's SVG export script to run it directly on the M92... that might be useful... ...otherwise, I'll return to looking at pdf_utils (and the multi-color issue) again. I'd be interested in your scratchbox2-setup description on the wiki - maybe that would facilitate some things w.r.t. porting... ...also another question (I'm curious, sorry ): You mentioned that arm-debian were binary compatible to the M92 - did you try the chroot idea (or to use the debian gdb for your PyOnyx debugging)? Cheers and keep up the good work! Appreciated Last edited by kodomo; 05-01-2012 at 11:50 AM. |
|
05-01-2012, 12:34 PM | #55 | |
Junior Member
Posts: 8
Karma: 5088
Join Date: Dec 2010
Location: Regensburg, Germany
Device: none
|
Quote:
|
|
05-01-2012, 01:11 PM | #56 | |
M92 info archivist
Posts: 238
Karma: 1398
Join Date: Jun 2008
Device: IRex Iliad 2nd ed., Onyx Boox M92, Onyx Boox Max Lumi
|
Quote:
This is the generic devel thread (loose coordination about who's doing what, as I see it), and the real PyOnyx development is happening in the other thread. I simply didn't want to hijack the other thread by asking questions about the (non-PyOnyx) python port. sorry for the confusion P.S.: @tuxor: I took the liberty to add your thread to the projects wiki page - hopefully, some folks'll stumble across it and jump in. |
|
05-01-2012, 04:47 PM | #57 | ||
Addict
Posts: 320
Karma: 99999
Join Date: Oct 2011
Location: Germany
Device: Onyx Boox M92, Icarus Illumina E653
|
Quote:
Quote:
It is definitely binary compatible, but for gdb I will need several shared libraries that are not present on the M92 and I don't want to risk a mess of libraries in the (very limited) system partition's /usr/lib of M92. |
||
05-01-2012, 05:29 PM | #58 | |||
M92 info archivist
Posts: 238
Karma: 1398
Join Date: Jun 2008
Device: IRex Iliad 2nd ed., Onyx Boox M92, Onyx Boox Max Lumi
|
Quote:
Quote:
Quote:
...I'm thinking along the lines of - either - going straight for a debootstrap environment, - or - copying / into a subdirectory and then moving needed things in. (obviously, you'll want to use tar rather than copying device files ;D, and to consider 'bind'ing pseudo filesystems, but...) Considering that (worst case scenario) reflashing the M92 is quite painless, I'd consider it a valid option to try... Do I miss something? Last edited by kodomo; 05-01-2012 at 05:31 PM. |
|||
05-01-2012, 05:51 PM | #59 |
Addict
Posts: 320
Karma: 99999
Join Date: Oct 2011
Location: Germany
Device: Onyx Boox M92, Icarus Illumina E653
|
At the end of this week I expect the most important things to be done. Maybe I can already provide you with a short scratchbox2 introduction in our wiki this weekend. But then we will still have to cope with some SELinux issues when running debootstrap on Fedora machines. There is a problem concerning this that looks a bit more complicated then the rest.
I'm not entirely sure. But I think this won't fit on the M92's system partition. And a whole chroot environment on a FAT32 partition (i.e. in /media/flash) will definitely cause some problems. The debootstrap alone eats around 200-300MB... By the way, the segmentation fault has been solved now thanks to the kind support of SIP developer Phil Thompson. Of course, the reason was my incompetence with SIP. Last edited by tuxor; 05-01-2012 at 05:53 PM. |
05-01-2012, 10:30 PM | #60 | |
M92 info archivist
Posts: 238
Karma: 1398
Join Date: Jun 2008
Device: IRex Iliad 2nd ed., Onyx Boox M92, Onyx Boox Max Lumi
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
onyx boox m92 ????????? | matulena | Onyx Boox | 11 | 03-15-2012 12:14 PM |
Boox M92. Spring Bargains. The price of M92 stays reduced for 14 days :) | Booxtor | Onyx Boox | 5 | 03-02-2012 05:16 AM |
Boox M92 Questions | anamardoll | Onyx Boox | 8 | 02-13-2012 01:38 PM |
Annotations on Boox M92 | Marrko | Onyx Boox | 3 | 01-22-2012 11:07 AM |
Kindle Developer Community? | scenox | Kindle Developer's Corner | 8 | 07-30-2010 02:08 PM |