在/ dev / fb1上运行Qt 5.3应用程序

时间:2014-09-10 11:20:56

标签: qt arm embedded-linux framebuffer

我想在ARM板的fb1上运行Qt应用程序。我试图运行

`./QTExample -platform directfb`  
来自minicom的

但我没有输出窗口,但是以下日志:

(*) DirectFB/Core: Single Application Core. (2014-09-08 11:26) 
(*) Direct/Memcpy: Using armasm_memcpy()
(*) Direct/Thread: Started 'Fusion Dispatch' (-1) [MESSAGING OTHER/OTHER 0/0] <8388608>...
(*) Direct/Thread: Started 'VT Switcher' (-1) [CRITICAL OTHER/OTHER 0/0] <8388608>...
(*) Direct/Thread: Started 'VT Flusher' (-1) [DEFAULT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/FBDev: Found 'tegra_fb' (ID 0) with frame buffer at 0xf7c00000, 18432k (MMIO 0x00000000, 0k)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Logitech USB-PS/2 Optical Mouse (1) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: CHICONY HP Basic USB Keyboard (2) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Hotplug with Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Hot-plug detection enabled with Linux Input Driver 
(*) Direct/Thread: Started 'Keyboard Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(*) DirectFB/Graphics: Generic Software Rasterizer 0.7 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(*) FBDev/Mode: Setting 640x480 RGB32
(*) FBDev/Mode: Switched to 640x480 (virtual 640x960) at 32 bit (RGB32), pitch 2560
(*) FBDev/Mode: Setting 640x480 RGB32
(*) FBDev/Mode: Switched to 640x480 (virtual 640x960) at 32 bit (RGB32), pitch 2560
 (!!!)  *** UNIMPLEMENTED [fusion_get_fusionee_pid] *** [fusion.c:3517]

我的想法是它试图在/ dev / fb0上运行,这不是我想要的。我的问题是,我如何指示在 / dev / fb1

上运行该应用程序

1 个答案:

答案 0 :(得分:3)

根据this,您应该可以指定-platform linuxfb:fb=/dev/fb1并且它应该有效,但我不太确定linuxfbdirectfb的区别({{1}并且linuxfb似乎都被提及为Qt插件,但名称在很多地方可以互换使用),但你仍然可以试试这个。

修改

我看了一下,因为我在空闲时间也使用QT /嵌入式设备做了很多工作 这看起来很有趣。 Qt源代码没有在directfb插件代码中明确说明设备ID(至少就我看的那样),但是根据directfb中的this wiki页面,您实际上可以在文件中提供directfb的配置。所以基本上你可以尝试使用一行directfb.org创建一个文件~/.directfbrc。希望这有效。