Hi folks,
I configured Qt embedded for my target which is a x86 machine running busybox with the following settings:
(the version of Qt is 4.6.3)
./configure -xplatform qws/linux-x86-g++ -embedded x86 \
-prefix /usr/local/Trolltech/Qt-target-version \
-qt-gfx-linuxfb -qt-gfx-vnc \
-no-largefile -exceptions -no-accessibility -no-qt3support -no-sse2 -qt-zlib -no-gif -no-libtiff \
-qt-libpng -no-libmng -qt-libjpeg -openssl -no-nis -no-cups -depths 16 \
-qt-mouse-linuxinput -confirm-license
./configure -xplatform qws/linux-x86-g++ -embedded x86 \
-prefix /usr/local/Trolltech/Qt-target-version \
-qt-gfx-linuxfb -qt-gfx-vnc \
-no-largefile -exceptions -no-accessibility -no-qt3support -no-sse2 -qt-zlib -no-gif -no-libtiff \
-qt-libpng -no-libmng -qt-libjpeg -openssl -no-nis -no-cups -depths 16 \
-qt-mouse-linuxinput -confirm-license
To copy to clipboard, switch view to plain text mode
I've used the following kernel modules to create /dev/fb0 :
fbcon
vga16fb
fbcon
vga16fb
To copy to clipboard, switch view to plain text mode
running the framebuffer example located in examples/qws/framebuffer would result the following output :
The framebuffer device was opened successfully.
Fixed screen info:
id: VGA16 VGA
smem_start: 0xa0000
smem_len: 65536
type: 4
type_aux: 0
visual: 3
xpanstep: 8
ypanstep: 1
ywrapstep: 0
line_length: 80
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: 640
yres: 480
xres_virtual: 640
yres_virtual: 480
yoffset: 0
xoffset: 0
bits_per_pixel: 4
grayscale: 0
red: offset: 0, length: 6, msb_right: 0
green: offset: 0, length: 6, msb_right: 0
blue: offset: 0, length: 6, msb_right: 0
transp: offset: 0, length: 0, msb_right: 0
nonstd: 0
activate: 0
height: -1
width: -1
accel_flags: 0x0
pixclock: 39721
left_margin: 48
right_margin: 16
upper_margin: 33
lower_margin: 10
hsync_len: 96
vsync_len: 2
sync: 0
vmode: 0
Frame Buffer Performance test...
Average: 1319 usecs
Bandwidth: 47.384 MByte/Sec
Max. FPS: 758.150 fps
The framebuffer device was opened successfully.
Fixed screen info:
id: VGA16 VGA
smem_start: 0xa0000
smem_len: 65536
type: 4
type_aux: 0
visual: 3
xpanstep: 8
ypanstep: 1
ywrapstep: 0
line_length: 80
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: 640
yres: 480
xres_virtual: 640
yres_virtual: 480
yoffset: 0
xoffset: 0
bits_per_pixel: 4
grayscale: 0
red: offset: 0, length: 6, msb_right: 0
green: offset: 0, length: 6, msb_right: 0
blue: offset: 0, length: 6, msb_right: 0
transp: offset: 0, length: 0, msb_right: 0
nonstd: 0
activate: 0
height: -1
width: -1
accel_flags: 0x0
pixclock: 39721
left_margin: 48
right_margin: 16
upper_margin: 33
lower_margin: 10
hsync_len: 96
vsync_len: 2
sync: 0
vmode: 0
Frame Buffer Performance test...
Average: 1319 usecs
Bandwidth: 47.384 MByte/Sec
Max. FPS: 758.150 fps
To copy to clipboard, switch view to plain text mode
after running framebuffer file, the screen goes green for a moment but three squares are not shown(as it is mentioned here).
and finally when I try to run one of the demos on the target machine using the following command:
./anomaly -qws
./anomaly -qws
To copy to clipboard, switch view to plain text mode
I get the following error:
VGA16 video mode not supported
I've been googling this for hours! what I'm doing wrong? why can't I run the application on my target machine?
Bookmarks