12-16-2008, 01:46 PM | #1 |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
QT/E execution problem!
I built QT/E for iLiad in scratchbox and tried to execute an QT app on iLiad. The app is just a simple example bundled in QT/E source code package. I have fixed all requied shared objects in proper path. The app seemed to run for a bit and then stopped. The final output I got in mrxvt was: "solidFill_setup(): Screen depth 8 not supported! Aborted".
The error message is clear, because iLiad only provides 4 bit greyscale. But I don't know how to fix it. I have added a line in shell-script:"export QWS_DISPLAY=Linuxfb:genericcolors". Last edited by ericshliao; 12-16-2008 at 01:54 PM. |
12-17-2008, 03:54 AM | #2 |
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
The Iliad Xserver is 8 bit gray scale, the display can only do 16 levels, but when you do a screen dump, and view it on another computer, it has 256 levels...
I dont think you can change anything about this. Maybe you can configure QT/E before compling it? Good luck! |
Advert | |
|
12-17-2008, 05:02 AM | #3 | |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Quote:
|
|
12-17-2008, 06:20 AM | #4 |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
I tried with "-depths 8" and still got the same output.
I compared the contents of libs of different -depths setting, they are all the same. The difference might be within application compiled by QT/E libs compiled with different options. I tried to execute the framebuffer test bundled in QT/E package. It did run, and display was actually changed, though terrible. Ideally, there should be three rectangles on screen. The result was no desired rectangles, and screen was inverted (white to black and black to white). I had to reboot to resotre. Here is the stdout and stderr output by framebuffer test program: Code:
initPalette: error reading palette: Invalid argument initPalette: error setting palette: Invalid argument resetPalette: Invalid argument The framebuffer device was opened successfully. Fixed screen info: id: iRex DELTA Frame smem_start: 0xc1000000 smem_len: 786432 type: 0 type_aux: 0 visual: 3 xpanstep: 1 ypanstep: 1 ywrapstep: 1 line_length: 768 mmio_start: 0x0 mmio_len: 0 accel: 0 The framebuffer device was mapped to memory successfully. Was in graphics mode already. Skipping Variable screen info: xres: 768 yres: 1024 xres_virtual: 768 yres_virtual: 1024 yoffset: 0 xoffset: 0 bits_per_pixel: 8 grayscale: 1 red: offset: 0, length: 8, msb_right: 0 green: offset: 0, length: 8, msb_right: 0 blue: offset: 0, length: 8, msb_right: 0 transp: offset: 0, length: 0, msb_right: 0 nonstd: 0 activate: 32 height: -1 width: -1 accel_flags: 0x0 pixclock: 20000 left_margin: 64 right_margin: 64 upper_margin: 32 lower_margin: 32 hsync_len: 64 vsync_len: 2 sync: 0 vmode: 0 Will rectangles from the 16 first entries in the color palette on the screen Done. Last edited by ericshliao; 12-17-2008 at 06:38 AM. |
12-17-2008, 11:23 AM | #5 |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
After a second thought, I decided to abandon QT/E. I tried to port QT/E because it's said that it will bypass X and reserve more system resource. On iLiad, however, unless all software are converted to QT/E, we still need X window. So, porting QT might be more realistic for iLiad.
|
Advert | |
|
12-17-2008, 05:11 PM | #6 |
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Hello ericshliao and all,
If you have some spare time to look around... Personally I spent quite some time investigating lua-gtk: the lua binding to all the gtk stuff. It looks very promising and should be small and fast. The required libraries went ok, but some parts are hard to cross-compile... http://lua-gtk.luaforge.net, some notes here: http://wiki.hpelbers.org/Other_stuff_for_the_Iliad |
12-18-2008, 05:16 AM | #7 |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
I tried to build lua-gtk, but I failed. It seems that lua alone is not enough for lua-gtk. Some other modules or libs are required.
|
02-12-2009, 03:36 PM | #8 |
Guru
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Other lua gtk port
Take a look at message #27:
https://www.mobileread.com/forums/showthread.php?t=36483 There is another lua gtk port, which looks simpler to compile. Best regards, Iņigo |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Anyone have this problem? | Nakor | Lounge | 5 | 02-28-2010 09:43 AM |
PRS-500 battery problem, but the battery's not the problem | ZachC | Sony Reader | 7 | 01-11-2010 11:46 PM |
Direct shellscript execution | Viacheslav | iRex | 0 | 08-25-2009 01:31 PM |
Calibré problem (may be XP problem) | Hildebrandt | Calibre | 3 | 07-23-2009 02:04 PM |
0.4.91 problem | alexxxm | Calibre | 4 | 10-07-2008 11:55 AM |